Open totem2015 opened 6 years ago
ios
I'm having the same issue. My AdMobFreeBannerConfig is configure with autoShow=false. On Android, it works well but on iOS after calling banner.prepare(), it shows automatically the banner. Since autoShow is false, it should not start automatically.
admob Free version 0.14.0 last cordova, android, ionic, version
is your ad test-mode?
That is weird, on iOS I am not running into that issue. Here is my code:
let bannerConfig: AdMobFreeBannerConfig = {
isTesting: true, // Remove in production
autoShow: false,
id: adId
};
this.admob.banner.config(bannerConfig);
this.admob.banner.prepare().then(() => {
if (showBanner) {
console.log("show banner");
this.admob.banner.show();
} else {
this.admob.banner.remove();
}
}).catch(e => console.log(e));
I think i had resolve it. Go to you account and login -> apps -> click on your app -> ap setting under your app -> link to your playstore with app id or name.
@niraj-lal-rahi what if you don't have an app deployed yet? What if we wanted to test before we deploy?
@rlam3 dear, it means you admob plugin is working great. When you will deploy it will automatically remove the test mode of ads. And if it pop-up automatically after closing ads then you need to add time interval before ads prepare function.
@niraj-lal-rahi I'm confused. What do you mean to add time interval before ads prepare function? Do you have an example? Thanks!
Hi! Any solutions? @rlam3
I set the like this admob.banner.config({ id: 'ca-app-pub-7283507444107040/8635712814', isTesting: false, autoShow:false, }); but the ads automatically pop up and are test mode. could anybody help me? thank you very much