Device Reporting API
#
Change Logversion | date | notes |
---|---|---|
v4.0 | 2022-9-15 | supports TP revenue query |
v3.0 | - | supports customized user ID query |
v2.0 | - | supports device report |
Note
- The API will return 4 URLs for downloading csv files, the URL is valid for 15 mins, please send another request if it is over 15 mins.
- Please note that, the complete data should contain the 4 files.
- The user data will be sent to different computing ceters according to user's location, please don't worry if you found one of the center don't have any data.
- Since Ad Networks have different report time zones, it will be more accurate to request the last two days' data, or update the historical data(last two days normally) after getting response.
- Obtaining historical data one year ago is not supported. If you need it, please contact your account manager
Note: Data freshness:
- UTC+8 data: 5:00 (Beijing Time)
- UTC+0 data: 15:00 (Beijing Time)
- UTC-8 data: day2 at 2:00 (Beijing Time)
#
1. Authentication check#
1.1 Method#
1.2 Header ParamsAuthorization: Bearer {your token}
params | notes | sample |
---|---|---|
Authorization | token | Bearer {your token} |
#
2. Device Reporting API v4.0#
2.1 URL_V3(recommended)#
2.2 Request method#
2.3 Request paramsparams | type | required | notes | sample |
---|---|---|---|---|
date | String | Y | date, format:YYYY-mm-dd,Only supports one day | 2020-03-01 |
timezone | String | N | report time zone ,Only support:"UTC+8"、"UTC+0"、"UTC-8"。default:"UTC+0" | UTC+0 |
currency | String | N | currency。default : USD,Only support:USD CNY | USD |
appId | String | Y | APPID,Single choice |
#
2.4 Return datafields | type | notes |
---|---|---|
dateTimeStamp | int | Time Stamp |
appId | String | APP ID(tradplus) |
placementId | String | Placement ID (tradplus) |
placementName | String | Placement name (tradplus) |
adFormat | Int | Ad slot type |
adFormatName | String | Ad slot name |
area | String | Country code |
network | Int | Network ID |
networkName | String | Network Name |
networkPlacementId | String | Network Placement Id |
networkPlacementName | String | Network Placement Name (tradplus) |
networkPlacementInfo | String | Network Placement Information |
androidId | String | Device id,androidid |
gaid | String | Google advertising ID |
idfa | String | Identity for Advertisers |
userId | String | Custom User ID |
channel | String | Channel |
sub_channel | String | Sub-channel |
impression | Int | Impression number(tradplus) |
click | Int | Click number(tradplus) |
revenue | Float | Revenue |
ecpm | Float | Ecpm |
oaid | String | Android device ID |
idfv | String | Identifier for Vendor |
os_version | String | Version of OS |
att_status | Int | Status of Apple's ATT (0: notDetermined; 1: restricted; 2: denied; 3: authorized) |
tp_revenue | Float | TP Revenue |
#
2.5 Sample#
Reqeust Sample:#
Response Sample:#
3. Device Reporting API v3.0#
3.1 URL_V3(recommended)#
3.2 Request method#
3.3 Request paramsparams | type | required | notes | sample |
---|---|---|---|---|
date | String | Y | date, format:YYYY-mm-dd,Only supports one day | 2020-03-01 |
timezone | String | N | report time zone ,Only support:"UTC+8"、"UTC+0"、"UTC-8"。default:"UTC+0" | UTC+0 |
currency | String | N | currency。default : USD,Only support:USD CNY | USD |
appId | String | Y | APPID,Single choice |
#
3.4 Return datafields | type | notes |
---|---|---|
dateTimeStamp | int | Time Stamp |
appId | String | APP ID(tradplus) |
placementId | String | Placement ID (tradplus) |
placementName | String | Placement name (tradplus) |
adFormat | Int | Ad slot type |
adFormatName | String | Ad slot name |
area | String | Country code |
network | Int | Network ID |
networkName | String | Network Name |
networkPlacementId | String | Network Placement Id |
networkPlacementName | String | Network Placement Name (tradplus) |
networkPlacementInfo | String | Network Placement Information |
androidId | String | Device id,androidid |
gaid | String | Google advertising ID |
idfa | String | Identity for Advertisers |
userId | String | Custom User ID |
channel | String | Channel |
sub_channel | String | Sub-channel |
impression | Int | Impression number(tradplus) |
click | Int | Click number(tradplus) |
revenue | Float | Revenue |
ecpm | Float | Ecpm |
oaid | String | Android device ID |
idfv | String | Identifier for Vendor |
os_version | String | Version of OS |
att_status | Int | Status of Apple's ATT (0: notDetermined; 1: restricted; 2: denied; 3: authorized) |