Hi,
I’ve been trying Corona Ads and it works well when I try to display a banner.
However, when I use the exact same code for an interstitial nothing shows. I do get a event.phase == “init” which according to the doc an ad was found. I’ve tried to look for a event.phase == “failed” but it never happens.
I used the following code
[lua]
– Corona Ads listener function
local function adListener( event )
– Successful initialization of Corona Ads
if ( event.phase == “init” ) then
– Show an ad
--coronaAds.show( bannerPlacement, false )
coronaAds.show( interstitialPlacement, true )
local myTextObject = display.newText( “init”, 400, 400, “Arial”, 75 )
--timer.performWithDelay( 2000, coronaAds.hide(),1)
if ( event.phase == “failed” ) then
local myTextObject = display.newText( “failed”, 400, 500, “Arial”, 75 )
end
if ( event.phase == “request” ) then
local myTextObject = display.newText( “request”, 400, 600, “Arial”, 75 )
end
if ( event.phase == “found” ) then
local myTextObject = display.newText( “found”, 400, 700, “Arial”, 75 )
end
end
if ( event.phase == “failed” ) then
local myTextObject = display.newText( “failed2”, 400, 800, “Arial”, 75 )
end
if ( event.phase == “request” ) then
local myTextObject = display.newText( “request2”, 400, 900, “Arial”, 75 )
end
if ( event.phase == “found” ) then
local myTextObject = display.newText( “found2”, 400, 1000, “Arial”, 75 )
end
end
– Initialize Corona Ads (substitute your own API key when generated)
coronaAds.init( “830e4847-14ce-4df4-8f03-97ce210ebbca”, adListener )[/lua]
It displays ‘init’ and ‘request2’
Not really sure about how to check for the various statuses, documentation pretty much only uses ‘init’.
Thanks
endy