loadWithAdManagerAdRequest static method

Future<void> loadWithAdManagerAdRequest({
  1. required String adUnitId,
  2. required AdManagerAdRequest adManagerRequest,
  3. required RewardedAdLoadCallback rewardedAdLoadCallback,
})

Loads a RewardedAd using an AdManagerAdRequest.

Implementation

static Future<void> loadWithAdManagerAdRequest({
  required String adUnitId,
  required AdManagerAdRequest adManagerRequest,
  required RewardedAdLoadCallback rewardedAdLoadCallback,
}) async {
  RewardedAd rewardedAd = RewardedAd._fromAdManagerRequest(
      adUnitId: adUnitId,
      adManagerRequest: adManagerRequest,
      rewardedAdLoadCallback: rewardedAdLoadCallback);

  await instanceManager.loadRewardedAd(rewardedAd);
}