Update Creative
Update Creative
PUT
https://api.ocamba.com/api/v1/adex/creatives/{id}
Updates the specific Creative by setting the values of the parameters passed
Path parameters
parametersPUT https://api.ocamba.com/api/v1/adex/creatives/{id} HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X PUT "https://api.ocamba.com/api/v1/adex/creatives/{id}" \
-H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/api/v1/adex/creatives/{id}", {
method: "PUT",
headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/api/v1/adex/creatives/{id}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer $token"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
Responses
200 OK
HTTP/1.1 200 OK
Content-Type: application/json
Responses
Note
1
At least one of the updatable fields should be sent via HTTP body in order to change the current state of the creative.
2
Field campaign_id is required in request body but it is not updateable.
Tip
1
If you don’t know the creative id, list the creatives to find it.