Hey,
I have problem with admob ‘interstitial’. It doesn’t show up. I tried Test banner and it works fine.
I’m using Level Director and composer.
I created unitId for interstitial advert: ca-app-pub-3xxxxx5174xx0263/xxxxxxxxxx
local ads = require( "ads" ) local function adListener( event ) local msg = event.response -- Quick debug message regarding the response from the library print( "Message from the ads library: ", msg ) if ( event.isError ) then print( "Error, no ad received", msg ) else print( "Ah ha! Got one!" ) ads.show( "interstitial", { x=0, y=0 } ) \<\< ----------------- SHOW end end ------------------------------ function scene:create( event ) local screenGroup = self.view application.LevelDirectorSettings.viewGroup = self.view myLevel= LD:loadLevel("Level01") ....... ads.init( "admob", "ca-app-pub-3xxxxx5174xx0263/xxxxxxxxxx ", adListener ) \<\< --- INIT end function scene:show( event ) if ( phase == "will" ) then -- Called when the scene is still off screen (but is about to come on screen). elseif ( phase == "did" ) then ads.load( "interstitial", { testMode=true } ) \<\<-------- LOAD ............
Do you have any clue where’s the problem ?
I’m testing admob at my Samsung phone.
Thanks