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
AdjoeGender gender;
3
switch (GetUserGender()) {
4
case "male":
5
gender = AdjoeGender.MALE;
6
break;
7
8
case "female":
9
gender = AdjoeGender.FEMALE;
10
break;
11
12
default:
13
gender = AdjoeGender.UNKNOWN;
14
break;
15
}
16
17
// set the birthday
18
// note that if you don't know the user's exact birthday, the year is already enough
19
DateTime birthday = GetUserBirthday();
20
21
string source = ""; // where did you get the user's profile information from? "facebook", "google", ...
22
23
// send the profile information to adjoe
24
Adjoe.SetProfile(source, gender, birthday);
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
AdjoeUserProfile adjoeUserProfile = new AdjoeUserProfile();
2
profile.SetGender(gender);
3
profile.SetBirthday(birthday);
4
5
AdjoeParams adjoeParams = new AdjoeParams();
6
adjoeParams.SetUaNetwork("network")
7
.SetUaChannel("Channel")
8
.SetUaSubPublisherCleartext("SubPublisherCleartext")
9
.SetUaSubPublisherEncrypted("SubPublisherEncrypted")
10
.SetPlacement("placement");
11
12
Adjoe.setProfile(source, adjoeUserProfile, adjoeParams);
Copied!
Last modified 7mo ago
Copy link