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