loadAppOpenAdTurbo method

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

Implementation

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