List Campaign creatives

List Campaign creatives

GET https://api.ocamba.com/v2/adex/campaigns/{campaign_id}/creatives

Returns a list of Campaign creatives

Path parameters

parameters

Query parameters

parameters

Response schemas

GET https://api.ocamba.com/v2/adex/campaigns/{campaign_id}/creatives HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v2/adex/campaigns/{campaign_id}/creatives" \
  -H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v2/adex/campaigns/{campaign_id}/creatives", {
  method: "GET",
  headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v2/adex/campaigns/{campaign_id}/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

HTTP/1.1 200 OK
Content-Type: application/json

{
  "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": 1006454,
      "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": 1006454,
      "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": 1006454,
      "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
1
Searchable field is name.
2
Sortable fields are create_time, update_time.
Info
1
The response example is representing a full view.
Note
1
Path parameter campaign_id is only useable on campaigns/{cid}/creatives routes. It is represented by {cid}.