getInterstitialAdState static method

Future<AdState> getInterstitialAdState(
  1. String adUnitId
)

This method returns the current AdState of the interstitial ad.

  • adUnitId - The ID of the interstitial ad unit.

Implementation

static Future<AdState> getInterstitialAdState(String adUnitId) async {
  final String state = await _channel.invokeMethod(
    interstitialAdStateMethod,
    {adUnitIdParameter: adUnitId},
  );
  return _adStateFromString(state);
}