How to use Admob in test mode ?

I would like to test Admob on Mobile before publish. Is there any function to enable test mode for Admob?

or Corona don’t have the test mode. Do I need to test with appID(PublisherID) on real Mobile?

Thanks

I’m going to resurrect this post.

I now get event.respone = “the ad request was successful, but no ad was returned due to lack of ad inventory” in adb logcat. This applies to banners, I still get interstitials when requested.

Testing on device using Corona 2288 Samsung Galaxy Tab 2 (4.2.2)

Also from adb logcat I get “I/Ads     (28157): Use AdRequest.Builder.addTestDevice(“51B6321C5256434F1A058BD39A3C9249”) to get test ads on this device.”.

A facility to test ads is pretty crucial as I’m now stuck waiting for live ads to server in the absence of a test mode.

Anyone? 

Thanks for your consideration!

MAS1

PS Honestly - it’s been one faff (https://www.google.co.uk/#q=define:+faff) after another trying to move my apps over from iOS to Google Play. Social Networking and RevMob in particular have been a royal pain in the ?!@@. I dare not open a viper’s nest that surely is IAP! Arrrgh! :slight_smile:

Whoops! Posted in haste!

http://docs.coronalabs.com/legacy/plugin/ads-admob/show.html#testmode-optional

MAS1

@MAS1
That’s an old link to a legacy version of Admob. (As you see there’s a “legacy” in the URL)
 
The current version does not have testMode:
http://docs.coronalabs.com/plugin/ads-admob/show.html
 
(I think that testMode is only available for Inmobi)
 
A heads-up:
Google Play will stop accepting new apps and/or updates that use this version of Admob on Aug 1, 2014 (*).
It’s recommended to update to the Google Play Services version of Admob before then, which is included in Corona’s Admob-V2 plugin.
http://docs.coronalabs.com/plugin/ads-admob-v2/index.html

(*) http://thenextweb.com/google/2014/02/12/google-will-deprecate-standalone-admob-sdk-android-august-1-asks-developers-use-play-services/

@ingemar,

Yup - using the latest V2. Didn’t see the legacy in the URL…

Oh, heck … bad news on the lack of test mode then! :angry:

@Corona - Can we have a test mode please. Please. Aw, go on! :smiley:

@ingemar @ Corona,

Okay okay. I need to code and test before I jump to the forums. It appears that testMode = true does in fact work in V2. I’m looking at a test banner now. Text on banner reads: “Smart Banner Test Ad”

Whoo-hoo! :slight_smile:

Just need the 1st banner delay problem fixing as per ingemar’s bug report…

MAS1

Test ads are possible in V2? Great! I’ll have to give that a try myself :slight_smile:

The “first ad delay” isn’t really a Corona issue, as it’s been posted on native Android forums also.
I noticed that if you log in to GPGS (Google Play Game Services) for leaderboards/achievements, the issue is gone. So it might be possible for CoronaLabs to find a workaround…

@ingemar,

I saw your previous post in another thread about the GPGS. I tried (only briefly) to log in to GPGS without the setup on GPGS. Just code only. Needless to say I couldn’t get it to work.

It’s actually quite painful this 1st banner delay (followed by the appearance of the 2nd banner a split second later) as you often need to hide the banner, perform some action/scene change and then show the banner.

Every show means a new 1st banner (delay as per the setting on the AdMob portal) resulting in lower ad revenue no doubt. I appreciate you are aware of all this. Just posting/thinking out loud and for the benefit of others reading this thread!

Best - MAS1

I’m going to resurrect this post.

I now get event.respone = “the ad request was successful, but no ad was returned due to lack of ad inventory” in adb logcat. This applies to banners, I still get interstitials when requested.

Testing on device using Corona 2288 Samsung Galaxy Tab 2 (4.2.2)

Also from adb logcat I get “I/Ads     (28157): Use AdRequest.Builder.addTestDevice(“51B6321C5256434F1A058BD39A3C9249”) to get test ads on this device.”.

A facility to test ads is pretty crucial as I’m now stuck waiting for live ads to server in the absence of a test mode.

Anyone? 

Thanks for your consideration!

MAS1

PS Honestly - it’s been one faff (https://www.google.co.uk/#q=define:+faff) after another trying to move my apps over from iOS to Google Play. Social Networking and RevMob in particular have been a royal pain in the ?!@@. I dare not open a viper’s nest that surely is IAP! Arrrgh! :slight_smile:

Whoops! Posted in haste!

http://docs.coronalabs.com/legacy/plugin/ads-admob/show.html#testmode-optional

MAS1

@MAS1
That’s an old link to a legacy version of Admob. (As you see there’s a “legacy” in the URL)
 
The current version does not have testMode:
http://docs.coronalabs.com/plugin/ads-admob/show.html
 
(I think that testMode is only available for Inmobi)
 
A heads-up:
Google Play will stop accepting new apps and/or updates that use this version of Admob on Aug 1, 2014 (*).
It’s recommended to update to the Google Play Services version of Admob before then, which is included in Corona’s Admob-V2 plugin.
http://docs.coronalabs.com/plugin/ads-admob-v2/index.html

(*) http://thenextweb.com/google/2014/02/12/google-will-deprecate-standalone-admob-sdk-android-august-1-asks-developers-use-play-services/

@ingemar,

Yup - using the latest V2. Didn’t see the legacy in the URL…

Oh, heck … bad news on the lack of test mode then! :angry:

@Corona - Can we have a test mode please. Please. Aw, go on! :smiley:

@ingemar @ Corona,

Okay okay. I need to code and test before I jump to the forums. It appears that testMode = true does in fact work in V2. I’m looking at a test banner now. Text on banner reads: “Smart Banner Test Ad”

Whoo-hoo! :slight_smile:

Just need the 1st banner delay problem fixing as per ingemar’s bug report…

MAS1

Test ads are possible in V2? Great! I’ll have to give that a try myself :slight_smile:

The “first ad delay” isn’t really a Corona issue, as it’s been posted on native Android forums also.
I noticed that if you log in to GPGS (Google Play Game Services) for leaderboards/achievements, the issue is gone. So it might be possible for CoronaLabs to find a workaround…

@ingemar,

I saw your previous post in another thread about the GPGS. I tried (only briefly) to log in to GPGS without the setup on GPGS. Just code only. Needless to say I couldn’t get it to work.

It’s actually quite painful this 1st banner delay (followed by the appearance of the 2nd banner a split second later) as you often need to hide the banner, perform some action/scene change and then show the banner.

Every show means a new 1st banner (delay as per the setting on the AdMob portal) resulting in lower ad revenue no doubt. I appreciate you are aware of all this. Just posting/thinking out loud and for the benefit of others reading this thread!

Best - MAS1