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.

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

// the birthday must be a string in the format yyyy-MM-dd
// if you don't know the month or day, you can set them to 01
const birthday = getUserBirthday();

// the gender must be one of 'male', 'female' or 'unknown'
const gender = getUserGender();

adjoe.setProfile(source, gender, birthday);

This method call has no effect if the SDK is not initialized, 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:

Adjoe.setProfile(source, gender, birthday, {
	'uaNetwork': "uaNetwork_value",
	'uaChannel': "uaChannel_value",
	'uaSubPublisherCleartext': "uaSubPublisherCleartext_value",
	'uaSubPublisherEncrypted': "uaSubPublisherEncrypted_value",
	'placement': 'placement_value'
});

It is also possible to set the additional optional parameters (read more in the init section) using the setUAParams method:

adjoe.setUAParams({
            'uaNetwork': "RN-uaNetwork",
            'uaChannel': "RN-uaChannel",
            'uaSubPublisherCleartext': "RN-uaSubPublisherCleartext",
            'uaSubPublisherEncrypted': "RN-uaSubPublisherEncrypted",
            'placement': 'RN-placement'
})
.then(() => {
            this.logDialog(`Setting UA prameters were sucessful.`);
})
.catch((err) => {
            this.logDialog(`Setting UA prameters failed.`);
            console.error(err);
});