Our reporting API allows you to get statistics for your account, for your adspace or ad campaign.
Contents:
Example URL:
client_type:
Allows to use two different functions, publisher for publishers and advertiser for advertisers.
report_type:
Allows to use two different functions, common for statistics and revenues and traffic for traffic data.
object_id (optional):
ID of your adspace or ad campaign. If not specified, will show the data for all adspaces/ad campaigns.
sub_id (optional):
Banner id for ad campaign or subspace for adspace.
x-plus1-token:
40 symbols auth key. You should contact client support to get the auth key ([email protected]).
Note: you can send x-plus1-token through GET, but we recommend to transfer the value through the same name of http header.
period:
1 – user period (has 2 parameters, beginDate and endDate in YYYY-MM-DD)
Note: if you select user period, beginDate and endDate will be required.
3 – today
4 – yesterday
100 – week
102 – month
9 – total
group:
(groups the data by time, only for common)
1 – hourly
2 – daily
3 – weekly
4 – monthly
5 – without group (results for all time)
reportName:
(type of the traffic report)
0 – carriers
1 – brands
2 – countries
3 – OS
4 – browsers
dataType:
jsonData – JSON
xmlData – XML
##json##
format
{'result': bool, 'statistic': [ date_reports ]}
- result:
- a boolean representing true if api call is successful
- statistic: list of date reports with following keys
- day:
- a string representing the date in format %Y-%m-%d
- views:
- the number of ad views seen
- clicks:
- the number of ad clicks
- ctr:
- click through rate
- income:
- total revenue generated by ads
- bannersCount:
- number of unique banners shown on the site/app
- day: