Type Function Return value none Revision Release 2022.3683 Keywords ads, advertising, Persona.ly, setUserDetails See also personaly.init() personaly.*
Sets user details for the user ID given during initialization via personaly.init(). Providing these details may help improve revenue with offers targeted for the user.
personaly.setUserDetails( options )
Table. Table containing option values — see the next section for details.
The options
table includes parameters for specifying user details.
String. The user's gender. Valid values include "male"
and "female"
.
String. The user's birthday. Date must be sepcified in YYYY-MM-DD
local personaly = require( "plugin.personaly" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization print( event.provider ) end end -- Initialize the Persona.ly plugin personaly.init( adListener, { appHash="YOUR_APP_HASH", userId="UNIQUE_USER_ID" } ) -- Set user details personaly.setUserDetails( { gender="female", birthday="1990-01-30" } )