-
Notifications
You must be signed in to change notification settings - Fork 127
showBannerAd
Marc Pascual edited this page Jun 16, 2020
·
8 revisions
Show banner ads. You must call createBannerView first, otherwise an exception will be thrown and no ads will be shown.
Note: It is not necessary to call this method if autoShowBanner
was set to true when calling setOptions or createBannerView (if you didn't specified autoShowBanner
, it is true by default).
try {
await admob.showBannerAd(true);
} catch (err) {
console.log('Error showing/hiding banner:', err);
}
- show[boolean]: Indicates whether to show or hide the current banner ad.