View Creative

View Creative

GET https://api.ocamba.com/api/v1/adex/creatives/{id}
Retrieves the details of a Creative that has previously been created if a valid identifier was provided

Tip
If you don’t know the creative id, list the creatives to find it.

Path parameters

parameters

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/api/v1/adex/creatives/{id}" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/api/v1/adex/creatives/{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/api/v1/adex/creatives/{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": [
        {
            "id": "1319667",
            "name": "demo_dynamic_native",
            "type": "dynamic-native",
            "status": "active",
            "distribution_rate": "0",
            "settings": {
                "size": "0x0",
                "title": {
                    "en": "http://example.domen/image/en.jpg",
                    "de": "http://example.domen/image/de.jpg",
                },
                "image": {
                    "en": "http://example.domen/image/en.jpg",
                },
                "landing_url": "http://example.domen/campaigns/view/?id=${CONVERSION_ID}",
                "target": null,
                "tracking_pixels": [
                    "http://example.domen/campaigns/view/?id=${CLICK_ID}",
                    "http://example.domen/campaigns/view/?id=${SESSION_ID}",
                ],
                "advertiser_domain": "http://example.domen/",
                "sponsored": {
                    "en": "demo-sponsor",
                    "ar": "arabic-sponsor"
                },
                "description": null,
                "rating": null,
                "likes": null,
                "downloads": null,
                "price": null,
                "sale_price": null,
                "phone": null,
                "address": null,
                "description_2": {
                    "en": "test_desc",
                    "a0": "test_desc"
                },
                "display_url": null,
                "ctatext": null,
                "postback": 1,
                "bundle_id": null
            },
            "create_time": "2020-10-26 18:33:39"
        }
    ]
}
Responses