API for DSP

A manual how to use API statistics if you are an advertiser and have DSP account

Diana avatar
Written by Diana
Updated over a week ago

Adspyglass DSP provides JSON format API reports

Please pass in the HEAD request the folloing credentials:
X-ASG-USER-EMAIL
X-ASG-AUTH-TOKEN
(request it from your manager)
​ 

Reporting

Report by day
https://app.adspyglass.com/api/report?preset=&ad_types=2&period=08.04.2020+-+08.04.2020&group_by=date&conversion_types%5B%5D=101

Report by campaign
https://app.adspyglass.com/api/report?preset=&ad_types=2&period=08.04.2020+-+08.04.2020&group_by=campaign&conversion_types%5B%5D=101

Report by spot
https://app.adspyglass.com/api/report?preset=&ad_types=2&period=08.04.2020+-+08.04.2020&group_by=spot&conversion_types%5B%5D=101

Report by GEO
https://app.adspyglass.com/api/report?preset=&ad_types=2&period=08.04.2020+-+08.04.2020&group_by=country&conversion_types%5B%5D=101


Response example
{
"name": "2020-04-22",
"hits": 149135,
"clicks": 65937,
"bounces": 10,
"bounce_rate": 0.015165991780032455,
"ctr": 44.21296141080229,
"broker_hits": 0,
"broker_clicks": 65937,
"broker_bounces": 0,
"broker_income": 65.937,
"broker_cpm": 0,
"broker_ctr": 0,
"real_cpm": 1.0001516829220198,
"hits_to_clicks": 0,
"discrepancy": 99.98483400821996,
"conversion101": 0,
"broker_bounce_rate": 0,
"broker_cpc": 0,
"requests": 149135,
"impressions": 65937,
"ecpa101": 0,
"ectr101": 0
},

Balance

https://app.adspyglass.com/api/balance

Response example
{
"balance": "357.075"
}

Did this answer your question?