Our SDK provides the transfer of user data for better ad targeting and higher eCPM. All parameters are optional.

Set user's id

To assign an ID to a user, use the method:

Appodeal.setUserId(YOUR_USER_ID);

For data privacy and GDPR-compliance reasons, you may NOT use email address, phone number, real name or any other personally identifiable information in the user ID you set with this call.

Custom segment matching

If the logic of your application allows specifying user's characteristics, then you can pass specific parameters to the Appodeal SDK. You can use Segments in the future.

Appodeal.setCustomFilter("customSegBoolean", true); 
Appodeal.setCustomFilter("customSegInteger", 15);  
Appodeal.setCustomFilter("customSegFloat", 15.6f);  
Appodeal.setCustomFilter("customSegString", "just_do_it"); 
Appodeal.setCustomFilter("customSegObject", new Object());

Send extra data

You can send key-value data to Appodeal.

Appodeal.setExtraData("extraDataBoolean", true); 
Appodeal.setExtraData("extraDataInteger", 15); 
Appodeal.setExtraData("extraDataFloat", 15.6f); 
Appodeal.setExtraData("extraDataSegString", "just_do_it"); 
Appodeal.setExtraData("extraDataJson", new JSONObject());

To send the device identifier from a mobile attribution service and match it with Appodeal user id, use "attribution_id" as a key and a unique identifier from your attribution service as a value and if you use this method for attribution call it before Appodeal SDK initialization.