loadRewardedAdTurbo method
Future<void>
loadRewardedAdTurbo({
- required String adUnitId,
- List<
String> ? keywords, - String? contentUrl,
- List<
String> ? neighboringContentUrls, - bool? nonPersonalizedAds,
- int? httpTimeoutMillis,
- String? mediationExtrasIdentifier,
- Map<
String, String> ? extras, - required GenericAdEventCallback<
RewardedAd> onAdLoaded, - required FullScreenAdLoadErrorCallback onAdFailedToLoad,
Implementation
Future<void> loadRewardedAdTurbo({
required String adUnitId,
List<String>? keywords,
String? contentUrl,
List<String>? neighboringContentUrls,
bool? nonPersonalizedAds,
int? httpTimeoutMillis,
String? mediationExtrasIdentifier,
Map<String, String>? extras,
required GenericAdEventCallback<RewardedAd> onAdLoaded,
required FullScreenAdLoadErrorCallback onAdFailedToLoad,
}) async {
RewardedAd.load(
adUnitId: adUnitId,
request: AdRequest(
keywords: keywords,
contentUrl: contentUrl,
neighboringContentUrls: neighboringContentUrls,
nonPersonalizedAds: nonPersonalizedAds,
httpTimeoutMillis: httpTimeoutMillis,
mediationExtrasIdentifier: mediationExtrasIdentifier,
extras: extras),
rewardedAdLoadCallback: RewardedAdLoadCallback(
onAdLoaded: onAdLoaded,
onAdFailedToLoad: onAdFailedToLoad,
),
);
}