loadInterstitialAdTurbo method

Future<void> loadInterstitialAdTurbo({
  1. required String adUnitId,
  2. List<String>? keywords,
  3. String? contentUrl,
  4. List<String>? neighboringContentUrls,
  5. bool? nonPersonalizedAds,
  6. int? httpTimeoutMillis,
  7. String? mediationExtrasIdentifier,
  8. Map<String, String>? extras,
  9. required GenericAdEventCallback<InterstitialAd> onAdLoaded,
  10. required FullScreenAdLoadErrorCallback onAdFailedToLoad,
})

Implementation

Future<void> loadInterstitialAdTurbo({
  required String adUnitId,
  List<String>? keywords,
  String? contentUrl,
  List<String>? neighboringContentUrls,
  bool? nonPersonalizedAds,
  int? httpTimeoutMillis,
  String? mediationExtrasIdentifier,
  Map<String, String>? extras,
  required GenericAdEventCallback<InterstitialAd> onAdLoaded,
  required FullScreenAdLoadErrorCallback onAdFailedToLoad,
}) async {
  InterstitialAd.load(
    adUnitId: adUnitId,
    request: AdRequest(
        keywords: keywords,
        contentUrl: contentUrl,
        neighboringContentUrls: neighboringContentUrls,
        nonPersonalizedAds: nonPersonalizedAds,
        httpTimeoutMillis: httpTimeoutMillis,
        mediationExtrasIdentifier: mediationExtrasIdentifier,
        extras: extras),
    adLoadCallback: InterstitialAdLoadCallback(
        onAdLoaded: onAdLoaded, onAdFailedToLoad: onAdFailedToLoad),
  );
}