status, which is always "error" for failed requests, and message, which describes what went wrong. Building your integration to check for these fields before attempting to use the response data will make your implementation resilient to transient failures, misconfiguration, and rate limits.
HTTP status code overview
Error responses
400 — missing required parameter
You will receive a 400 when a required query parameter is absent. The most common cause is omittingplacement from a GET /campaigns/fetch request.
GET /campaigns/fetch, placement is the only required query parameter.
401 — unauthorized
A 401 means the API key in yourAuthorization header is missing, malformed, or does not match a valid key.
Authorization: Bearer YOUR_API_KEY and that the key value is correct. API keys must never be included in client-side code.
404 — not found
A 404 is returned when the resource you are trying to reach does not exist. This can occur if acampaignId passed to the impression or click endpoints no longer corresponds to an active campaign.