Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to use Admob in test mode ?
Started by nipon.ph Mar 31 2014 06:53 PM

7 replies to this topic
admob
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

nipon.ph

[GLOBAL: userInfoPane.html]
nipon.ph
  • Observer

  • 21 posts
  • Corona SDK

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

 



[TOPIC: post.html]
#2

MAS1

[GLOBAL: userInfoPane.html]
MAS1
  • Contributor

  • 279 posts
  • Corona SDK

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! :-)



[TOPIC: post.html]
#3

MAS1

[GLOBAL: userInfoPane.html]
MAS1
  • Contributor

  • 279 posts
  • Corona SDK

[TOPIC: post.html]
#4

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

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



[TOPIC: post.html]
#5

MAS1

[GLOBAL: userInfoPane.html]
MAS1
  • Contributor

  • 279 posts
  • Corona SDK

@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! :D



[TOPIC: post.html]
#6

MAS1

[GLOBAL: userInfoPane.html]
MAS1
  • Contributor

  • 279 posts
  • Corona SDK

@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! :)

 

Just need the 1st banner delay problem fixing as per ingemar's bug report...

 

MAS1



[TOPIC: post.html]
#7

ingemar

[GLOBAL: userInfoPane.html]
ingemar
  • Corona Geek

  • 2,733 posts
  • Enterprise

Test ads are possible in V2? Great! I'll have to give that a try myself :-)

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

[TOPIC: post.html]
#8

MAS1

[GLOBAL: userInfoPane.html]
MAS1
  • Contributor

  • 279 posts
  • Corona SDK

@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




[topic_controls]
[/topic_controls]