Get application statistics
Name | Type | Description | Required |
---|---|---|---|
:app_id | string | app uuid | + |
:view | string | fields through which you can group statistics. Possible values: country, date, provider. | + |
country | string | country code in uppercase | + |
from, to | string | statistic period (days) in the format "YYYY-MM-DD", must be placed together. | + |
provider | string |
provider id, can be obtained from the providers’ list by URL curl -s 'https://adcel.co/api/providers' | json_pp
|
+ |
curl -H "Access-Token: access_token" -H "Client-Id: user_uuid" -s 'https://adcel.co/api/apps/:app_id/:view?field1=?&field2=?...' | json_pp
copy
curl -H "Access-Token: e33e0c9b00fac086da21c46e5ffe997f497b80dc" -H "Client-Id: 5b2e877f-1004-4895-b7db-d869ab7c9d4b" -s 'https://adcel.co/api/apps/d922c312-7c0e-49fc-920f-cb3a3119ac92/provider?from=2015-04-01&to=2015-04-30&provider=1&country=TH' | json_pp
copy
{
"result": {
"totals": {
"requests" : "123123",
"fillrate" : "100.00",
"clicks" : "123",
"ecpm" : "1.23",
"revenue" : 123.123,
"ctr" : "1.23",
"apps" : "1",
"impressions": "123123"
},
"stats" : {
"date": {
"2015-12-10": {
"fillrate" : "100.00",
"requests" : 123,
"revenue" : 123.456,
"ecpm" : "1.23",
"date" : "2015-12-10",
"clicks" : 123,
"app_id" : "f3d123e4-5ea6-789c-accd-1234567ac89a",
"ctr" : "1.23",
"impressions": 123
},
"2015-12-13": {
"fillrate" : "100.00",
"requests" : 123,
"revenue" : 123.456,
"ecpm" : "1.23",
"date" : "2015-12-10",
"clicks" : 123,
"app_id" : "f3d123e4-5ea6-789c-accd-1234567ac89a",
"ctr" : "1.23",
"impressions": 123
},
"2015-11-28": {
"fillrate" : "100.00",
"requests" : 123,
"revenue" : 123.456,
"ecpm" : "1.23",
"date" : "2015-12-10",
"clicks" : 123,
"app_id" : "f3d123e4-5ea6-789c-accd-1234567ac89a",
"ctr" : "1.23",
"impressions": 123
}
}
}
}
}
copy