Add a cpc bid strategy to a campaign
Add a cpc bid strategy to a campaign
PUT
https://api.ocamba.com/v2/adex/campaigns/{id}/cpc-bid-strategy/{sid}
Adds the cpc bid strategy to a Campaign if a valid identifier was providedPath parameters
parametersResponse schemas
•
204
No Content
curl -X PUT \
"https://api.ocamba.com/v2/adex/campaigns/{id}/cpc-bid-strategy/{sid}" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/campaigns/{id}/cpc-bid-strategy/{sid}';
const options = {
method: 'PUT',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/adex/campaigns/{id}/cpc-bid-strategy/{sid}");
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
204 No Content
Responses
Note
To add a bid strategy provide a valid bid strategy id in the request path.
Tip
If you don’t know the campaign id, list the campaigns to find it.