View Bid strategy

View Bid strategy

GET https://api.ocamba.com/v2/adex/bid-strategies/{id}
Retrieves the details of a Bid strategy that has previously been created if a valid identifier was provided

Tip
If you don’t know the bid strategy id, list the bid strategies to find it.

Path parameters

parameters

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/adex/bid-strategies/{id}" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/adex/bid-strategies/{id}';
const options = {
  method: 'GET',
  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}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

{
  "total": 1,
  "items": [
    {
      "id": "1411",
      "company_id": "6197120",
      "name": "123",
      "pricing_model": "cpc",
      "type": "internal",
      "strategy": "exact",
      "value": 0.5,
      "max_value": 3,
      "is_default": 1,
      "create_time": "2022-07-14 08:23:32",
      "update_time": "2022-07-22 10:39:13"
    }
  ]
}
Responses