Admob V2 - can't get it to show ad

I just did a test using my ProviderID’s… the only thing I added was an ad.show(“banner”) at the bottom.

ads = require( "ads" ) appId = "ca-app-pub-xxxxxxxx/xxxxxxx" if ( system.getInfo( "platformName" ) == "Android" ) then     appId = "ca-app-pub-yyyyyyyyyyy/yyyyyy" end       adProvider = "admob" function adListener( event )     msg = event.response     -- just a quick debug message to check what response we got from the library     print("Message received from the ads library: ", msg)           if event.isError then         print( "Error, no ad received", msg )     else         print( "Ah ha! Got one!" )     end end       ads.init( adProvider, appId, adListener ) ads.show("banner")

The ad showed at the top of the page as expected.   What does your ads.show()  code look like?

Tried that to, but didn’t seem to work. 

My ads.show code is:

ads.show( "banner", { x=contentCenterX, y=0, appId=bannerAppId })

A very few times the ads has appeared. tried on several devices. More often I see a black ad background but no ad.

Where do you define a variable “bannerAppId” that has the AdMob provider ID for your banner?

I don’t know how I oversaw that. I removed it now since it then fetch the info from ads.init(). But still no ads. 

I’ve just read about fillrate. Some articles mention a fillrate of about 30%. i.e that only in 30% ad requests returns in an actual ad.

In addition, I read that new apps gets an even lower fillrate until more users use the app and thereby requests ads. (Then Admob knows its not just the developer testing the app that gets ads)

If so, wouldn’t this be crucial information to take into account when debugging ads? Should be a big note in the Coronas tutorial?

UPDATE:

Didn’t think this mattered: My game is in landscape. I tried and chance to portrait and then I saw the ads. 

So its a positioning thing then I guess :slight_smile:

UPDATE: Case closed

That’s it. I changed the positioning to: 

 ads.show( "banner", { x=display.screenOriginX / 2, y=display.screenOriginY, appID = bannerID})

and it just appears like a charm :slight_smile: