Type Function Return value none Revision Release 2022.3683 Keywords ads, advertising, SuperAwesome, init See also superawesome.load() superawesome.show() superawesome.*
superawesome.init()
initializes the SuperAwesome plugin.
Once initialized, you can load an ad using superawesome.load() and subsequently show it via superawesome.show().
superawesome.init( adListener, params )
Listener. Listener function that will receive adsRequest events.
Table. Table containing SuperAwesome initialization values — see the next section for details.
The params
table includes initialization properties for the SuperAwesome plugin.
Boolean. Sets if test mode will be used for ads. Default is false
.
local superawesome = require( "plugin.superawesome" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization print( event.isError ) end end -- Initialize the SuperAwesome plugin superawesome.init( adListener, { testMode=true } )