Device Reporting API
#
Change Logversion | date | notes |
---|---|---|
v2.0 | - | supports device report |
v3.0 | - | supports customized user ID query |
#
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#
2.1.1 URL_V3(recommended)#
2.1.2 Request method_V3#
2.1.3 Request params_V3params | 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.1.4 Return data_V3fields | 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) |
- The API will return 3 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 3 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.
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)
#
2.1.5 Sample#
Reqeust Sample:#
Response Sample:#
2.2.1 URL_V2 (deprecated)#
2.2.2 Request method_V2#
2.2.3 Request params_V2params | type | required | notes | sample |
---|---|---|---|---|
date | String | Y | date, format:YYYY-mm-dd,Only supports one day | 2020-03-01 |
currency | String | N | currency。default : USD,Only support:USD CNY | USD |
appId | String | Y | APPID,Single choice |
#
2.2.4 Return data_V2fields | 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 |
impression | Int | Impression number(tradplus) |
click | Int | Click number(tradplus) |
revenue | Float | Revenue |
ecpm | Float | Ecpm |
- The API will return 3 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 3 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.
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)