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

Admob live ads not showing #412

Open pdaccache opened 4 years ago

pdaccache commented 4 years ago

Testing ads showing normally but when signed and uploaded to playstore it still appears test ads what should i do?

luigi37 commented 4 years ago

Did you change isTesting to false?

(here the example, change to false) https://github.com/ratson/cordova-plugin-admob-free/blob/master/examples/basic/www/js/index.js

pdaccache commented 4 years ago

No i just removed it from the script i just added the ad id and the autoshow to true, should i add istesting to false to make it work?

luigi37 commented 4 years ago

I did put it to false and in my case worked. Also I noticed the app needs to be in "release" (not debug), and your account should be active (and maybe a payment method inserted)

pdaccache commented 4 years ago

It is released it is live now on playstore. As for payments i am not able to add payment method as i didn't pass the threshold yet.

luigi37 commented 4 years ago

ok, should work then. I reccomend setting isTesting to false. From Google point of view is failsafe to set the adv as a test (if you forget to set the parameter is safer that it becomes a test)

luigi37 commented 4 years ago

BTW: as a further hint... the real adv should work also if you run on a physical device with cordova run android --release

so you can try before shipping the app into the store

pdaccache commented 4 years ago

Okay thank you man i will try it and let you know.

pdaccache commented 4 years ago

I have added isTesting:false but still i am seeing test ads what else should i check? I have released the app and send it to my phone and installed it.

luigi37 commented 4 years ago

some ideas:

maybe you can post the portion of code you are using for displaying the adv (be careful not to share any of your IDs codes)

pdaccache commented 4 years ago
pdaccache commented 4 years ago

and i checked the android manifest file it is there the app id

luigi37 commented 4 years ago

Not sure if it makes any difference but could you change it to:

admob.banner.config({ id: 'ca-app-pub-13789643017..../....', isTesting: false, autoShow: true, })

admob.banner.prepare()

? Other thing I'd suggest to wait 24h

pdaccache commented 4 years ago

I have added your script now nothing appears should i wait for 24 hours?

pdaccache commented 4 years ago

Dear, BTW the interstitial onclick appears but not all the time and it is real ad only for banner ads i am still getting test ads.

What do you think should be done?

can i share with you the interstitial config i have done?

luigi37 commented 4 years ago

Interstitial you need to "prepare" it again after the CLOSE event has been fired otherwise it gets shown only once. See the example. It took me a while to understand that. Yes sure share the code. Banner, does it get shown properly?

pdaccache commented 4 years ago

nope if using your script i am not seeing anything, while when using my script i am still seeing Test ads. As for interstitial Ad, i will share the code below:

document.getElementById('calculate').addEventListener('click',interstitialad);

function interstitialad(){

admob.interstitial.config({ id: 'ca-app-pub-1378964301------/469------', isTesting: false });

admob.interstitial.prepare(); admob.interstitial.show();

}

pdaccache commented 4 years ago

Still no ads what should i do please if someone can help the app is live on store with test ads

pdaccache commented 4 years ago

Intersetial ads showing but test banner ads

aliexalter commented 4 years ago

Same here I have added cordova-plugin-admob-free put IDs of my admob units still seeing test ads dont know either its plugin or Admob is sending test ads on emulator. I also compiled release version and run it on device still its showing test ads

gbkwiatt commented 4 years ago

Well, same here. I got all isTesting false, proper config and prepare. did release and signed the app. The only thing I am missing is, it's not on play store. Any suggestions ?

tonybesty commented 3 years ago

I did put it to false and in my case worked. Also I noticed the app needs to be in "release" (not debug), and your account should be active (and maybe a payment method inserted)

Here is my setup: document.addEventListener('deviceready',function(){ admob.banner.prepare(); admob.banner.show({ id:'ca-app-pub-(my app id)', autoShow:true, isTesting:false, overlap:false }) },false);

but the I still get the Test Ads even after publishing on the Play Stor for up to a week now. Any help please?

adsprem commented 3 years ago

I am facing same issue and same code as yours, did you find a solution