User profile
If you know the user's gender and/or birthday, you can share them with us so that we can suggest better matching apps to the user.
1
-- set the gender
2
local gender = "male" -- "male", "female" or "other"
3
4
-- set the birthday
5
-- note that if you don't know the user's exact birthday, the year is already enough
6
-- in string yyyy-MM-dd format
7
local birthday = "1985-03-05"
8
9
-- where did you get the user's profile information from? "facebook", "google", ...
10
local source = ""
11
12
-- send the profile information to adjoe
13
Adjoe.SetProfile(source, gender, birthday, nil)
Copied!
This method call has no effect if the SDK is not initialized, the user has not accepted the adjoe Terms of Service or is blocked by the adjoe services.

Adjoe Parameters

You can pass additional UA and placement parameters when you send the user profile:
1
local adjoeParams = Adjoe.NewAdjoeParams()
2
:SetUANetwork("network")
3
:SetUAChannel("channel")
4
:SetUASubPublisherCleartext("SubPublisherCleartext")
5
:SetUASubPublisherEncrypted("SubPublisherEncrypted")
6
:SetPlacement("placement")
7
8
Adjoe.SetProfile(source, gender, birthday, adjoeParams)
Copied!
Last modified 7mo ago
Copy link