Type Function Return value none Revision 2017.3060 Keywords ads, advertising, AppLovin, init See also applovin.load() applovin.show() applovin.*
applovin.init()
initializes the AppLovin plugin.
Once initialized, you can load an ad using applovin.load() and subsequently show it via applovin.show().
This call requires your AppLovin SDK key, obtained from the AppLovin developer portal. From the Account section, expand the Account menu on the left side, select Keys, and your SDK key should be revealed.
applovin.init( adListener, params )
Listener. Listener function that will receive adsRequest events.
Table. Table containing AppLovin initialization values — see the next section for details.
The params
table includes parameters for the AppLovin initialization.
String. Your SDK key from AppLovin, found within the AppLovin developer portal.
Boolean. Set this to true
to output AppLovin logs to the console.
local applovin = require( "plugin.applovin" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization print( event.isError ) end end -- Initialize the AppLovin plugin applovin.init( adListener, { sdkKey="YOUR_SDK_KEY" } )