List Campaign groups

List Campaign groups

GET https://api.ocamba.com/api/v1/adex/campaign-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 fields are name and id. Sortable fields are name and id.

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/api/v1/adex/campaign-groups" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/api/v1/adex/campaign-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/api/v1/adex/campaign-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": "2",
  "items": [
    {
      "id": "964",
      "name": "12 Monkeys",
      "color": "#3bafd9",
      "campaign_count": "230",
      "create_time": "2021-09-01 11:50:39"
    },
    {
      "id": "368",
      "name": "my-group",
      "color": "#3bafd9",
      "campaign_count": "18",
      "create_time": "2020-12-15 08:57:22"
    }
  ]
}
Responses