Update a Campaign
Edit a campaign
HTTP method
End Point
POST
/campaign/{id}
Action
Fields
Type
Required
targeting
​
​
​
​
device
array (mobile/ tablet/ desktop/ all)
No
​
os
array (android/ios/all)
No
​
visibility
string - (public or private or permission)
No
image_upload
​
​
​
​
image_url
url
Yes
basic_info
​
​
​
​
title
string
No
​
url
url
No
​
preview_url
url
No
​
description
string
No
​
expiry
string (date: Y-M-D)
No
​
live
boolean
No
​
category
array
No
​
status
string
No
​
model
string(cpa, cps, cpm, cpl, cpi, cpc)
No
settings
​
​
​
​
blacklist_pubs
Array of Int (Campaign Short ID's/Display ID's)
Yes
​
whitelist_pubs
Array of Int (Campaign Short ID's/Display ID's)
Yes

Request body parameters

1
{
2
"action": "targeting",
3
"device": ["andriod", "iphone"],
4
"category": ["id1", "id2"],
5
"visibility": "public",
6
"permission": false
7
}
Copied!
  • Category ID's can be found from the dictionary
  • Devices can be found using dictionary

Example Request

1
curl -X POST -H "X-Api-Key: {key}" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 54faa9bd-949f-f512-8bfd-2e7af2742b9f" -d '{
2
"action": "targeting",
3
"device": ["andriod", "iphone"],
4
"category": ["{id1}", "{id1}"],
5
"visibility": "public",
6
"permission": false
7
}' "https://api.trackier.com/campaign/{id}"
Copied!

Response body

1
{
2
"success": true,
3
"data": {
4
"campaign": {
5
"user_id": "string",
6
"org_id": "string",
7
"title": "Deep Link Demo - Android Apps on Google Play",
8
"description": "Deep Link Demo App",
9
"url": "https://play.google.com/store/apps/details?id=xyz.abhaychauhan.www.deeplink&referrer=utm_source%3D123%26utm_medium%3Dblogslog&vnclick_id={click_id}",
10
"preview_url": "https://play.google.com/store/apps/details?id=xyz.abhaychauhan.www.deeplink",
11
"creative": null,
12
"image": "5852549669438.jpg",
13
"category": [
14
"Technology",
15
"Electric products"
16
],
17
"type": "article",
18
"device": [
19
"andriod",
20
"iphone"
21
],
22
"expiry": null,
23
"_id": "string",
24
"live": true,
25
"created": "2016-12-15",
26
"modified": "2016-12-25",
27
"meta": []
28
},
29
"message": "Targeting Info Updated!!"
30
}
31
}
Copied!
Last modified 1yr ago