ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
499 stars 214 forks source link

Why ads automatically pop up ,and ads are test mode #175

Open totem2015 opened 6 years ago

totem2015 commented 6 years ago

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

totem2015 commented 6 years ago

ios

rodriguesgm commented 6 years ago

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

totem2015 commented 6 years ago

is your ad test-mode?

aabdolla commented 6 years ago

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));
niraj-lal-rahi commented 6 years ago

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.

rlam3 commented 6 years ago

@niraj-lal-rahi what if you don't have an app deployed yet? What if we wanted to test before we deploy?

niraj-lal-rahi commented 6 years ago

@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.

rlam3 commented 6 years ago

@niraj-lal-rahi I'm confused. What do you mean to add time interval before ads prepare function? Do you have an example? Thanks!

kurtiev commented 5 years ago

Hi! Any solutions? @rlam3