Admob Test Banners not working

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?

I messed up on my ads.init () call and it gave me a similar problem. Try that if it’s still a problem

Hi Rob,

Just a question please on your post below. I’m trying to run test ads with admob using the testMode feature. You mention the caveat that it works on the iOS simulator. However, when I run the simulator, I get the following warning:

WARNING: The 'ads' provider (admob) is not available on the simulator

How can test ads work on the simulator, if the provider isn’t even available?

Thanks in advance.

There is a difference between the Xcode simulator and the Corona SDK simulator.  AdMob does not work in Corona’s Simulator, but you can build for the Xcode simulator and see ads there.

Rob

Thanks for the reply Rob. Just curious, are there any tutorials for building for the Xcode simulator with my lua code? I can’t seem to find any resources that outline this process.

Thanks.

Nevermind Rob, just realised it was an option in the Build menu of the Corona Sim. Thank you.

I messed up on my ads.init () call and it gave me a similar problem. Try that if it’s still a problem

Hi Rob,

Just a question please on your post below. I’m trying to run test ads with admob using the testMode feature. You mention the caveat that it works on the iOS simulator. However, when I run the simulator, I get the following warning:

WARNING: The 'ads' provider (admob) is not available on the simulator

How can test ads work on the simulator, if the provider isn’t even available?

Thanks in advance.

There is a difference between the Xcode simulator and the Corona SDK simulator.  AdMob does not work in Corona’s Simulator, but you can build for the Xcode simulator and see ads there.

Rob

Thanks for the reply Rob. Just curious, are there any tutorials for building for the Xcode simulator with my lua code? I can’t seem to find any resources that outline this process.

Thanks.