Admob Test Banners not working

Hello! 

When I try to run my program on my android device, the admob response is this: “ad request successful but no ad returned due to lack of ad inventory”. 

Now I figured this is probably the app is not yet used by anyone, so It doesnt know what ads to display etc, and I just created the ad unit id. 

However, when I try to run my program with ads.show( “banner”, { x=10000, y=10000, appId= appID, true} )

(the bool being there for displaying a test ad) It returns the same thing… any ideas why I dont get the test banners?

Thanks for any help in advance! :slight_smile:

Try:

ads.show( “banner”, { x=10000, y=10000, appId= appID, testMode= true} )

I tried this, but got the exact same message… 

What device are you testing on?  There is a caveat on the docs:

http://docs.coronalabs.com/plugin/ads-admob-v2/show.html

that says that test ads don’t work on iOS, just the Xcode iOS simulator and Android.

Rob

I am testing on a Glaxy Core i8262

There is always the possibility that your AppID’s are not setup correctly.  Since we can’t see your AdMob portal, there isn’t much help we can do there.

Rob

But I really dont understand how that setup could be incorrect; is not this the AppID I am supposed to use?:

http://imgur.com/Q4oCwXO

?

Do I have to do anything else inside the AdMob portal to be able to display the test ads?

Do I need something called Google Services for the ads to be displayed?

No, the testMode = true should be the only thing you need to get test ads.  You seem to have gotten the right value for the AppId.  Make sure it’s copied correctly (no rogue spaces at the beginning or end or missing a character).

Rob

and the appID should be a string right? 

like this: 

local appID =“ca-app-pub-xxx/xxx”

Bwah this is really frustrating… still getting the:

“Ad request successful, but no ad returned due to lack of ad inventory.”

I havent defined anything like this though:

AdView adView = new AdView(this);
adView.setAdSize(AdSize. SMART_BANNER );

Can It be that it doesnt fint any test ads that fits the screen or something?

But so I do not need to have Google Mobile Ads SDK installed on my computer for the test ads to be displayed?

For your last two posts, no you don’t need to do either of those.  In fact you can’t do either, unless you’re using Corona Enterprise doing native development.

You only need to set the y offscreen to position at the bottom.  Perhaps while testing this you should consider positioning at 0, 0.

As for the inventory not being there, I’m at a loss, unless there simply isn’t any inventory.

I tried with interstitials, adn that worked… but not banners…

Can I get you to file a bug report?  You will need to make a very simple app that shows the problem.  Make sure to include the build.settings and config.lua you are using as well as any assets (images, etc.) and your adMob API keys.  Put all of that in a .zip file to include with the submission and use the “Report a bug” link at the top of the page. 

You will get an email with the bug ID case number in it.  Please post that back here when you get it.

Rob

aight I will do that. 

I have on question though. I have tried the app and clicked the ads a few times, to make sure it is working with admob, but the stats on my admob portal arent changing. I have tried turning testmode off. Do you know if it just takes a long time for admob to update its stats? or do I have to publish the game before the stats will update? =)

Engineering has confirmed that test ads work for banners.  Can you post your code you’re using?

Try:

ads.show( “banner”, { x=10000, y=10000, appId= appID, testMode= true} )

I tried this, but got the exact same message… 

What device are you testing on?  There is a caveat on the docs:

http://docs.coronalabs.com/plugin/ads-admob-v2/show.html

that says that test ads don’t work on iOS, just the Xcode iOS simulator and Android.

Rob

I am testing on a Glaxy Core i8262