Test an External demand

Test an External demand

GET https://api.ocamba.com/v2/adex/external-demand/{id}/test
Tests External demand

Path parameters

parameters

Response schemas

204
No Content
curl -X GET \
 "https://api.ocamba.com/v2/adex/external-demand/{id}/test" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v2/adex/external-demand/{id}/test';
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/external-demand/{id}/test");
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

{
  "wp": {
    "ads": [
      {
        "title": "Why stretching is so important — especially as we age",
        "url": "https://xml.example.co/click?i=exSamxMple_0"
      }
    ]
  }
}

204 No Content

404 Not Found

Responses
Tip
If you don’t know the external demand id, list the external demands to find it.