Type Function Return value none Revision 2017.3060 Keywords ads, advertising, AppLovin, setUserDetails See also applovin.init() applovin.load() applovin.isLoaded() applovin.*
Sets the user details to be passed to AppLovin for
This function is completely optional and only applies if you are using AppLovin
applovin.setUserDetails( params )
Table. Table containing AppLovin user detail values — see the next section for details.
The params
table includes parameters for the AppLovin user details.
String. The user ID you wish to set for the current user in your app. This can be any user123
.
local applovin = require( "plugin.applovin" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization -- Set the user details applovin.setUserDetails( { userId="user123" } ) end end -- Initialize the AppLovin plugin applovin.init( adListener, { sdkKey="YOUR_SDK_KEY" } )