List Campaigns
List Campaigns
GET
https://api.ocamba.com/api/v1/adex/campaigns
Returns a list of Campaigns
Tip
Searchable fields are name and description.
Sortable fields are name, pricing_model, create_time.
Info
The response example is representing a full view.
Query parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/api/v1/adex/campaigns" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/api/v1/adex/campaigns';
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/campaigns");
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": 92,
"items": [
{
"id": "10001233",
"account_id": "52794322",
"name": "DemoCampaign",
"status": "active",
"configured_status": "active",
"type": "internal",
"pricing_model": "cpc",
"score": 78,
"iab_category": [
"IAB1-1",
"IAB1-2"
],
"frequency_cap": {
"impression": {
"expiry_time": 10,
"max_count": 2
}
},
"start_time": "2021-10-20 12:47:00",
"end_time": "2021-10-29 13:07:04",
"remote_id": 42131,
"exchange_id": 12341,
"sync_status": 2,
"description": "Description goes here",
"create_time": "2021-09-29 15:40:10"
}
]
}
Responses