Admob Plugin Urgent help needed!

Dear all,

I am currently losing revenue by the hour because i can’t fix this issue:
 

My game loads the menu and with it, it loads the banner before createscene etc.

local provider = "admob" -- Your application ID local appID = "appid - removed for privacy purposes" -- Load Corona 'ads' library local ads = require "ads" ads.init( provider, appID) ads.show("banner", {x=0, y=display.contentHeight - 50})

It then smoothly moves to gameplay where you have to hop through stuff etc.

Then when the game ends an interstitial ad should be displayed and you then go back to the menu.

the interstitial ads are not displaying at the moment im not sure if thats fill rate or a real issue.

the issue is when you go back on the menu the banner dissapears! help!

Many Thanks,

James Mallon

Are you looking at your console log?  There should be messages there that will clue you in to the source of the problem…

Rob

Warning admob.init() has already been run

I think it said that

@JamesMallon

I use:

interstitialRequested = true ads.show("interstitial", {appId = "ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx", testMode = true}) 

to guarantee an interstitial for testing purposes.

No here’s the kicker. As soon as you call:

ads.show("banner", {x = Screen.left, y = Screen.height, testMode = true}) 

you will have to wait a minimum of 30 seconds for the banner to appear - or whatever delay you have specified in the AdMob portal. Ingemar has already filed a bug about the delay in the banner appearing when calling ads.show().

Hope that helps!

MAS1

@MAS1

testMode isn’t available in the AdMob plugins. It’s only available for InMobi according to the Corona docs.

@JamesMallon

Make sure that your code doesn’t call ads.init() more than once.

Are you using the AdMob V2 plugin?

There’s an issue (as MAS1 mentioned above) where the first banner will not be displayed. If you wait for the refresh time-out (60 seconds by default) the banner will show up. I haven’t tried AdMob interstitials, but the fact that you don’t see any suggests that they might suffer from the same issue.

@MAS1

Correction, sorry…

testMode doesn’t work on iOS. On Android it works even though it’s not listed in the Corona docs for AdMob.

@Ingemar

I was just about to post up about AdMob banner and interstitial test mode on Android!

Best - MAS1

Are you looking at your console log?  There should be messages there that will clue you in to the source of the problem…

Rob

Warning admob.init() has already been run

I think it said that

@JamesMallon

I use:

interstitialRequested = true ads.show("interstitial", {appId = "ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx", testMode = true}) 

to guarantee an interstitial for testing purposes.

No here’s the kicker. As soon as you call:

ads.show("banner", {x = Screen.left, y = Screen.height, testMode = true}) 

you will have to wait a minimum of 30 seconds for the banner to appear - or whatever delay you have specified in the AdMob portal. Ingemar has already filed a bug about the delay in the banner appearing when calling ads.show().

Hope that helps!

MAS1

@MAS1

testMode isn’t available in the AdMob plugins. It’s only available for InMobi according to the Corona docs.

@JamesMallon

Make sure that your code doesn’t call ads.init() more than once.

Are you using the AdMob V2 plugin?

There’s an issue (as MAS1 mentioned above) where the first banner will not be displayed. If you wait for the refresh time-out (60 seconds by default) the banner will show up. I haven’t tried AdMob interstitials, but the fact that you don’t see any suggests that they might suffer from the same issue.

@MAS1

Correction, sorry…

testMode doesn’t work on iOS. On Android it works even though it’s not listed in the Corona docs for AdMob.

@Ingemar

I was just about to post up about AdMob banner and interstitial test mode on Android!

Best - MAS1