cordova-plugin-admob-free
cordova-plugin-admob-free copied to clipboard
admob.interstitial.prepare() automatically showing ad. It didn't wait for show().
Hi,
I am using this plugin in Ionic 3. Everything works fines Ads are visible instead of I want to preload interstitial ad and I am using admob.interstitial.prepare() for that but this automaticaly showing ads it didn't wait for my action where I want to show add using admob.interstitial.show().
below is my code
launchInterstitial() { let interstitialConfig: AdMobFreeInterstitialConfig = { isTesting: true, // Remove in production id: 'xxx xxxxx xxxx xxxxx' } this.admob.interstitial.config(interstitialConfig); return this.admob.interstitial.prepare(); }
how do I stop ad after prepare and show when I need to show.
AdMobFreeInterstitialConfig has an "autoShow" configuration. Set that to false.
I did that. I set "autoShow" false but it didn't do any effect still getting ad on prepare
Same problem here. isTesting works but not autoShow. The weird thing is that it was working then stopped.
Same problem here. isTesting works but not autoShow. The weird thing is that it was working then stopped.
In my case I was modifying the interstitialConfig but I forgot to put the right attribute. So it was my code and not the plugin.