-
Notifications
You must be signed in to change notification settings - Fork 127
requestRewardedAd
Marc Pascual edited this page Jun 16, 2020
·
7 revisions
Request a rewarded ad.
Note: If options.autoRewarded
is set to true (default), the ad will automatically be displayed. Otherwise you need to call showRewardedAd()
when admob.events.onAdLoaded
event is raised.
If you already called admob.requestRewardedAd()
but the rewarded ad has never been shown, the following calls to admob.requestRewardedAd()
will result in the ad being inmediately available (the one that was obtained in the first call).
try {
await admob.requestRewardedAd(options);
} catch (err) {
console.log('Error showing/hiding interstitial ad:', err);
}
- options: setup options (see options).