Type Function Return value none Revision 2017.3060 Keywords ads, advertising, Appnext, init See also appnext.createAd() appnext.*
This function is used for initializing the listener for all of the plugin events.
appnext.init( adListener )
local appnext = require( "plugin.appnext" )
local function adListener( event )
print( "Received " .. event.event .. " for " .. event.adKey .. " with message: " .. event.message )
end
-- Initialize the Appnext plugin
appnext.init( adListener )