Create Bid strategy

Create Bid strategy

POST https://api.ocamba.com/v2/adex/bid-strategies
Creates a new Bid strategy object

Request schema

body
curl -X POST \
 "https://api.ocamba.com/v2/adex/bid-strategies" \
  -H "Authorization: Bearer {TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "DemoBidStrategy",
  "pricing_model": "cpc",
  "strategy": "exact",
  "value": 87.32,
  "max_value": 11.03
}'
const url = 'https://api.ocamba.com/v2/adex/bid-strategies';
const options = {
  method: 'POST',
  headers: {
    Authorization: "Bearer {TOKEN}",
    'Content-Type': "application/json"
  },
  body: JSON.stringify(
    {
      "name": "DemoBidStrategy",
      "pricing_model": "cpc",
      "strategy": "exact",
      "value": 87.32,
      "max_value": 11.03
    }
  )
};

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");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}",
  "Content-Type: application/json"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(
  [
    "name" => "DemoBidStrategy",
    "pricing_model" => "cpc",
    "strategy" => "exact",
    "value" => 87.32,
    "max_value" => 11.03
  ]
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

201 Created

{
  "id": "10000"
}
Responses