Hi,
I’m testing the new admob plugin
I start with my appId and I want to use banners and interstitial.
Interstitials work fine but banners are not displayed
what is the problem?
This is the code.
Thank you.
[lua]
local function adListener(event)
– Successful initialization of AdMob
if ( event.phase == “init” ) then
admob.load( “banner”, { adUnitId=bannerunitID} )
admob.load( “interstitial”, { adUnitId=intersticialID})
end
end
admob.init( adListener, { appId=appID , testMode = true} )
–later banner
if ( admob.isLoaded( “banner” ) ) then
admob.show( “banner”, { y = 15000, bgColor="#000000" } )
--preload next banner
admob.load( “banner”, { adUnitId=bannerunitID} )
end
–later Instersticial
if ( admob.isLoaded( “interstitial” ) ) then
admob.show( “interstitial” )
admob.load( “interstitial”, { adUnitId=intersticialID})
end
[/lua]