List all the Campaigns
HTTP Method
End Point
Description
GET
/campaign
Display all the campaigns
GET
/campaign/{id}
Display all the info of a single campaign

Request Parameters

Key
Value
Description
Required
active
integer (0, 1)
To display campaigns based on their status (active or inactive)
No (Default: 1)
limit
integer
The number of records to be displayed
Yes
page
integer
page number for the given limit
Yes

Response body

  • For all the campaigns
    1
    curl -X GET -H "X-Api-Key: {key}" -H "Cache-Control: no-cache" "http://api.trackier.com/campaign?active=1"
    Copied!
1
{
2
"data": {
3
"campaigns": [
4
{
5
"_id": "string (24 characters)",
6
"title": "string",
7
"description": "string",
8
"image": "image.jpeg",
9
"url": "http://url-to-content.com/path/to/content",
10
"device": [
11
"all"
12
],
13
"expiry": null,
14
"created": "2016-09-19",
15
"commissions": {
16
"{commission_id}": {
17
"model": "cpc",
18
"rate": 1,
19
"revenue": 0.15,
20
"coverage": [
21
"ALL"
22
]
23
}
24
}
25
},
26
{
27
"_id": "string",
28
"title": "string",
29
"description": "string",
30
"image": "image.png",
31
"url": "http://www.somewebsite.com/2016/some-awesome-content",
32
"device": [
33
"all"
34
],
35
"os": ["android", "ios"],
36
"os_ver": {
37
"android": {
38
"min": 5,
39
"max": 10
40
},
41
"ios": {
42
"min": 6,
43
"max": 12
44
}
45
},
46
"expiry": null,
47
"created": "2016-09-28",
48
"commissions": [
49
{
50
"model": "cpm",
51
"_id": "58f233...",
52
"rate": 0.001969696969697,
53
"revenue": 0.0068181818181818,
54
"coverage": [
55
"ALL"
56
]
57
}
58
]
59
}
60
],
61
"total": 2,
62
"page": 1,
63
"limit": 20
64
}
65
}
Copied!
  • For a single campaign
    1
    curl -X GET -H "X-Api-Key: {key}" -H "Content-Type: application/x-www-form-urlencoded" -H "Cache-Control: no-cache" "http://api.trackier.com/campaign/{id}"
    Copied!
1
{
2
"data": {
3
"campaign": {
4
"_id": "string",
5
"title": "string",
6
"description": "string,
7
"image": "img.png",
8
"url": "http://something.com/signup/",
9
"device": [
10
"all"
11
],
12
"expiry": null,
13
"created": "2016-10-09"
14
},
15
"commissions": [
16
{
17
"model": "cpa",
18
"_id": "string",
19
"rate": 1.5151515151515,
20
"revenue": 3.030303030303,
21
"coverage": [
22
"AU",
23
"CA",
24
"US"
25
]
26
}
27
]
28
}
29
}
Copied!
Last modified 1yr ago