View Campaign

View Campaign

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

Tip
If you don’t know the campaign id, list the campaigns to find it.

Path parameters

parameters

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/api/v1/adex/campaigns/{id}" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/api/v1/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/api/v1/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": [
    {
      "id": "1009154",
      "remote_id": null,
      "name": "My first campaign",
      "status": "active",
      "type": "internal",
      "pricing_model": "cpm",
      "score": "60",
      "iab_category": null,
      "sync_status": "1",
      "description": null,
      "start_time": "2020-10-14 10:00:00",
      "end_time": null,
      "create_time": "2020-08-14 07:10:09"
    }
  ]
}
Responses