Type Function Return value none Revision Release 2024.3703 Keywords ads, advertising, RevMob, setUserDetails See also revmob.init() revmob.*
Sets the user's details to receive more
revmob.setUserDetails( params )
Table. Table containing user details — see the next section for details.
The params
table includes parameters for RevMob ad customization.
String. The user's gender. Valid values are "male"
or "female"
.
Table. A table specifying the age range of users to target. This table must contain the following
Table. A table specifying the user's birthday (date of birth). This table must contain the following
local revmob = require( "plugin.revmob" ) local function adListener( event ) if ( event.phase == "init" ) then -- Successful initialization -- Set user details revmob.setUserDetails( { gender = "male", userAgeRange = { min=18, max=40 }, userBirthday = { year=1986, month=1, day=29 }, userInterests = { "programming", "computers", "fishing", "cars" } }) end end -- Initialize RevMob revmob.init( adListener, { appId="YOUR_APP_ID" } )