Delete Campaign

Delete Campaign

DELETE https://api.ocamba.com/api/v1/adex/campaigns/{id}

Delete a Campaign. Deleting a Campaign is only possible if it has no ‘related_object’ associated with it

Path parameters

parameters
DELETE https://api.ocamba.com/api/v1/adex/campaigns/{id} HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X DELETE "https://api.ocamba.com/api/v1/adex/campaigns/{id}" \
  -H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/api/v1/adex/campaigns/{id}", {
  method: "DELETE",
  headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/api/v1/adex/campaigns/{id}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer $token"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

204 No Content

HTTP/1.1 204 No Content
Content-Type: application/json
Responses

Warning
1
This change will be automatically synchronized to an ad server.
Note
1
We recommend you consider other options before deletion.