Advertiser API
Advertiser API provides developers with a flexible and scalable way to integrate advertising features into their applications.
Legacy API v1 is deprecated and will be retired in a future release. Use the current API for new integrations. Legacy documentation remains available at Legacy API v1 docs.
All requests performed will affect live entities. Make sure to use dedicated entity IDs
when testing write operations (POST, PUT, PATCH,
and DELETE).
All endpoints require a bearer token.
Send the token in the Authorization header with the Bearer
scheme.
Create tokens in the UI at Create API token.
For example:
Authorization: Bearer api_token_example_12345678
curl -g 'http://dsp.ampx.io/advertiser/api/v2/reports?dimensions=date&measures=clicks&filters[date]=2025-01-01' \
--header 'Authorization: Bearer api_token_example_12345678'
Rate limits
API requests are processed through an IP-based concurrency limiter.
If too many requests from the same IP are already active or waiting in queue, the server
may reject the request with 503 Service Unavailable.
The server does not provide a precise retry timestamp.
Clients should retry with exponential backoff and jitter.
Methods overview
GET— read records, reports, and reference data.POST— create new records.PATCH— apply partial changes to an existing record. Omit fields that should remain unchanged.DELETE— remove an existing record.
Date and time formats
Use YYYY-MM-DD for date-only values, including report date filters.
Use ISO 8601 strings for date-time values, for example 2024-01-01T00:00:00Z.
Error responses
Error responses use a consistent JSON shape with code, detail,
and extra fields.
Common cases:
401 Unauthorized— missing or invalid authorization credentials.403 Forbidden— the token is valid, but access to the requested resource is denied.422 Unprocessable Entity— the request is syntactically valid but fails body, query, or filter validation.503 Service Unavailable— the request queue for the current client IP is full or timed out.
Validation errors may include field-level details in extra.validationErrors
or extra.fields, depending on the endpoint.
Reports requests
Report queries should include a valid date filter.
If the API responds with INVALID_REPORTS_FILTERS, correct the query before
retrying it.