Tracking Domains
HTTP Method
End Point
Description
GET
/campaign/domains
Get the tracking domains
PUT
/campaign/domains
Add or Delete the tracking domains

Get Tracking Domains

Sending a request to this endpoint will return the tracking domains of the network

Sample Request and Response

1
curl -X GET -H "X-Api-Key: {key}" -H "Cache-Control: no-cache" "http://api.trackier.com/campaign/domains"
Copied!
1
{
2
"success": true,
3
"data": {
4
"domains": [
5
"viralarticlez.com",
6
"dobolly.com"
7
]
8
}
9
}
Copied!

Update Tracking Domains

Sending a request to this endpoint will update the tracking domains list with the new list provided with the JSON body. Remember sending an empty array will remove all the previously added domains SO BE CAREFUL

Sample Request and Response

Valid Request

1
curl -X PUT -H "X-Api-Key: {key}" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{"domains": ["dobolly.com", "bollyhype.com"]}' "https://api.trackier.com/campaign/domains"
Copied!
1
{
2
"success": true,
3
"data": {
4
"message": "Please follow this guide to add tracking domain. http://vnative.com/add-custom-tracking-domain-ad-network/",
5
"domains": [
6
"dobolly.com",
7
"bollyhype.com"
8
]
9
}
10
}
Copied!

Invalid Request

1
curl -X PUT -H "X-Api-Key: {ket}" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{"domains": null}' "https://api.trackier.com/campaign/domains"
Copied!
1
{
2
"success": false,
3
"data": {
4
"message": "Invalid Request Body!!",
5
"domains": [
6
"dobolly.com",
7
"bollyhype.com"
8
]
9
}
10
}
Copied!
Last modified 1yr ago