Skip to content

Advertiser statistics ​

GET/login/advertiser/stats

Access: authenticated advertiser, restricted to owned campaigns.

Authenticate with Authorization: Bearer MEMBER_ACCESS_TOKEN or your secure member session.

Authentication and error codes →

Returns campaign performance for the authenticated advertiser.

Common parameters ​

ParameterRequiredDescription
date_fromYesInclusive start date.
date_toYesInclusive end date.
pageNoPage number, default 1.
perPageNoRows per page, maximum 200.
sortNoBackend sort field.
orderNoasc or desc.
intervalNo1, 7, or 30.
timezoneNoReporting timezone; default UTC.
table_typeNocid, sid, geo, os, browser, domains, carrier, connections, or device.
cidsNoRepeated owned campaign IDs.
types, tids, geos, os, browserNoRepeated filters supported by the selected table.
bash
curl --get "https://example.com/api/v1/login/advertiser/stats" \
  --header "Authorization: Bearer MEMBER_ACCESS_TOKEN" \
  --data-urlencode "date_from=2026-08-01" \
  --data-urlencode "date_to=2026-08-17" \
  --data-urlencode "table_type=cid" \
  --data-urlencode "cids=123"
javascript
const params = new URLSearchParams({ date_from: '2026-08-01', date_to: '2026-08-17', table_type: 'cid', cids: '123' });
const response = await fetch(`https://example.com/api/v1/login/advertiser/stats?${params}`, {
  headers: { Authorization: `Bearer ${process.env.MEMBER_ACCESS_TOKEN}` },
});
if (!response.ok) throw new Error(`Nexus returned ${response.status}`);
console.log(await response.json());
python
import os
import requests

response = requests.get(
    'https://example.com/api/v1/login/advertiser/stats',
    headers={'Authorization': f"Bearer {os.environ['MEMBER_ACCESS_TOKEN']}"},
    params={'date_from': '2026-08-01', 'date_to': '2026-08-17', 'table_type': 'cid', 'cids': 123},
    timeout=30,
)
response.raise_for_status()
print(response.json())

Response ​

The response is paginated and includes data, total, currentPage, and totalPages.

Multiple campaign filters

Repeating cids filters multiple campaigns, for example cids=123&cids=456. Every requested campaign remains subject to member ownership checks.

Authentication and errors ​

This endpoint is served by the tenant member backend at https://example.com/api/v1. Use a member access JWT; publisher reporting keys do not authenticate this route. Each requested campaign must belong to the authenticated advertiser. Handle non-success HTTP responses before consuming the paginated body, and use the backend's returned validation/authentication message to diagnose rejected requests.

White-label Nexus API documentation