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

1. Setting User Id

To assign an ID to a user, please call this method before Appodeal initialization:


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.

2. Setting User Age

Age must be a positive integer value.

3. Setting User Gender

Possible values:

  • AppodealUserGenderFemale,
  • AppodealUserGenderMale,
  • AppodealUserGenderOther.

4. Tracking In-App Purchases

Tracks in-app purchase information and sends the information to Appodeal servers for analytics. It allows to group users by the fact of making in-app purchases. This will help you adjust the ads for such users or simply turn them off if needed. To make this work correctly, please submit the purchase information via Appodeal SDK.


Appodeal.track(inAppPurchase: 123, currency: "Currency")

5. Setting Location Tracking

Should be called before the SDK initialization.

The SDK will check the location permission on the user's device. If this permission is missing, the user will get an alert message with a request for location tracking.

6. Updating User Consent Information

If you are using Stack Consent Manager all changes will be synchronise automatically.

If your application design allows the user to change given consent during the application runtime, you can update consent information in Appodeal using this method: 


7. Sending Extra Data

You can send key-value data to Appodeal. There is a pre-installed key kAPDAppsFlyerIdExtrasKey

Appodeal.setExtras([Any : Any])