showBannerAd - appfeel/admob-google-cordova GitHub Wiki

showBannerAd()

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.