View Campaign
View Campaign
GET
https://api.ocamba.com/v2/adex/campaigns/{id}
Retrieves the details of a campaign that has previously been created if a valid identifier was providedPath parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/adex/campaigns/{id}" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/campaigns/{id}';
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/campaigns/{id}");
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": [
{
"name": "example_campaign_name",
"description": "This is my first campaign.",
"status": "active",
"pricing_model": "cpc",
"account_id": "10073337",
"targeting": {
"countries": {
"items": [
"RS"
],
"lists": [
"1838"
],
"op": "in"
},
"regions": {
"items": [
"2661876"
],
"lists": [
"2934"
],
"op": "in"
},
"subids": {
"items": [
"fut_t10_18-24-MULTI_GG"
],
"lists": [
"1835"
],
"op": "in"
},
"ip": {
"items": [
"123.523.123.4"
],
"lists": [
"2691"
],
"op": "in"
},
"pages": {
"items": [
"ocamba.com"
],
"lists": [
"2725"
],
"op": "in"
},
"tags": {
"items": [
"1303"
],
"op": "in"
},
"device_types": {
"items": [
"console"
],
"op": "in"
},
"device_manufacturers": {
"items": [
"13"
],
"op": "in"
},
"os": {
"items": [
{
"id": "12",
"op": "in",
"versions": [
"10.0"
]
}
]
},
"browsers": {
"items": [
{
"id": "10",
"op": "in",
"versions": [
"10.0"
]
}
]
},
"connections": {
"items": [
"1"
],
"op": "nin"
},
"time": {
"items": [
"[0,15,30,45 12,13,14 * 6 1]"
],
"op": "in"
},
"device_tracking": 1,
"has_user_data": 1
},
"metadata": {
"key1": "value1"
}
"create_time": "2021-10-29 12:47:00",
"update_time": "2021-10-30 14:27:26"
}
]
}
Responses
Tip
If you don’t know the campaign id, list the campaigns to find it.
Info
The response example is representing a full view.