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

Path parameters

parameters

Query parameters

parameters

Response schemas

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

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

{
  "total": 1,
  "items": [
    {
      "id": "10001233",
      "account_id": "52794322",
      "name": "DemoCampaign",
      "status": "active",
      "configured_status": "active",
      "type": "internal",
      "pricing_model": "cpc",
      "score": 78,
      "iab_category": [
        null
      ],
      "frequency_cap": {
        "impression": {
          "expiry_time": 10,
          "max_count": 2
        }
      },
      "start_time": "2021-10-20 12:47:00",
      "end_time": "2021-10-29 13:07:04",
      "remote_id": 42131,
      "exchange_id": 12341,
      "sync_status": 2,
      "description": "Description goes here",
      "create_time": "2021-09-29 15:40:10"
    }
  ]
}
Responses
Tip
1
If you don’t know the campaign id, list the campaigns to find it.