Stats

In the following routes :id refers to CID or FID or PID. All of the following requires cuid as query string.

GET /stats/:id/summary

Get the summary stats for a campaign

Sample response:

1
2
3
4
5
6
7
8
9
{
"id": <:id>,
"imps": 0,
"clicks": 0,
"actions": 0,
"spend": 0,
"ctr": 0,
"cnvr": 0
}

GET /stats/:id/timeseries

  • start can be supplied as query string in form of Unix timestamp *
  • end can be supplied as query string in form of Unix timestamp *

Get the timeseries stats for a campaign

Sample response:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"id": <:id>,
"timeseries": [
{
"date": <UNIX TIMESTAMP>,
"imps": 0,
"clicks": 0,
"actions": 0,
"spend": 0,
"ctr": 0,
"cnvr": 0
},
{
"date": <UNIX TIMESTAMP>,
"imps": 0,
"clicks": 0,
"actions": 0,
"spend": 0,
"ctr": 0,
"cnvr": 0
}
]
}