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