Set Bid strategy as default
Set Bid strategy as default
POST
https://api.ocamba.com/v2/adex/bid-strategies/{id}/set-as-default
Sets a Bid strategy with the specified id as defaultPath parameters
parametersResponse schemas
•
204
No Content
curl -X POST \
"https://api.ocamba.com/v2/adex/bid-strategies/{id}/set-as-default" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/bid-strategies/{id}/set-as-default';
const options = {
method: 'POST',
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/bid-strategies/{id}/set-as-default");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
204 No Content
Responses
Note
If there is a default bid strategy with the same type and pricing model, it will be set as non-default and the bid strategy with a given id will be set as a new default.
Bid strategies with a type of
price_add or price_mutltiply can not be set as default.