interstitialRewardedShowNoAdHook method

void interstitialRewardedShowNoAdHook({
  1. String? adUnitId,
})

Hook to process the outcome of a a Rewarded Interstital Ad.

See RewardedInterstitialDialog on how to use this hook.

Implementation

void interstitialRewardedShowNoAdHook({String? adUnitId}) {
  if (_interstitialRewardedMap[adUnitId] == null &&
      _interstitialRewardedMap.isEmpty) {
    throw 'adUnitId is not given and there is no alternative RewardedInterstitial is available.';
  }

  adUnitId ??= _interstitialRewardedMap.keys.first;

  _interstitialRewardedMap[adUnitId]!.showNoAdHook();
}