Ad revenue API
Last updated
Last updated
We created a special Ad revenue API endpoint to allow our customers to send information about revenue earned by ads displayed in their apps.
Do not apply this API if you use ad networks that utilize the server-server protocol for sending ad revenue data (ironSource, AppLovin MAX, and Fyber networks) and you already set up this method of data collection because if you use both data sources, your revenue data may be duplicated.
You need your project's API Key which can be obtained by going to 'Settings -> SDK -> Integration' section in the Application menu.
Name | Required | Type | Description |
---|---|---|---|
Example:
Valid query options:
POST:
2. POST:
timestamp
true
Long
Ad display date, Unix timestamp in milliseconds
ad_network
true
String
Name of the ad network serving the impression
placement
false
String
Banner ad placement
ad_unit
false
String
Banner ad name
advertisingid
if devtodevid is missing
String
User Advertising ID
devtodevid
if advertisingid is missing
Long
User devtodev id if known
country
false
String
Country code, (ISO 3166 alpha 2)
revenue
true
Double
Reward for displaying the banner ad (in USD). The amount is shown for all impressions specified in the impressions field
impressions
false
Long
Number of impressions (for pre-aggregated data)