loadInterstitialAdTurbo method
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,
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),
);
}