List Campaign groups
List Campaign groups
GET
https://api.ocamba.com/v2/adex/groups
Returns a list of Campaign groups
Query parameters
parametersResponse schemas
โบ
200
application/json
GET https://api.ocamba.com/v2/adex/groups HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v2/adex/groups" \
-H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v2/adex/groups", {
method: "GET",
headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$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
HTTP/1.1 200 OK
Content-Type: application/json
{
"total": 1,
"items": [
{
"id": "103",
"name": "My-group",
"color": "#00efa7",
"size": 3,
"items": "\\\"1234\\\",\\\"5678\\\"",
"create_time": "2021-09-29 15:40:10",
"update_time": "2021-09-29 15:40:10"
}
]
}
Responses
Tip
1
If you don’t know the campaign group id, list the campaign groups to find it.
2
Searchable field is name.
3
Sortable fields are name, size, create_time and update_time.
4
Filterable fields are: id, name, size, create_time and update_time.
5
You can get all campaign groups containing given campaign by putting campaign_id in query parameters.