Type Function Return value none Revision Release 2022.3683 Keywords ads, advertising, AppLovin, setUserDetails, Applovin Max See also applovin.init() applovinMax.load() applovinMax.isLoaded() applovinMax.*
Sets the user details to be passed to AppLovin for
This function is completely optional and only applies if you are using AppLovin
applovinMax.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 applovinMax = require( "plugin.applovinMax" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization -- Set the user details applovinMax.setUserDetails( { userId="user123" } ) end end -- Initialize the AppLovin plugin applovinMax.init( adListener )