AdMob Interstitial and Banner ad in an app

Hello,

I’m using Interstitial and Banner ad in my game. I’d like to show Interstitial ads between game levels and banner ad while playing the game. For iAds the solution looks pretty straightforward because I init ads only once. But for AdMob I need to init either Interstitial or Banner app as they have different codes.

I’m using composer and in “Level1” scene I init banner app then in “Levels” scene I init interstitial. Unfortunately I get message in the console that Ads module was already initialized and interstitial ad is not working.

Level1.lua:

local ads = require "ads" if getSystem == "Android" then ads.init( "admob", "ca-app-pub-0000000000000/11111") else ads.init( "iads", "com.my.game") end showAd( "banner", display.screenOriginX, display.screenOriginY )

Levels.lua

local ads = require "ads" if getSystem == "Android" then ads.init( "admob", "ca-app-pub-0000000000000/22222") else ads.init( "iads", "com.my.game") end showAd( "interstitial", display.screenOriginX, display.screenOriginY )

is anybody using both interstitial and banner ads successfully?

have you seen the corona blog post from last week? ( this weeks was physics joints but last weeks was about admob V2)

T.

Here’s a link for your reference:

http://coronalabs.com/blog/2014/07/15/tutorial-implementing-admob-v2/

Brent

I still have issue with interstitial ads for Android. I’m using AdMob for both iOS and Android and on iOS they work perfectly but on Android they don’t show up. I checked adMob portal and the info is

Requests: 1

Impressions: 0

but I have certainly made more requests than that. I also have message from ad listener function which says something like Request was successful but the ad is not served because there are no ads at the moment. In this case I would expect that adMob portal will show more than 1 request received.

This issue is only on Android. iOS works great.

sorted, I just generated completely new AdMob unit ID and replaced the original one with it. Now everything works as it should.

have you seen the corona blog post from last week? ( this weeks was physics joints but last weeks was about admob V2)

T.

Here’s a link for your reference:

http://coronalabs.com/blog/2014/07/15/tutorial-implementing-admob-v2/

Brent

I still have issue with interstitial ads for Android. I’m using AdMob for both iOS and Android and on iOS they work perfectly but on Android they don’t show up. I checked adMob portal and the info is

Requests: 1

Impressions: 0

but I have certainly made more requests than that. I also have message from ad listener function which says something like Request was successful but the ad is not served because there are no ads at the moment. In this case I would expect that adMob portal will show more than 1 request received.

This issue is only on Android. iOS works great.

sorted, I just generated completely new AdMob unit ID and replaced the original one with it. Now everything works as it should.