View External-demand report

View External-demand report

GET https://api.ocamba.com/v2/adex/reports/external-demand
Obtains report on External demand

Tip

Sortable fields are: stat_date, exchange_id, exchange_name, partner_id, partner_name, subid, os_id, os_name, browser_id, browser_name, country_code, country_name, device_id, device_name, and more.

To get data by the time in your local time zone, you should set tz query parameter to the specific time zone. See the list of valid time zones here.

For easier search, Reports API gives you the possibility of using one of the following labels: today, yesterday, last-7-days, last-30-days, last-24-hours, last-month, this-month.

Note
When filtering stat_date, use one of the following formats:
- Single format: YYYY-mm-dd;
- Range format: rf:YYYY-mm-dd,YYYY-mm-dd;
If you exclude this parameter, the default setup displays “today” stats.

Rate limits:

  • Burst: 10/s
  • Steady: 150/m

Query parameters

parameters

Response schemas

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

[
  {
    "exchange_name": "Adventure testing",
    "http_status_code": "200",
    "http_reason": "OK",
    "browser_name": "Unknown",
    "ads_count": 5
  }
]

400 Bad Request

{
  "code": 400,
  "title": "Bad request.",
  "message": "The request is not valid.",
  "trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}

500 Internal Server Error

{
  "code": 500,
  "title": "Internal server error.",
  "trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}
Responses