List Campaign creatives
List Campaign creatives
GET
https://api.ocamba.com/v2/adex/creatives
Returns a list of CreativesQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/adex/creatives" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/creatives';
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/creatives");
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": 94,
"items": [
{
"id": "1000004",
"campaign_id": 1006454,
"name": "Demo dynamic native",
"type": "dynamic-native",
"status": "inactive",
"title": {
"en": "en title",
"sr": "sr title"
},
"image": {
"en": "http://example.domen/image/en.jpg",
"sr": "http://example.domen/image/sr.jpg"
},
"landing_url": "http://www.delsystems.net",
"target": "_blank",
"advertiser_domain": "www.delsystems.net"
},
{
"id": "1000005",
"campaign_id": 1001114,
"name": "Demo dynamic native external demand",
"type": "dynamic-native-external-demand",
"status": "active",
"title": {
"en": "en title",
"sr": "sr title"
},
"image": {
"en": "http://example.domen/image/en.jpg",
"sr": "http://example.domen/image/sr.jpg"
},
"landing_url": "http://www.delsystems.net",
"target": "_blank",
"advertiser_domain": "www.delsystems.net",
"override": {
"title": 0,
"image": 0,
"target": 0
}
},
{
"id": "1000006",
"campaign_id": 1010580,
"name": "Demo web push object",
"type": "web-push-object",
"status": "active",
"title": {
"en": "Samsung J5"
},
"body": {
"en": "Samsung Galaxy J5 smartphone was launched in June 2015."
},
"icon": "https://example_icon.png",
"image": {
"en": "https://example_image.jpg"
},
"landing_url": "https://www.ocamba.com",
"actions": [
{
"title": {
"en": "Yes",
"sr": "Da"
},
"url": "https://www.delsystems.net"
},
{
"title": {
"en": "No",
"sr": "Ne"
}
}
]
},
{
"id": "1000007",
"campaign_id": 1006302,
"name": "Demo web push exchange",
"type": "web-push-exchange",
"status": "active",
"title": {
"en": "New Important Message"
},
"body": {
"en": "Click Here"
},
"landing_url": "https://www.ocamba.com",
"language_direction": "ltr",
"renotify": 0,
"silent": 0,
"require_interaction": 0,
"postback": 1,
"vibration": "0,400,800",
"override": {
"body": 1,
"icon": 0,
"image": 0,
"landing_url": 1,
"title": 0
},
"actions": [
{
"title": {
"en": "Read Message"
},
"url": "https://www.delsystems.net"
}
]
}
]
}
Responses
Tip
Searchable field is name.
Sortable fields are create_time, update_time.
Filterable fields are: id, name, type, status, distribution_rate, create_time and update_time.
Info
The response example is representing a full view.
This endpoint returns all creatives for all campaigns.