Hi guys,
I would like to place an ad directly at the bottom of the screen and a button to get to the next level higher on top of the ad.
I tried to get the Ad height like this to get the dimensions of the banner:
adHeight = 0 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!" ) adHeight = ads.height() end end ads.init( adProvider, appID, adListener ) ads.show( "banner", { x=0, y=display.contentHeight, appId=bannerAppID } )
But unfortunately even when the ad is shown the adHeight is still 0.
Much appreciated for any suggestion!
fj