Hello,
I work on Windows 10 for create an app for Andorid.
I implemented the Revmob plugin but sometimes it work only the first time, sometimes it not work.
At the end of each game I want to display an interstitial ad but, the revmob plugin, don’t display the ad.
It seems that the listener function, is not executed …
Could you please help me to solve this issue?
Thanks
Benedetto
My source:
local revmob = require( “plugin.revmob” )
local RevMob_PLACEMENT_IDS = “5107dfc2b90935a8030000a5”
local function revmobListener(event)
if ( event.phase == “sessionStarted” ) then – Successful initialization
revmob.load( “interstitial”, RevMob_PLACEMENT_IDS )
elseif ( event.phase == “loaded” ) then
– no actions for me
elseif ( event.phase == “failed” ) then
print( event.type )
print( event.isError )
print( event.response )
revmob.init( revmobListener, { appId=“573b786709ebdb8b27cdf48e” } )
end
end
– Initialize RevMob
revmob.init( revmobListener, { appId=“573b786709ebdb8b27cdf48e” } )
function scene:hide( event )
revmob.show( RevMob_PLACEMENT_IDS, { yAlign=“top” } )
parent:newGame()
end