View Campaign targeting
View Campaign targeting
GET
https://api.ocamba.com/api/v1/adex/targeting
Retrieves the details of a Campaign targeting that has previously been created if a valid identifier was providedQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/api/v1/adex/targeting" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/api/v1/adex/targeting';
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/targeting");
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
{
"targeting": {
"country": {
"item": ["ES", "IL", "MN"],
"list": ["1", "10", "431"],
"op": "exclude"
},
"browser": [{
"id": 12,
"op": "exact",
"version": ["74.0"],
"webview_support": "1"
},
{
"id": 17,
"op": "exact",
"version": ["40.0", "38.0"]
}
],
"os": null,
"traffic": {
"item": ["2", "3", "7"],
"op": "exclude"
},
"referrer": null,
"publisher": null,
"ip": null,
"category": null,
"connection": null,
"device_tracking": {
"is_turned_on": "1"
},
"subid": null,
"device_manufacturer": null,
"user_data": null,
"has_user_data": null,
"device_type": {
"item": ["mobile"],
"op": "include"
},
"time": {
"item": ["0 10,11,12 * * 5,6","0 14 1 * *"],
"op": "include"
},
}
}
Responses