Type Function Return value none Revision Release 2024.3703 Keywords ads, advertising, RevMob, init See also revmob.load() revmob.show() revmob.*
revmob.init()
initializes the RevMob plugin.
Once initialized, you can load an ad using revmob.load() and subsequently show it via revmob.show().
This call requires your RevMob app ID. You can get this from the RevMob Developer Portal.
revmob.init( adListener, params )
Listener. Listener function that will receive adsRequest events.
Table. Table containing RevMob initialization values — see the next section for details.
The params
table includes parameters for RevMob initialization.
String. Your app ID from RevMob.
local revmob = require( "plugin.revmob" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization print( event.isError ) end end -- Initialize RevMob revmob.init( adListener, { appId="YOUR_APP_ID" } )