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.

// set the gender
AdjoeGender gender;
switch (GetUserGender()) {
    case "male":
        gender = AdjoeGender.MALE;
        break;
        
    case "female":
        gender = AdjoeGender.FEMALE;
        break;
        
    default:
        gender = AdjoeGender.UNKNOWN;
        break;
}

// set the birthday
// note that if you don't know the user's exact birthday, the year is already enough
DateTime birthday = GetUserBirthday();

string source = ""; // where did you get the user's profile information from? "facebook", "google", ...

// send the profile information to adjoe
Adjoe.SetProfile(source, gender, birthday);

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:

AdjoeUserProfile adjoeUserProfile = new AdjoeUserProfile();
profile.SetGender(gender);
profile.SetBirthday(birthday);

AdjoeParams adjoeParams = new AdjoeParams();
adjoeParams.SetUaNetwork("network")
           .SetUaChannel("Channel")
           .SetUaSubPublisherCleartext("SubPublisherCleartext")
           .SetUaSubPublisherEncrypted("SubPublisherEncrypted")
           .SetPlacement("placement");

Adjoe.setProfile(source, adjoeUserProfile, adjoeParams);

It is also possible to only set the AdjoeParams object using the setUAParams method:

Adjoe.SetUAParams(adjoeParams);