List Campaign groups

List Campaign groups

GET https://api.ocamba.com/v2/adex/groups
Returns a list of Campaign groups

Tip

If you don’t know the campaign group id, list the campaign groups to find it. Searchable field is name. Sortable fields are name, size, create_time and update_time. Filterable fields are: id, name, size, create_time and update_time.

You can get all campaign groups containing given campaign by putting campaign_id in query parameters.

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v2/adex/groups" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/adex/groups';
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/groups");
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": "103",
      "company_id": "6197120",
      "name": "My-group",
      "color": "#00efa7",
      "size": 3,
      "create_time": "2021-09-29 15:40:10",
      "update_time": "2021-09-29 15:40:10"
    }
  ]
}
Responses