Admob TestMode?

For using and showing correct TestMode on device… where do I have to include testMode=true ?

I thought it is enough to do it in admob.init … but has it to be done in the admob.load also?

You thought correctly. You only need to include it in your init().

EDIT: also note, you won’t be able to test rewarded video in test mode

I have included it in init and on iOS it still shows banners with content and NO interstitials at all. What can be causing this then?

Are they video or static interstitials? Video interstitials are treated like rewarded video, if i remember correctly. 

You can check out corona’s sample admob app on github and observe the results. The app has testMode = true and tests all types of ads. You can find the app here.

thx. But banners should show the Test banners and they are not… strange.

It might be related to the “limit ad tracking” setting in iOS.

This is killing me… I get normal banner ads when using testMode=true and the interstitials are only working when I turn off the testMode.

Your issue is with the adUnitId you are using with load(). You are getting banners because you are probably not using the test adUnitId for banners (which is: ca-app-pub-3940256099942544/5224354917 ). Do that and you will get test banner ads.

For interstitials, also use the following test adUnitId: ca-app-pub-3940256099942544/1033173712. That way, you will see test ads.

These test adUnitId are provided by admob specifically for testing and debugging and they encourage you to use them during development. Just remember to replace them with your own adUnitIds when you are ready to publish.

EDIT: I just found the links for the admob sdk documentation relating to this issue:

for banners: here.

for interstitials: here.

You thought correctly. You only need to include it in your init().

EDIT: also note, you won’t be able to test rewarded video in test mode

I have included it in init and on iOS it still shows banners with content and NO interstitials at all. What can be causing this then?

Are they video or static interstitials? Video interstitials are treated like rewarded video, if i remember correctly. 

You can check out corona’s sample admob app on github and observe the results. The app has testMode = true and tests all types of ads. You can find the app here.

thx. But banners should show the Test banners and they are not… strange.

It might be related to the “limit ad tracking” setting in iOS.

This is killing me… I get normal banner ads when using testMode=true and the interstitials are only working when I turn off the testMode.

Your issue is with the adUnitId you are using with load(). You are getting banners because you are probably not using the test adUnitId for banners (which is: ca-app-pub-3940256099942544/5224354917 ). Do that and you will get test banner ads.

For interstitials, also use the following test adUnitId: ca-app-pub-3940256099942544/1033173712. That way, you will see test ads.

These test adUnitId are provided by admob specifically for testing and debugging and they encourage you to use them during development. Just remember to replace them with your own adUnitIds when you are ready to publish.

EDIT: I just found the links for the admob sdk documentation relating to this issue:

for banners: here.

for interstitials: here.