Skip to content

Instantly share code, notes, and snippets.

@dmtrs
Created April 12, 2016 14:25
Show Gist options
  • Save dmtrs/18bff185e560eddc4dc00438fe8dbc4f to your computer and use it in GitHub Desktop.
Save dmtrs/18bff185e560eddc4dc00438fe8dbc4f to your computer and use it in GitHub Desktop.
$ curl https://reporting.avocarrot.com/v1/publishers/7214\?access_token\=a065df92bfd67b15195cd0901a30a0a7949c0de2\&granularity\=day
{
"query": {
"filters": {
"publisher_id": [ "7214" ],
"app_id": [],
"placement_key": [],
"country": []
},
"granularity": "day",
"group": [ "publisher_id" ],
"timestamp": {
"from": "2016-04-12T00:00:00.000Z",
"to": "2016-04-12T13:00:00.000Z"
}
},
"data": [
{
"timestamp": "2016-04-12T00:00:00.000Z",
"dimensions": {
"app_id": null,
"country": null,
"placement_key": null,
"publisher_id": "7214"
},
"result": {
"ad_requests": 10000,
"clicks": 250,
"ctr": 0.10,
"earnings": 2.0,
"ecpm": 0.8,
"impressions": 2500
}
}
],
"meta": {
"currency": "USD"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment