load static method

Future<void> load({
  1. required String adUnitId,
  2. required AdRequest request,
  3. required InterstitialAdLoadCallback adLoadCallback,
})

Loads an InterstitialAd with the given adUnitId and request.

Implementation

static Future<void> load({
  required String adUnitId,
  required AdRequest request,
  required InterstitialAdLoadCallback adLoadCallback,
}) async {
  InterstitialAd ad = InterstitialAd._(
      adUnitId: adUnitId, adLoadCallback: adLoadCallback, request: request);

  await instanceManager.loadInterstitialAd(ad);
}