View Zone placement

View Zone placement

GET https://api.ocamba.com/v2/adex/zones/{id}/placements/{placement_id}
Retrieves the details of a Zone placement that has previously been created if a valid identifier was provided

Path parameters

parameters

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/adex/zones/{id}/placements/{placement_id}" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/adex/zones/{id}/placements/{placement_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/zones/{id}/placements/{placement_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": "TOP_LEFT",
      "company_id": "1000000",
      "zone_id": "1000001",
      "track_id": "AF6PgAAtzeU",
      "tag": "<div class=\\\"axocmba\\\" data-slot=“feed.feed-name.com/AF6PgAAtzeU/l1”></div>",
      "name": "My first placement",
      "description": "Here goes description.",
      "layouts": [
        [
          "banner"
        ]
      ],
      "unit_size": [
        "300x250"
      ],
      "conf": {
        "wrap": "iframe",
        "js_code_exec": 1
      },
      "create_time": "2022-10-29 12:47:00",
      "update_time": "2022-10-30 14:27:26"
    }
  ]
}
Responses
Info
Placements are only available on display zones.