Admob only shows first banner

Hey everyone,

I’m having an issue with admob in my game.

What I’m trying to achieve is the following:

The game is divided into multiple scenes and I want to display different banner ads on those scenes.

The “Game mode selection” screen has a banner

After the game mode selection, you get to the “Difficulty selection” screen which should show another banner.

Now my problem is, that only the first banner gets displayed.

This problem only occurs on android.

My implementation looks like this:

main.lua - Contains ads.init gamemode.lua scene:show - ads.show( "banner1", { ... } ) scene:hide - ads.hide() difficulty.lua scene:show - ads.show( "banner2", { ... } ) scene:hide - ads.hide()

I don’t get any logcat output / callback upon the second banner.

Is there anything I’m missing?

Regards from Germany,

Marcel

Here’s a quick gist demonstrating the issue.

Only the Banner on ad1.lua gets displayed after switching scenes.

https://gist.github.com/mpociot/b5fa28123d66800e3e2b

Am I doing anything wrong? Otherwise this looks like a pretty critical bug to me :frowning:

This is a google issue.  We are trying to come up with some solutions, but we don’t have one yet.  However, if you are using Google Play Game Services, then having the Google login solves it.

Rob

I receive banner after banner on Android.

There is a known problem of a 30 second (or whatever time you have configured) delay before the banner appears after calling ads.show(“banner”, {x = Screen.left, y = Screen.height, testMode = adMobTestMode})

Build 2228 Samsung Galaxy Tab 2 (4.2.2)

MAS1

Here’s a quick gist demonstrating the issue.

Only the Banner on ad1.lua gets displayed after switching scenes.

https://gist.github.com/mpociot/b5fa28123d66800e3e2b

Am I doing anything wrong? Otherwise this looks like a pretty critical bug to me :frowning:

This is a google issue.  We are trying to come up with some solutions, but we don’t have one yet.  However, if you are using Google Play Game Services, then having the Google login solves it.

Rob

I receive banner after banner on Android.

There is a known problem of a 30 second (or whatever time you have configured) delay before the banner appears after calling ads.show(“banner”, {x = Screen.left, y = Screen.height, testMode = adMobTestMode})

Build 2228 Samsung Galaxy Tab 2 (4.2.2)

MAS1