Type Function Return value none Revision 2017.3060 Keywords ads, advertising, Appodeal, setUserDetails See also appodeal.init() appodeal.* 
Sets user details. Providing these details may help improve revenue with ads that are more specifically targeted for the user.
appodeal.setUserDetails( options )
Table. Table containing option values — see the next section for details.
The options table includes parameters for specifying user details.
Number. The user's age.
String. The user's gender. Valid values include "male", "female", and "other".
String. A unique ID to identify a user.
local appodeal = require( "plugin.appodeal" )
local function adListener( event )
    if ( event.phase == "init" ) then  -- Successful initialization
        -- Set user details
        appodeal.setUserDetails( { gender="female" } )
    end
end
-- Initialize the Appodeal plugin
appodeal.init( adListener, { appKey="YOUR_APP_KEY" } )