Hi I’m using rev mob as the monetization for my new app and have come across a stump i can one ad through this code
[lua]local revmob = require( “plugin.revmob” )
local placementID = “-------”
local function adListener( event )
if ( event.phase == “sessionStarted” ) then
revmob.load( “banner”, placementID )
elseif ( event.phase == “loaded” ) then
revmob.show( placementID, { yAlign=“bottom” } )
end
end
revmob.init( adListener, { appId="-------" } )[/lua]
But i can’t seem to get my second ad to play through this code
[lua]local function onSystemEvent( event )
if ( event.type == “applicationResume” ) then
revmob.startSession()
end
end
Runtime:addEventListener( “system”, onSystemEvent )
local placementID = “-------”
local function adListener( event )
if ( event.phase == “sessionStarted” ) then
revmob.load( “video”, placementID )
elseif ( event.phase == “loaded” ) then
revmob.show( placementID, { yAlign=“center” } )
end
end
– Initialize RevMob
revmob.init( adListener, { appId="-----" } )[/lua]
i was just hoping someone could help me get the second ad running