Add a cpm bid strategy to a campaign

Add a cpm bid strategy to a campaign

PUT https://api.ocamba.com/v2/adex/campaigns/{id}/cpm-bid-strategy/{sid}
Adds the cpm bid strategy to a Campaign if a valid identifier was provided

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.

Path parameters

parameters

Response schemas

204
No Content
curl -X PUT \
 "https://api.ocamba.com/v2/adex/campaigns/{id}/cpm-bid-strategy/{sid}" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/adex/campaigns/{id}/cpm-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}/cpm-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