getRewardedAdState static method

Future<AdState> getRewardedAdState(
  1. String adUnitId
)

This method returns the current AdState of the requested ad.

  • adUnitId - The ID of the rewarded ad unit.

Implementation

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