Ad revenue API
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.

Path:

1
https://api.devtodev.com/track/impression/?apikey={API_KEY}
Copied!

List of fields

Name
Required
Type
Description
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)
Example:
1
{
2
    "timestamp": 1237651332,
3
    "ad_network": "Facebook",
4
    "placement": "End of the round",
5
    "ad_unit": "TestAdUnit",
6
    "revenue": 0.3434,
7
"impressions": 1,
8
"advertisingid": "abcdef12-1234-1234-1234-12345678abcd",
9
"counrty":"US"
10
}jso
Copied!
Valid query options:
  1. 1.
    POST:
1
POST https://api.devtodev.com/track/impression/?apikey={devtodev_api_key}
2
{
3
    "timestamp": 1237651332,
4
    "ad_network": "Facebook",
5
    "placement": "End of the round",
6
    "ad_unit": "TestAdUnit",
7
    "revenue": 0.3434,
8
"advertisingid": "abcdef12-1234-1234-1234-12345678abcd",
9
"devtodevid": "123456"
10
}
Copied!
2. POST:
1
POST https://api.devtodev.com/track/impression/?apikey={devtodev_api_key}
2
[{
3
    "timestamp": 1237651332,
4
    "ad_network": "Facebook",
5
    "placement": "End of the round",
6
    "ad_unit": "TestAdUnit",
7
    "revenue": 0.3434,
8
"advertisingid": "abcdef12-1234-1234-1234-12345678abcd"
9
},
10
{
11
...
12
},
13
...
14
]
Copied!
Last modified 16d ago
Export as PDF
Copy link