List Unit sizes

List Unit sizes

GET https://api.ocamba.com/v2/adex/unit-sizes
Returns a list of Unit sizes

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/adex/unit-sizes" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/adex/unit-sizes';
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/unit-sizes");
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": "120x120",
      "company_id": "4554545",
      "name": "medium ad size",
      "type": "custom",
      "group": "Custom",
      "visibility": 1,
      "width": 120,
      "height": 120,
      "create_time": "2021-09-29 15:40:10",
      "update_time": "2021-09-29 15:40:10"
    }
  ]
}
Responses
Tip

Searchable fields are id and name. Sortable fields are: name, type, group, width, height, create_time and update_time.

Filterable fields are: id, name, type, group, visibility, width, height, create_time and update_time.