APIs

Advertiser API

Version 1.0https://api.rtbpilot.io/advertiser/v1 OpenAPI document

The programmatic surface for managing the advertisers under your tenant account. For each advertiser — addressed in the path — manage campaigns, adsets, creatives, and conversion goals; read the advertiser's prepaid balance, record payments you received and charges you made, and follow the transaction ledger; and pull delivery reports.

Authentication

Each call carries an iam access token and a DPoP proof (RFC 9449):

Authorization: DPoP <access token>
DPoP: <a proof of the token's key, for this call>
  1. In the platform UI (My Organization, API keys) an administrator makes an API key for one of your programs and grants it the scopes it needs: adv-api:read, and adv-api:write to create advertisers, change their campaigns, ad sets, creatives and goals, and post payments and charges.
  2. The program takes an access token from your iam issuer's token endpoint with grant_type=client_credentials, its API key, the machine API's audience and a DPoP proof of its own key pair. The token is bound to that key and lives at most an hour.
  3. Each call sends the token and a new proof of the same key: the call's method, its URL (https://api.<root>/advertiser/v1/...), the token's hash (ath) and a jti never sent before.
Scope Endpoints
adv-api:read every GET, and the reports (POST …/reports, POST …/reports/xml)
adv-api:write every other POST, PATCH and DELETE

A token or a proof that does not hold is 401 invalid_token, with WWW-Authenticate: DPoP; a key without the scope, or an account without the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals), is 403. Only the documentation is public: GET /openapi.yaml, this reference (GET /docs) and its stylesheet. The old tnt_live_ tokens no longer open this API: re-key with an API key.

API Base Credential
Campaign /campaign/v1 an API key with its scopes
Programmatic /programmatic/v1 an API key with its scopes
XML /xml/v1 an API key with its scopes

Addressing advertisers

The key authenticates your tenant; the advertiser is addressed in the path. GET /advertisers lists the advertisers under your tenant, and every other data route lives under /advertisers/{advertiser_uuid} — e.g. GET /advertisers/{advertiser_uuid}/campaigns. An advertiser uuid that is not under your tenant is indistinguishable from a nonexistent one: every route under it returns 404. An archived advertiser is read-only: a write under it returns 409 (archived). Only the dictionaries, the tenant and the documentation routes live outside the prefix.

Response envelope

Every success response with a body is wrapped in a data object:

{"data": { ... }}

Arrays wrap the same way ({"data": [ ... ]}). 204 No Content responses (deletes) have no body. A refusal is a problem, not enveloped (Errors).

Money units — read this once, save hours

Field family Unit Example
funded_micros, spent_micros, balance_micros (billing), delta_micros (ledger) micro-dollars (integer) 12500000 = $12.50
amount, fee (transactions), balance (advertiser) dollars (exact decimal) 100.00 = $100.00
spend, revenue (reports), income_sum (goals) dollars (decimal) 41.27
cpm, cpc, max_bid (campaigns) dollars (decimal) 2.5
daily_budget, budget_lifetime (campaigns) whole dollars (integer) 250 = $250 — fractions are not representable

The ledger's money is exact: an amount you post is kept as its decimal (at most 6 places), never through floating point, and the amount, fee and balance you read are written from the same exact figures.

Timestamps

All timestamps are RFC 3339 in UTC (e.g. 2026-08-03T14:07:11Z). Fractional seconds up to nanosecond precision may appear — parsers must accept them. Report dates are YYYY-MM-DD; the hourOfDay dimension is "0"–"23", also UTC.

Update semantics

Every update endpoint is a field-level patch: a field you omit is left unchanged — only fields present in the body are written. Consequences:

  • null is treated the same as omitting the field. You cannot 'null out' a value.
  • To clear a list, send []; to clear a string, send "".
  • Gated numeric pairs (budgets, frequency caps, flight dates) are disabled by setting the *_status flag to false, not by clearing the number.
  • Zero values are real writes: "daily_budget": 0 sets 0, "status": false sets false.
  • An empty body {} is a legal no-op: nothing changes and the current object is returned.
  • A member that is no field of the endpoint is refused (400), so a misspelt field never passes unseen (is_hold_by_system among them: the platform sets it).

Idempotency

Every write (a POST but the reports, a PATCH or a DELETE) carries an Idempotency-Key header: a new key for each request, 1 to 128 letters, digits and -._: (8 to 128 for a payment or a charge), and the same one when it is retried. A retry is answered as the first call was (Idempotent-Replayed: true); the same key with another request (another field or another file) is 422.

Rate limits

Per API key (your program's iam client), per minute: 300 reads, 60 writes, 30 for uploads, reports, per-campaign stats and targeting values, each class across all of this API's endpoints of it. Every rate-limited answer carries RateLimit-Remaining and RateLimit-Reset. Exceeding a limit returns 429 rate_limited with Retry-After; if the rate-limit store itself is degraded the request is refused with 503 and Retry-After: 5 (fail closed, never silently unthrottled).

Errors

Every refusal is a problem (RFC 9457), application/problem+json: {"type", "title", "status", "code", "detail", "request_id", "errors": [{"field", "reason"}]}. Branch on status and code, never on detail; errors names each field at fault of an invalid input. Common codes (not exhaustive):

Code HTTP Meaning
invalid_argument 400 A field is refused, or is no field of the operation: errors names it (an amount that is no positive decimal; a fee a refund carries, or one not below a payment's amount; an email already in use; a campaign's pricing, list, date or vocabulary; an ad set's or a goal's name already in use; a filter of a list; a report's dimension, sort or paging; an upload's file left out, empty, too large or of the wrong media type; an adset_uuid that names no ad set of the advertiser's)
invalid_request 400 The query or the body is malformed: the body is not one JSON object, or not a well-formed form
idempotency_key_required 400 A write without an Idempotency-Key (or, on a payment or a charge, one shorter than 8 characters)
unsupported_media_type 415 A JSON body that is not application/json, or an upload that is not multipart/form-data
invalid_token 401 The token or its proof does not hold
permission_denied 403 The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals)
not_found 404 No such advertiser under your tenant, or no such campaign, ad set, creative or goal under it
archived 409 A write under an archived advertiser, which is read-only
already_exists 409 A campaign of the advertiser has that name already (in any case)
overdraft 409 A charge or a refund the balance does not cover
idempotency_key_in_use 409 A request with this Idempotency-Key still runs
too_large 413 The upload is over its limit
idempotency_key_reused 422 This Idempotency-Key was used for another request
rate_limited 429 Over the rate: wait Retry-After seconds
balance_unavailable 503 The balance cannot be verified now: never a zero
unavailable, auth_unavailable 503 A backing service cannot answer now: retry after Retry-After

Pagination

GET …/adsets and GET …/billing/transactions are paginated with page / page_size query parameters and return {"data": {"items": [...], "total": n, "page": p, "page_size": s}}; the ledger also returns total_pages. The reports (POST …/reports, POST …/reports/xml, GET …/campaigns/{uuid}/stats) page up to 10000 rows and return page, pageSize, total and totalPages beside the rows. All other list endpoints (/advertisers, …/campaigns, …/creatives, …/goals, dictionaries) return the full list; pagination is not applied. A page past the bounds is a 400 on its field, never clamped.

Conversion postbacks (server-to-server)

Report conversions against a goal by firing, from your server:

GET https://cb.rtbpilot.io/cb/goal?gid=<goal_uuid>&tid=<tenant_uuid>&aid=<auction_id>&income=<value>&currency=usd

tid is your tenant_uuid — the tenant every advertiser under your account belongs to (GET /tenant); aid is the auction id your click/tracking URL received in its macros. Every hit records a conversion — send exactly one request per conversion event; there is no idempotency key, so sender retries double-count. A 503 means the intake is momentarily down: retry those. 404/410 mean an unknown or paused goal: don't.

Internal bookkeeping fields

id, tenant_uuid, version and xxhash3 appear on many responses. They are internal bookkeeping fields — safe to ignore, and not accepted on writes. Use uuid as the stable identifier everywhere. An ad set no longer carries the old id (an integer row number), and a ledger row no longer carries the old version and updated_at: the ledger keeps neither.

Security schemes

dpop HTTP DPoP

Authorization: DPoP <access token> and, for each request, a DPoP proof of the token's key (RFC 9449). The token is one your program takes from your iam issuer with client_credentials and its API key, holding adv-api:read and, to write, adv-api:write.

Tenant

The key's own tenant: its uuid and its name.

GET /advertiser/v1/tenant

The key's tenant

Needs dpop

The tenant the API key belongs to: its uuid and its name. The brand, the Google sign-in and the card payments of an advertiser portal are that portal's own settings and are not served here.

Responses

200

The tenant.

application/json · object

PropertyTypeDescription
data requiredTenant

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

Advertisers

The advertisers under your tenant — the accounts every other data route is addressed by. List them to discover uuids; each advertiser carries its status code and standing, ledger balance, and contact handles.

GET /advertiser/v1/advertisers

List advertisers

Needs dpop

The advertisers under your tenant — the accounts every advertiser-addressed route is keyed by, newest first, archived ones too (archived_at set, status 0). Returns the full list; pagination is not applied.

Parameters

NameInTypeDescription
qquerystring

Case-insensitive substring match on the email, the display name or the company

  • Max length: 200
statusquerystring

CSV of status codes: 1 = active, 2 = pending verification, 0 = inactive. Any other entry is a 400 on status.

account_manager_uuidquerystring (uuid)

Only advertisers assigned to this tenant user (account manager).

Responses

200

The advertisers.

application/json · object

PropertyTypeDescription
data requiredarray of Advertiser

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers

Create an advertiser

Needs dpop

Open an advertiser account under your tenant. The 201 body carries the uuid, which is the value every /advertisers/{advertiser_uuid}/… route below is addressed by — create first, then use that uuid.

email is required and must be unique within your tenant, in any case (400 on email). status defaults to 2 (pending verification): an advertiser pending verification serves nothing until your team verifies it in the console. display_name is the account's name on the consoles, its email when absent.

Money does not enter here. A new advertiser starts at a zero balance; fund it with POST /advertisers/{advertiser_uuid}/billing/payments, where the payment is a ledger row with a method and an audit trail.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · object

PropertyTypeDescription
email requiredstring (email)

Unique within your tenant

  • Max length: 255
statusinteger

0 = inactive, 1 = active, 2 = pending verification (default)

  • One of: 0, 1, 2
account_manager_uuidstring

The teammate responsible for the account (their id at your identity provider)

telegram_idstring
  • Max length: 120
whatsapp_idstring
  • Max length: 120
display_namestring

The account's name on the consoles; the email when absent.

  • Max length: 120
company_namestring
  • Max length: 200

Responses

201

The advertiser. Use data.uuid to address every route below.

application/json · AdvertiserEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/advertisers/{advertiser_uuid}

Get an advertiser

Needs dpop

One advertiser under your tenant, full object. 404 if the uuid is not one of your advertisers.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Responses

200

The advertiser.

application/json · AdvertiserEnvelope

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

Dictionaries

Static vocabularies behind the targeting fields: country ids (ISO 3166-1 numeric) for country_targeting, the named country groups that fill it, language ids for language_targeting, and the browser, operating-system and device tokens. Contents are stable; safe to cache for days.

GET /advertiser/v1/dictionaries/countries

Country dictionary

Needs dpop

Every country accepted by country_targeting, sorted by alpha-2 code. id is the ISO 3166-1 numeric code — the integer you send in country_targeting. Contents are static; cache freely.

Responses

200

The country list.

application/json · object

PropertyTypeDescription
data requiredarray of DictionaryEntry

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/dictionaries/languages

Language dictionary

Needs dpop

Every language accepted by language_targeting, in id order. id is the platform's stable numeric language code (a 1-based index over the alphabetical ISO 639-1 list — e.g. 38 = English); code is the ISO 639-1 alpha-2. Contents are static; cache freely.

Responses

200

The language list.

application/json · object

PropertyTypeDescription
data requiredarray of DictionaryEntry

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/dictionaries/browsers

Browser dictionary

Needs dpop

Every browser family accepted by a campaign's browsers list. Send the token; label is for display only.

The list is generated from the same table the bidder folds every request through, so it is exactly what can match at auction time.

Versions. A entry may carry a numeric version qualifier: chrome:148 (major) or safari:18.1 (major.minor). A bare token means every version.

Product names. Parser product names are also accepted and folded for you — Chrome Mobile and Chrome Mobile iOS become chrome, Mobile Safari becomes safari. Prefer the token.

yandex, huawei, silk, qq. Each of these 4 tokens names one browser. other still includes all 4, so other keeps its traffic. To serve one of them alone, send its token. To serve other without one of them, send other in browsers and the token in browsers_exclude.

A campaign's browsers are stored as given: a name that is none of these tokens matches no request, so check yours against this list.

Contents are static; cache freely.

Responses

200

The browser vocabulary, sorted by token.

application/json · object

PropertyTypeDescription
data requiredarray of VocabularyTerm

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/dictionaries/operating-systems

Operating-system dictionary

Needs dpop

Every OS family accepted by a campaign's operating_systems list. Send the token; label is for display only.

Version qualifiers and folded product names work exactly as they do for browsers — windows:8.1, android:15, and macosx or iPadOS fold to macos and ios. A campaign's operating systems are stored as given: a name that is none of these tokens matches no request.

macOS carries no readable version. Apple freezes the string at 10_15_7, so every macOS request reads major 10. Do not build a macOS version target.

Contents are static; cache freely.

Responses

200

The OS vocabulary, sorted by token.

application/json · object

PropertyTypeDescription
data requiredarray of VocabularyTerm

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/dictionaries/devices

Device dictionary

Needs dpop

Every device bucket accepted by a campaign's devices list. Send the token.

Devices carry no version dimension — mobile:15 is not a device. phone is accepted as a synonym of mobile. TV, console and wearable traffic cannot be targeted.

Contents are static; cache freely.

Responses

200

The device vocabulary, sorted by token.

application/json · object

PropertyTypeDescription
data requiredarray of VocabularyTerm

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/dictionaries/country-groups

Country group dictionary

Needs dpop

Named sets of countries: the 6 continents and GCC, in that order. A group is a shortcut for filling country_targeting, not a targeting value: a campaign stores the country ids, so send the country_ids of the group (or a part of them), never its code.

The continents follow the UN M49 geoscheme without exception. Every country of GET /dictionaries/countries is in exactly one continent, except Antarctica, which is in none. North America includes Central America and the Caribbean. GCC is a subset of Asia.

Contents are static; cache freely.

Responses

200

The country groups, in a fixed order.

application/json · object

PropertyTypeDescription
data requiredarray of CountryGroup

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

Campaigns

The delivery unit. A campaign carries pricing (CPM or CPC by type), budgets, pacing, flighting, targeting, and the adsets it serves creatives from. New campaigns start paused.

GET /advertiser/v1/advertisers/{advertiser_uuid}/campaigns

List campaigns

Needs dpop

The advertiser's campaigns. Returns the full list; pagination is not applied.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

qquerystring

Substring match on name

typequerystring

CSV of campaign types: native,pop_redirect,push,video_banner,search,keyword. Any other is a 400 on type.

infrastructurequerystring

CSV of rtb,xml. Any other is a 400 on infrastructure.

statusquerystring

CSV of 1/0/true/false (active/paused). An unparseable entry is a 400 on status.

Responses

200

The advertiser's campaigns.

application/json · object

PropertyTypeDescription
data requiredarray of Campaign

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/campaigns

Create a campaign

Needs dpop

type decides the pricing model — native/video_banner bid CPM, pop_redirect/push/search/keyword bid CPC (both in decimal dollars). A new campaign is active unless status is false; it serves once creatives are attached and the advertiser is funded. Your tenant's campaign defaults are copied into it when it brings no defaults_profile, and the lists it names must be the advertiser's.

Errors: 400 (a field refused, on its field: an invalid type or infrastructure, pricing that does not match the type, a list that is not the advertiser's, a pop_redirect or push campaign without a tracking_url), 409 (already_exists: a campaign of this advertiser has the name, in any case).

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · CampaignCreate

Example: Minimal CPC campaign
{
  "name": "Summer push US",
  "type": "push",
  "infrastructure": "rtb",
  "traffic_type": "web",
  "cpc": 0.45
}
Example: Fully-targeted CPM campaign
{
  "name": "Q3 native DE+AT",
  "type": "native",
  "infrastructure": "rtb",
  "traffic_type": "both",
  "cpm": 2.5,
  "max_bid": 4,
  "brand_name": "Acme",
  "advertiser_domain": "acme.example",
  "daily_budget_status": true,
  "daily_budget": 250,
  "budget_lifetime_status": true,
  "budget_lifetime": 5000,
  "pacing": "evenly",
  "country_targeting": [
    276,
    40
  ],
  "language_targeting": [
    33,
    38
  ],
  "devices": [
    "mobile",
    "tablet"
  ],
  "is_active_dayparting": true,
  "dayparting": {
    "mask": [
      0,
      16777215,
      16777215,
      16777215,
      16777215,
      16777215,
      0
    ]
  },
  "adset_uuids": [
    "4b1de1a2-9c3f-4f6e-8d7a-5b6c7d8e9f0a"
  ],
  "rtb_inventory_filters": {
    "block_coppa_traffic": true,
    "required_schain": true
  }
}

Responses

201

Created.

application/json · CampaignEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/advertisers/{advertiser_uuid}/campaigns/{uuid}

Get a campaign

Needs dpop

One campaign, full object. 404 if the uuid is not under this advertiser.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)

Responses

200

The campaign.

application/json · CampaignEnvelope

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

PATCH /advertiser/v1/advertisers/{advertiser_uuid}/campaigns/{uuid}

Update a campaign

Needs dpop

Partial update: omitted fields are unchanged; null is treated as omitted. Clear a list with [], a string with "". Use clear_start_date / clear_end_date to remove a flight date. An empty body {} is a legal no-op. is_hold_by_system is the platform's: a body that sends it is refused (400).

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)
Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · CampaignUpdate

Responses

200

Updated.

application/json · CampaignEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

DELETE /advertiser/v1/advertisers/{advertiser_uuid}/campaigns/{uuid}

Delete a campaign

Needs dpop

Permanently deletes the campaign.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)
Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Responses

204

Deleted.

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

PATCH /advertiser/v1/advertisers/{advertiser_uuid}/campaigns/{uuid}/status

Activate / pause a campaign

Needs dpop

The operational on/off switch. status is required — a body without it returns 400 on status, never a silent pause. Note delivery also requires funding: a campaign held for insufficient balance (is_hold_by_system=true) stays off until the account is resumed after a top-up.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$
uuid requiredpathstring (uuid)

Request body required

application/json · object

PropertyTypeDescription
status requiredboolean

true = active, false = paused

Responses

200

Updated.

application/json · CampaignEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

Adsets

Creative groupings. Each adset holds creatives of one format (scope); campaigns reference adsets via adset_uuids.

GET /advertiser/v1/advertisers/{advertiser_uuid}/adsets

List adsets

Needs dpop

Adsets group creatives; campaigns reference adsets via adset_uuids. Paginated: the response is {"data": {"items": [...], "total": n, "page": p, "page_size": s}}.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

namequerystring

Case-insensitive substring filter

scopequerystring
  • One of: native, display, video, push, search, redirect
statusquerystring

An unparseable value is a 400 on status.

  • One of: 1, 0, true, false
pagequeryinteger
  • Default: 1
  • Minimum: 1
page_sizequeryinteger

Above 100 is a 400.

  • Default: 50
  • Minimum: 1
  • Maximum: 100

Responses

200

Paged adsets.

application/json · object

PropertyTypeDescription
data requiredAdsetPage

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/adsets

Create an adset

Needs dpop

400 on name if another ad set of the advertiser has the name.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · object

PropertyTypeDescription
name requiredstring
scope requiredstring

Which creative kind this adset holds. redirect holds pop / direct-link creatives, which carry no uploaded asset.

  • One of: native, display, video, push, search, redirect
statusboolean
  • Default: true

Responses

201

Created.

application/json · AdsetEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/advertisers/{advertiser_uuid}/adsets/{uuid}

Get an adset

Needs dpop

One adset. To list the creatives it holds, use GET …/creatives?adset_uuid=<uuid>.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)

Responses

200

The adset.

application/json · AdsetEnvelope

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

PATCH /advertiser/v1/advertisers/{advertiser_uuid}/adsets/{uuid}

Update an adset

Needs dpop

Partial update: omitted fields are unchanged; null is treated as omitted. Clear a list with [], a string with "". An empty body {} is a legal no-op.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)
Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · object

PropertyTypeDescription
namestring
scopestring
  • One of: native, display, video, push, search, redirect
statusboolean

Responses

200

Updated.

application/json · AdsetEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

DELETE /advertiser/v1/advertisers/{advertiser_uuid}/adsets/{uuid}

Delete an adset

Needs dpop

Permanently deletes the adset.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)
Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Responses

204

Deleted.

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

Creatives

The renderable assets — image, video, audio, native, push, text-only search ads, and redirect (pop / direct-link) creatives. Media uploads are multipart/form-data; the pipeline validates format and IAB sizes and generates downscales. Search and redirect are JSON — a redirect carries no asset at all: the campaign's tracking_url is the ad.

POST /advertiser/v1/advertisers/{advertiser_uuid}/creatives/display

Upload a display (image) creative

Needs dpop

multipart/form-data. Accepted: JPEG, PNG, GIF at IAB display sizes. Downscaled variants are generated automatically. text1– text3 are free-form forward-compatible slots echoed back on the creative. Errors: 400 (missing file or ad set; an adset_uuid that names no ad set of the advertiser's, on adset_uuid). The adset is checked first; then the file is stored and the creative made, in one request. The file part carries its file name and is sent as an image type or application/octet-stream, at most 64 MiB. Heavy rate-limit class (30/min).

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

multipart/form-data · object

PropertyTypeDescription
file requiredstring (binary)
adset_uuid requiredstring (uuid)
text1string
text2string
text3string

Responses

201

Created.

application/json · CreativeEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

413

The upload is over its limit (64 MiB).

application/problem+json · Problem

Example: tooLarge
{
  "type": "about:blank",
  "title": "Request Entity Too Large",
  "status": 413,
  "code": "too_large"
}

415

The body is not multipart/form-data with its boundary, or a part is in a transfer encoding other than binary, 8bit or 7bit.

application/problem+json · Problem

Example: notForm
{
  "type": "about:blank",
  "title": "Unsupported Media Type",
  "status": 415,
  "code": "unsupported_media_type"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/creatives/video

Upload a video creative

Needs dpop

multipart/form-data. Accepted: MP4, WebM, OGG/OGV, MOV. File properties (duration, codec, resolution) are extracted automatically; the optional video_* fields carry the OpenRTB bid-spec signals used to match Video slot constraints. Errors as for display uploads.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

multipart/form-data · object

PropertyTypeDescription
file requiredstring (binary)
adset_uuid requiredstring (uuid)
text1string
text2string
text3string
video_protocolsstring

CSV of OpenRTB Video.protocols integers (VAST versions), e.g. 2,3,6. Non-integer entries return 400.

video_mime_typesstring

CSV of mime types, e.g. video/mp4,video/webm.

video_api_frameworkstring

API framework token: vpaid_1, vpaid_2, omid_1, or empty.

Responses

201

Created.

application/json · CreativeEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

413

The upload is over its limit (64 MiB).

application/problem+json · Problem

Example: tooLarge
{
  "type": "about:blank",
  "title": "Request Entity Too Large",
  "status": 413,
  "code": "too_large"
}

415

The body is not multipart/form-data with its boundary, or a part is in a transfer encoding other than binary, 8bit or 7bit.

application/problem+json · Problem

Example: notForm
{
  "type": "about:blank",
  "title": "Unsupported Media Type",
  "status": 415,
  "code": "unsupported_media_type"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/creatives/audio

Upload an audio creative

Needs dpop

multipart/form-data. Accepted: MP3, M4A. Errors as for display uploads.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

multipart/form-data · object

PropertyTypeDescription
file requiredstring (binary)
adset_uuid requiredstring (uuid)
text1string
text2string
text3string

Responses

201

Created.

application/json · CreativeEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

413

The upload is over its limit (64 MiB).

application/problem+json · Problem

Example: tooLarge
{
  "type": "about:blank",
  "title": "Request Entity Too Large",
  "status": 413,
  "code": "too_large"
}

415

The body is not multipart/form-data with its boundary, or a part is in a transfer encoding other than binary, 8bit or 7bit.

application/problem+json · Problem

Example: notForm
{
  "type": "about:blank",
  "title": "Unsupported Media Type",
  "status": 415,
  "code": "unsupported_media_type"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/creatives/native

Upload a native creative

Needs dpop

multipart/form-data. The image plus native copy: title ≤ 75 chars, description ≤ 120 chars. Errors as for display uploads.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

multipart/form-data · object

PropertyTypeDescription
file requiredstring (binary)
adset_uuid requiredstring (uuid)
title requiredstring
  • Max length: 75
descriptionstring
  • Max length: 120
text1string
text2string
text3string

Responses

201

Created.

application/json · CreativeEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

413

The upload is over its limit (64 MiB).

application/problem+json · Problem

Example: tooLarge
{
  "type": "about:blank",
  "title": "Request Entity Too Large",
  "status": 413,
  "code": "too_large"
}

415

The body is not multipart/form-data with its boundary, or a part is in a transfer encoding other than binary, 8bit or 7bit.

application/problem+json · Problem

Example: notForm
{
  "type": "about:blank",
  "title": "Unsupported Media Type",
  "status": 415,
  "code": "unsupported_media_type"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/creatives/push

Upload a push creative

Needs dpop

multipart/form-data with TWO files: icon (square, 20×20 to 400×400) and image (3:2, 150×100 to 720×480). headline ≤ 40 chars, description ≤ 90 chars. The headline is stored — and returned — as the creative's title. Errors as for display uploads.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

multipart/form-data · object

PropertyTypeDescription
icon requiredstring (binary)
image requiredstring (binary)
adset_uuid requiredstring (uuid)
headline requiredstring

Stored and returned as title.

  • Max length: 40
descriptionstring
  • Max length: 90
text1string
text2string
text3string

Responses

201

Created.

application/json · CreativeEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

413

The upload is over its limit (64 MiB).

application/problem+json · Problem

Example: tooLarge
{
  "type": "about:blank",
  "title": "Request Entity Too Large",
  "status": 413,
  "code": "too_large"
}

415

The body is not multipart/form-data with its boundary, or a part is in a transfer encoding other than binary, 8bit or 7bit.

application/problem+json · Problem

Example: notForm
{
  "type": "about:blank",
  "title": "Unsupported Media Type",
  "status": 415,
  "code": "unsupported_media_type"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/creatives/search

Create a search (text-only) creative

Needs dpop

JSON, no media. headline ≤ 30 chars, description ≤ 80 chars. The headline is stored — and returned — as the creative's title; a search creative is recognizable by its empty media_type_1.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · object

PropertyTypeDescription
adset_uuid requiredstring (uuid)
headline requiredstring

Stored and returned as title.

  • Max length: 30
descriptionstring
  • Max length: 80
text1string
text2string
text3string

Responses

201

Created.

application/json · CreativeEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/creatives/redirect

Create a redirect (pop / direct-link) creative

Needs dpop

JSON, no media — a redirect creative renders no assets at all. The destination is the campaign's tracking_url, and that URL IS the ad; nothing on the creative supplies it. Serving gates on it: a redirect creative whose campaign carries no tracking_url is skipped, taking the campaign out of the pool with it. The persisted row carries media_type_1: "redirect" with both media slots empty — that column is what marks the row as a redirect rather than an asset-less banner. headline ≤ 75 chars and description ≤ 120 chars are optional operator-facing labels; a pop renders neither. text1 is the call-to-action label, defaulting to "Learn More".

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · object

PropertyTypeDescription
adset_uuid requiredstring (uuid)
headlinestring

Operator-facing label — returned as title. Not rendered.

  • Max length: 75
descriptionstring

Operator-facing label. Not rendered.

  • Max length: 120
text1string

Call-to-action label; defaults to "Learn More" at serve time.

text2string
text3string

Responses

201

Created.

application/json · CreativeEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/advertisers/{advertiser_uuid}/creatives

List creatives

Needs dpop

The advertiser's creatives, newest first. Returns the full list; pagination is not applied. Filter to one adset with adset_uuid.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

adset_uuidquerystring (uuid)

Only this adset's creatives

Responses

200

The advertiser's creatives, newest first.

application/json · object

PropertyTypeDescription
data requiredarray of Creative

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/advertisers/{advertiser_uuid}/creatives/{uuid}

Get a creative

Needs dpop

One creative.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)

Responses

200

The creative.

application/json · CreativeEnvelope

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

DELETE /advertiser/v1/advertisers/{advertiser_uuid}/creatives/{uuid}

Delete a creative

Needs dpop

Permanently deletes the creative.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)
Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Responses

204

Deleted.

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

PATCH /advertiser/v1/advertisers/{advertiser_uuid}/creatives/{uuid}/status

Activate / pause a creative

Needs dpop

Soft-disable switch. status is required — a body without it returns 400 on status, never a silent pause.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$
uuid requiredpathstring (uuid)

Request body required

application/json · object

PropertyTypeDescription
status requiredboolean

true = active, false = paused

Responses

200

Updated.

application/json · CreativeEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

Goals

Conversion goals. Create a goal, then fire the server-to-server postback (see the intro) with its uuid as gid; lifetime rollups are returned on every goal read.

GET /advertiser/v1/advertisers/{advertiser_uuid}/goals

List conversion goals

Needs dpop

The advertiser's goals, with lifetime conversion rollups. Returns the full list; pagination is not applied.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

statusquerystring

CSV of 1/0/true/false. An unparseable entry is a 400 on status.

Responses

200

The advertiser's goals, with lifetime conversion rollups.

application/json · object

PropertyTypeDescription
data requiredarray of Goal

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/goals

Create a goal

Needs dpop

Create the goal, then fire the conversion postback (see the intro) with its uuid as gid. A goal's name is kept trimmed and in lower case; 400 on name if another goal of the advertiser has it.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · object

PropertyTypeDescription
name requiredstring

Responses

201

Created.

application/json · GoalEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/advertisers/{advertiser_uuid}/goals/{uuid}

Get a goal

Needs dpop

One goal with its lifetime rollups.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)

Responses

200

The goal.

application/json · GoalEnvelope

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

PATCH /advertiser/v1/advertisers/{advertiser_uuid}/goals/{uuid}

Update a goal

Needs dpop

Partial update: omitted fields are unchanged; null is treated as omitted. An empty body {} is a legal no-op. Setting status: false pauses intake — postbacks answer 410.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)
Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · object

PropertyTypeDescription
namestring
statusboolean

false pauses intake — postbacks answer 410

Responses

200

Updated.

application/json · GoalEnvelope

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

DELETE /advertiser/v1/advertisers/{advertiser_uuid}/goals/{uuid}

Delete a goal

Needs dpop

Permanently deletes the goal. Postbacks to its uuid answer 404.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)
Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Responses

204

Deleted.

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

Billing

The money surface — prepaid balance as delivery enforcement sees it, the transaction ledger, and the money you post to it: payments received, charges and refunds. campaign_spend rows are the platform's.

GET /advertiser/v1/advertisers/{advertiser_uuid}/billing/balance

Prepaid balance

Needs dpop

The advertiser's live prepaid position, exactly as delivery enforcement sees it: funded_micros (settled deposits) − spent_micros (live delivery counters) = balance_micros. Values are micro-dollars (integers; 1000000 = $1). balance_micros can go slightly negative when in-flight wins land after exhaustion. has_ledger=false means the account was never funded. A 503 (balance_unavailable) means the balance cannot be verified now (the spend store did not answer, or billing is not running) — never interpret it as zero.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Responses

200

The balance.

application/json · object

PropertyTypeDescription
data requiredBalance

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/advertisers/{advertiser_uuid}/billing/transactions

Transaction ledger

Needs dpop

The advertiser's full ledger, newest first: deposits (added_manually), charges (charged_by_client), refunds, and machine-posted campaign_spend line items (one per campaign per hour of delivery, carrying campaign_uuid + period_start). amount/fee are decimal dollars.

Paginated: the response is {"data": {"items": [...], "total": n, "page": p, "page_size": s, "total_pages": t}} where total is the row count after filters, before paging, and total_pages is total in pages of page_size. A page_size above 10000 is a 400.

Each row says its state: settled (applied to the balance), pending (not yet), or voided (cancelled, never applied); status is true for a settled row. delta_micros is the row's exact effect on the balance once settled; a reversal names the row it cancels (reverses_uuid), and that row names it (reversed_by_uuid).

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

typequerystring

CSV of added_manually,charged_by_client,refund,campaign_spend

completedquerystring

1/true = settled only, 0/false = pending only; absent = every row, voided ones too. An unparseable value is a 400 on completed.

  • One of: 1, 0, true, false
pagequeryinteger
  • Default: 1
  • Minimum: 1
page_sizequeryinteger
  • Default: 100
  • Minimum: 1
  • Maximum: 10000

Responses

200

One page of the ledger.

application/json · object

PropertyTypeDescription
data requiredTransactionPage

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/billing/payments

Post a payment

Needs dpop

Record a payment you (the tenant) received from this advertiser as received and applied: the ledger gets a settled added_manually row and the advertiser's balance is credited immediately — delivery can resume funding on the next refresh cycle. Only amount, fee and payment_method are accepted; the transaction type and settled state are set by the server. Amounts are decimal dollars: a JSON number (207.77) or the same decimal as a string ("207.77"), at most 6 decimals, more than 0 and at most 1,000,000,000 (a 400 on the field otherwise); they are kept exactly, never through floating point. fee is the part of amount kept as a service fee and not credited (a card payment of 207.77 with a fee of 7.77 credits 200); it defaults to 0 and must stay below amount.

The Idempotency-Key (8 to 128 characters here) makes a retry safe: the same key with the same request answers the row the first call wrote, and the same key with another request is a 422.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · object

PropertyTypeDescription
amount requirednumber or string

Decimal dollars: what the advertiser paid. More than 0, at most 6 decimals.

feenumber or string

Decimal dollars of amount kept as a service fee; credited = amount − fee. Default 0.

payment_methodstring

Free text — e.g. wire, usdt-trc20, invoice #

  • Max length: 120

Responses

201

The settled transaction (status=true, applied to balance).

application/json · object

PropertyTypeDescription
data requiredTransaction

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/billing/charges

Post a charge or a refund

Needs dpop

Move money out of the advertiser's balance. The ledger gets a settled row and the balance is debited immediately — the same received-and-applied semantics as a payment, in the other direction.

amount is always positive. The direction comes from type:

type effect on the balance
charged_by_client −(amount + fee) — you charged the advertiser
refund −amount — money given back; a fee is never refunded

A negative amount is refused (400 on amount), because a refund of -50 would mean the opposite of what it says, and so is a refund with a fee (400 on fee). To ADD funds use POST /billing/payments.

A debit the balance does not cover is refused (409, overdraft), as the tenant console refuses it: a charge never takes the balance below zero. Amounts and the Idempotency-Key are as on a payment.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Idempotency-Key requiredheaderstring

A new key for each request, and the same one when it is retried.

  • Pattern: ^[A-Za-z0-9._:-]{1,128}$

Request body required

application/json · object

PropertyTypeDescription
type requiredstring
  • One of: charged_by_client, refund
amount requirednumber or string

Decimal dollars, always positive, at most 6 decimals.

feenumber or string

Decimal dollars. Added to a charged_by_client debit; a refund carries none.

payment_methodstring

Free text — e.g. wire, usdt-trc20, invoice #

  • Max length: 120

Responses

201

The settled transaction (status=true, applied to balance).

application/json · object

PropertyTypeDescription
data requiredTransaction

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

409

The write collides with existing state: the advertiser is archived (archived), a campaign of the advertiser has the name (already_exists), a charge the balance does not cover (overdraft), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: archived
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "archived",
  "detail": "This advertiser is archived: it is read-only."
}
Example: keyInUse
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "idempotency_key_in_use"
}

422

This Idempotency-Key was used for a different request.

application/problem+json · Problem

Example: reused
{
  "type": "about:blank",
  "title": "Unprocessable Entity",
  "status": 422,
  "code": "idempotency_key_reused"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

Reports

Delivery analytics over one advertiser's campaigns. Always scoped to the addressed advertiser's campaigns, enforced server-side. A campaign's deliveries live in exactly one of two stores, and each store has its own report: RTB-served campaigns (display / video / native / audio / search on the bidder) answer on POST …/reports and GET …/campaigns/{uuid}/stats; XML-tier campaigns (pop_redirect, direct_click, push — served by the XML nodes) answer on POST …/reports/xml. A campaign is never in both, so a pop campaign is empty on /reports and an RTB campaign is empty on /reports/xml.

GET /advertiser/v1/advertisers/{advertiser_uuid}/campaigns/{uuid}/stats

Per-campaign stats

Needs dpop

Fixed-shape delivery series for one RTB-served campaign — by day, or by hour of day (UTC). An XML-tier campaign (pop_redirect, direct_click, push) returns zero rows here; use POST …/reports/xml grouped by date or hourOfDay with a campaign filter instead. The response carries the campaign's identity (campaign.uuid / campaign.name) alongside the report body so concurrent requests never need URL correlation. Buckets are paginated: page_size defaults to 500 and must be 1 to 10000 (a 400 otherwise); the response carries page, pageSize and totalPages. 404 if the campaign is not under this advertiser, before any report runs. Heavy rate-limit class (30/min).

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

uuid requiredpathstring (uuid)
from requiredquerystring (date)
to requiredquerystring (date)
groupquerystring

Bucket by calendar date, or by hour of day (UTC).

  • One of: date, hour
  • Default: date
pagequeryinteger
  • Default: 1
  • Minimum: 1
page_sizequeryinteger
  • Default: 500
  • Minimum: 1
  • Maximum: 10000

Responses

200

The series.

application/json · object

PropertyTypeDescription
data requiredCampaignStatsResponse

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/reports

Run a report

Needs dpop

The report builder over RTB-served campaigns: pick a date range, group by up to a few dimensions, filter, sort, paginate. Always scoped to the addressed advertiser's campaigns — the scope is enforced server-side and cannot be widened by any filter.

XML-tier campaigns are not here. A pop_redirect, direct_click or push campaign delivers on the XML nodes and writes the XML store only, so it returns zero rows on this route whatever the filter. Use POST …/reports/xml for those.

Dimensions (groupBy, pivotDims, filters[].dimension): date, hourOfDay, campaign, adSet, creativeId, adFormat, trafficType, country, region, city, deviceType, os, browserName, language, creativeSize. Any other dimension returns 400.

Entity dimensions and labels: for entity dimensions (campaign, adSet, creativeId) dims carries the stable UUID and dimLabels carries the display name — render dimLabels[k] ?? dims[k]. Filters take the dims value (the UUID) for entity dims and the display value for all other dims.

Metrics (every row): auctions, bids, impressions, clicks, conversions, spend, revenue — money in decimal dollars — plus ipMatchPct (0..1 traffic-legitimacy signal; absent when the bucket produced no device-fired events), and the engine's verification measures (verifiedRevenue, verifiedCost, verifiedClicks, when measured, and their counters). The row is the report engine's whole row, as this route has always answered it: spend is what your supply was paid and revenue what was booked on the advertiser's wins. sortBy also accepts derived metrics profit, ctr, winRate, fillRate, ecpm, cvr.

Server-forced fields: scope and includeMarketplace are overwritten server-side (the report is always scoped to the addressed advertiser's campaigns); filters[].lists is an operator feature and is ignored. Sending them is harmless.

Paging: pageSize is 1 to 10000 rows (default 50) and page starts at 1. The response carries page, pageSize, total (buckets across all pages) and totalPages. A pageSize above 10000 returns 400 on pageSize.

Reports read, so they need no Idempotency-Key. Heavy rate-limit class (30/min).

Data grain: minute-fresh for the last 7 days, hourly to 30 days, daily to 13 months (the tier field echoes which store answered). Dimensions the chosen tier cannot serve are dropped and echoed in unsupportedDims.

Three recipes

1. Flat daily series — one row per day:

{"dateFrom": "2026-07-01", "dateTo": "2026-07-31", "groupBy": ["date"]}

2. Filtered country split — one campaign, by country:

{"dateFrom": "2026-07-01", "dateTo": "2026-07-31",
 "groupBy": ["country"],
 "filters": [{"dimension": "campaign", "op": "is",
              "values": ["9d2c4b6a-8e0f-4a1b-b3c5-d7e9f1a3b5c7"]}]}

3. Tree drill-down — the adsets under one campaign:

{"dateFrom": "2026-07-01", "dateTo": "2026-07-31",
 "groupBy": ["campaign", "adSet"], "depth": 2,
 "parentPath": [{"dimension": "campaign",
                 "value": "9d2c4b6a-8e0f-4a1b-b3c5-d7e9f1a3b5c7"}]}

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Request body required

application/json · ReportRequest

Example: Flat daily series
{
  "dateFrom": "2026-07-01",
  "dateTo": "2026-07-31",
  "groupBy": [
    "date"
  ]
}
Example: One campaign split by country
{
  "dateFrom": "2026-07-01",
  "dateTo": "2026-07-31",
  "groupBy": [
    "country"
  ],
  "filters": [
    {
      "dimension": "campaign",
      "op": "is",
      "values": [
        "9d2c4b6a-8e0f-4a1b-b3c5-d7e9f1a3b5c7"
      ]
    }
  ],
  "sortBy": "spend"
}
Example: Adsets under one campaign (tree mode)
{
  "dateFrom": "2026-07-01",
  "dateTo": "2026-07-31",
  "groupBy": [
    "campaign",
    "adSet"
  ],
  "depth": 2,
  "parentPath": [
    {
      "dimension": "campaign",
      "value": "9d2c4b6a-8e0f-4a1b-b3c5-d7e9f1a3b5c7"
    }
  ]
}

Responses

200

The report.

application/json · object

PropertyTypeDescription
data requiredReportResponse

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

POST /advertiser/v1/advertisers/{advertiser_uuid}/reports/xml

Run an XML-tier report

Needs dpop

The report builder over XML-tier campaigns — pop_redirect, direct_click and push campaigns, which deliver on the XML nodes and write the XML store. Same request shape as POST …/reports (date range, groupBy, pivotDims, filters, tree mode, sort, pagination), same server-side scope: always and only the addressed advertiser's campaigns. An RTB-served campaign returns zero rows here.

Dimensions (groupBy, pivotDims, filters[].dimension, parentPath[].dimension): date, hourOfDay, campaign, adSet, creative, distributionTag, priceModel, country, region, city, connectionType, deviceType, os, osMajor, browser, browserMajor, language. Any other dimension returns 400. Note the XML spellings: creative (not creativeId) and browser (not browserName).

Entity dimensions and labels: for campaign, adSet and creative, dims carries the stable UUID and dimLabels the display name — render dimLabels[k] ?? dims[k]. Filters take the dims value (the UUID) for entity dims and the display value for all other dims.

Metrics (every row): the funnel counters requests, bids, impressions, clicks (held clicks included), heldClicks, botClicks, lateImps, lateClicks; conversions (null when the grouping cannot be measured); and money in decimal dollars — spend (your charge for the bucket's deliveries, held clicks' would-have-been charge included), heldSpend (that held part on its own — nothing was owed on it, so spend − heldSpend is the billed figure), verifiedSpend (the part of spend whose click confirmed the claimed device IP; null where not measured); verifiedClicks and ipMatchPct on the same terms. The billing ledger (GET …/billing/transactions?type=campaign_spend) remains the record of money that moved.

Delivery on pop / direct_click is the click, not the impression: those tags have no billing impression pixel, so impressions reads low or zero there and clicks is the delivery count. On push the billable delivery is the impression.

sortBy accepts a metric — requests, bids, impressions, clicks, heldClicks, botClicks, lateImps, lateClicks, spend, heldSpend, verifiedSpend, verifiedClicks, ipMatchPct, fillRate, winRate (clicks / bids, the delivery rate), ctr, botClickPct, epc, ecpm — or the name of a grouped dimension. Anything else returns 400. Default: spend, descending.

Server-forced fields: scope, advertiserUUIDs and excludeMarketplace are overwritten server-side; filters[].lists is an operator feature and is ignored. Sending them is harmless.

Data grain: minute-fresh for the last 7 days, hourly to 30 days, daily beyond (the tier field echoes which store answered). Dimensions the chosen tier cannot serve are dropped and echoed in unsupportedDims.

Two recipes

1. One pop campaign, daily — the series /campaigns/{uuid}/stats gives RTB campaigns:

{"dateFrom": "2026-08-06", "dateTo": "2026-09-15", "groupBy": ["date"],
 "filters": [{"dimension": "campaign", "op": "is",
              "values": ["108ba73a-cdbd-49d8-88af-3bfbd04c5ab6"]}]}

2. Every XML campaign, by campaign then country (tree mode):

{"dateFrom": "2026-09-01", "dateTo": "2026-09-15",
 "groupBy": ["campaign", "country"], "depth": 2,
 "parentPath": [{"dimension": "campaign",
                 "value": "108ba73a-cdbd-49d8-88af-3bfbd04c5ab6"}]}

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

Request body required

application/json · XMLReportRequest

Example: One pop campaign, daily
{
  "dateFrom": "2026-08-06",
  "dateTo": "2026-09-15",
  "groupBy": [
    "date"
  ],
  "filters": [
    {
      "dimension": "campaign",
      "op": "is",
      "values": [
        "108ba73a-cdbd-49d8-88af-3bfbd04c5ab6"
      ]
    }
  ]
}
Example: Every XML campaign, one row each
{
  "dateFrom": "2026-09-01",
  "dateTo": "2026-09-15",
  "groupBy": [
    "campaign"
  ],
  "sortBy": "spend"
}

Responses

200

The report.

application/json · object

PropertyTypeDescription
data requiredXMLReportResponse

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/advertisers/{advertiser_uuid}/traffic-chart

Traffic chart

Needs dpop

The tenant's pop or push supply by country: how many clicks a day each country delivered over the last 7 full UTC days, and the price one click fetched. The numbers are the whole feed of the tenant, the same for every advertiser; the advertiser in the path must be one of the tenant's own.

clicks_per_day is the delivered clicks of the format (a pop view is a click) averaged over the days of the window that carried traffic. optimal_cpc is the booked revenue for each delivered click over the window, or, for a country with bids and no click, the bidder's own estimate for each answered request. max_cpc is the highest single day of the same measure, over days with at least 10 clicks (or 100 bids). Both are null without sample.

platforms and os_families list the filter values present in the format's traffic, as the facts spell them; they are not the targeting vocabularies. A device or os that matches nothing answers an empty rows.

Read from a cube refreshed once an hour; cache for an hour.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

format requiredquerystring

pop covers the pop, direct link and direct click tags; push covers push and floating push.

  • One of: pop, push
devicequerystring

One platform of platforms (phone, desktop, tablet, …). Omit for every platform.

  • Max length: 32
osquerystring

One OS family of os_families, as listed (Android, Windows, iOS, …). Omit for every OS.

  • Max length: 64

Responses

200

The chart, countries sorted by volume.

application/json · object

PropertyTypeDescription
data requiredTrafficChart

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

GET /advertiser/v1/advertisers/{advertiser_uuid}/targeting-values

Targeting values

Needs dpop

The values a picker of one targeting list can offer: the ISPs, regions, cities or publisher sub ids the tenant's feed carried over the last 30 full UTC days for one format and a set of countries. Without q the rows are by request volume, the busiest first; with q they are every value whose name holds the text in any case, A to Z by name. value is the key the campaign list takes as is — CC-RR for region_targeting, CC:City for city_targeting, the ISP name for isp_targeting, the raw sub id for subid_targeting — and label is its display form (<region name> (<CC>) for a region, <city> (<region name>, <CC>) for a city, the value itself otherwise). Up to limit rows, 500 by default.

The numbers are the whole feed of the tenant, the same for every advertiser; the advertiser in the path must be one of the tenant's own. Read from a scan refreshed once an hour for each (kind, format, countries); cache for an hour.

Parameters

NameInTypeDescription
advertiser_uuid requiredpathstring (uuid)

The advertiser under your tenant. An unknown uuid and another tenant's uuid are indistinguishable: every route under them returns 404.

kind requiredquerystring

The campaign list the values are for: isp_targeting, region_targeting, city_targeting or subid_targeting (and their _exclude twins).

  • One of: isp, region, city, subid
formatquerystring

pop covers the pop, direct link and direct click tags; push covers push and floating push. Default pop.

  • One of: pop, push
  • Default: pop
country requiredqueryarray of string

ISO 3166-1 alpha-2 codes, 1 to 20, repeated (country=US&country=DE) or comma-separated (country=US,DE). Any case.

  • Min items: 1
  • Max items: 20
qquerystring

Search text: keeps the values whose name holds it, in any case, and sorts them A to Z by name. Trimmed. Empty = no search.

  • Max length: 64
limitqueryinteger

The most rows to return, 1 to 1000. Default 500. Heavy rate-limit class (30/min).

  • Default: 500
  • Minimum: 1
  • Maximum: 1000

Responses

200

The values, by volume, or A to Z by name for a search.

application/json · object

PropertyTypeDescription
data requiredTargetingValues

400

Invalid input: a field the operation refuses (invalid_argument, errors naming it), a malformed query, body or form (invalid_request), or a write without an Idempotency-Key (idempotency_key_required).

application/problem+json · Problem

Example: badStatus
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "status",
      "reason": "status is required (true or false)"
    }
  ]
}
Example: badAmount
{
  "type": "about:blank",
  "title": "Bad Request",
  "status": 400,
  "code": "invalid_argument",
  "detail": "The input is invalid.",
  "request_id": "8f2b1c9e-6b0a-4c55-9a0e-3f1d2c4b5a69",
  "errors": [
    {
      "field": "amount",
      "reason": "must be more than 0 and at most 1000000000, with at most 6 decimals"
    }
  ]
}

401

A missing, malformed, expired or revoked token, or a proof that does not hold.

application/problem+json · Problem

Example: invalidToken
{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "invalid_token"
}

403

The key lacks the scope, or your account does not have the Advertiser API (or the module of the advertisers, their campaigns, ad sets, creatives or goals).

application/problem+json · Problem

Example: forbidden
{
  "type": "about:blank",
  "title": "Forbidden",
  "status": 403,
  "code": "permission_denied"
}

404

The resource doesn't exist under the addressed advertiser, or the advertiser is not under your tenant.

application/problem+json · Problem

Example: notFound
{
  "type": "about:blank",
  "title": "Not Found",
  "status": 404,
  "code": "not_found"
}

429

Over the per-key rate of the endpoint's class (300/min reads, 60/min writes, 30/min uploads, reports, stats and targeting values). Back off until Retry-After.

application/problem+json · Problem

Example: limited
{
  "type": "about:blank",
  "title": "Too Many Requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "Too many requests."
}

500

Unexpected server error. Retry with backoff; report persistent occurrences with the request_id.

application/problem+json · Problem

Example: internal
{
  "type": "about:blank",
  "title": "Internal Server Error",
  "status": 500,
  "code": "internal"
}

503

A backing service is momentarily unavailable: the balance (balance_unavailable), the reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff; never interpret it as an empty result.

application/problem+json · Problem

Example: unavailable
{
  "type": "about:blank",
  "title": "Service Unavailable",
  "status": 503,
  "code": "unavailable"
}

Documentation

This reference, its stylesheet and its machine-readable OpenAPI source. Public — no key required.

GET /advertiser/v1/docs

API reference (this page)

Public: no credential

This specification as a page: drawn on the server, it runs no script and loads only its stylesheet. Public — no authentication.

Responses

200

The reference page.

text/html · string

GET /advertiser/v1/docs.css

The reference page's stylesheet

Public: no credential

Responses

200

The stylesheet.

text/css · string

GET /advertiser/v1/openapi.yaml

OpenAPI specification

Public: no credential

The machine-readable OpenAPI 3.1 source of this reference. Public.

Responses

200

The specification.

application/yaml · string

Schemas

Problem

object

A refusal (RFC 9457).

PropertyTypeDescription
type requiredstring

about:blank.

title requiredstring

The status's name.

status requiredinteger
code requiredstring

Stable machine-readable reason (invalid_argument, not_found, ...). Branch on it.

detailstring

Human-readable words. Do not branch on them.

request_idstring

The request's id

errorsarray of object

The fields at fault of an invalid input.

Advertiser

object

PropertyTypeDescription
uuid requiredstring (uuid)

The value every advertiser-addressed route takes as advertiser_uuid.

version requiredinteger

Internal bookkeeping field — safe to ignore.

status requiredinteger

Account status code: 1 = active (switched on), 2 = pending verification, 0 = inactive (switched off, or archived).

  • One of: 0, 1, 2
state requiredinteger

The account's standing: 1 healthy, 2 held out of funds (its campaigns are held until a top-up and a resume), 3 pending verification. Its campaigns serve only while it is switched on, healthy and not archived.

  • One of: 1, 2, 3
balance requirednumber

Decimal US dollars, exact — the ledger's running total. For the enforcement-path prepaid position (micros, including live spend) use the billing balance endpoint.

account_manager_uuid requiredstring

The teammate responsible for the account; empty when unassigned.

email requiredstring (email)
telegram_id requiredstring

Contact handle; empty when unset.

whatsapp_id requiredstring

Contact handle; empty when unset.

display_name requiredstring

The account's name on the consoles.

company_name requiredstring
archived_atstring (date-time)

When the account was archived; absent while it is not. An archived account is read-only.

created_at requiredstring (date-time)
updated_at requiredstring (date-time)

AdvertiserEnvelope

object

PropertyTypeDescription
data requiredAdvertiser

DictionaryEntry

object

PropertyTypeDescription
id requiredinteger

The integer wire value used in country_targeting / language_targeting.

code requiredstring

ISO alpha-2 code (US, en).

name requiredstring

English display name.

VocabularyTerm

object

One entry of a targeting vocabulary. Send token in the campaign field; label is the English display name and is never sent back.

PropertyTypeDescription
token requiredstring

The value to send — e.g. chrome, windows, mobile.

label requiredstring

English display name.

Tenant

object

PropertyTypeDescription
uuid requiredstring (uuid)
name requiredstring

The tenant's name on the platform.

TrafficChart

object

PropertyTypeDescription
format requiredstring
  • One of: pop, push
date_from requiredstring (date)

First day of the window (UTC).

date_to requiredstring (date)

Last day of the window: yesterday (UTC).

days requiredinteger

Days of the window that carried traffic; the volume of every row is averaged over them. 0 means no traffic.

platforms requiredarray of string

Platforms (device buckets) present in the format's traffic, as the facts spell them, sorted.

os_families requiredarray of string

OS families present in the format's traffic, as the facts spell them, sorted.

rows requiredarray of TrafficChartRow

TrafficChartRow

object

PropertyTypeDescription
country requiredstring

ISO 3166-1 alpha-2 code.

clicks_per_day requirednumber

Delivered clicks a day, averaged over the days with traffic.

optimal_cpc requirednumber

Decimal US dollars one click fetched on average over the window.

max_cpc requirednumber

Decimal US dollars of the highest single day with enough sample.

TargetingValues

object

PropertyTypeDescription
kind requiredstring
  • One of: isp, region, city, subid
rows requiredarray of TargetingValueRow

TargetingValueRow

object

PropertyTypeDescription
value requiredstring

The targeting key as the campaign list takes it: CC-RR (region), CC:City (city), the ISP name (isp), the raw sub id (subid).

label requiredstring

Display form: <region name> (<CC>) for a region, <city> (<region name>, <CC>) for a city, the value itself for an ISP or a sub id. A region without an ISO 3166-2 name shows its code.

name requiredstring

The text q searches: the city, the region name (its code when it has no name), the ISP name, the sub id.

countrystring

Alpha-2 code of a region or a city. Omitted for an ISP or a sub id.

regionstring

The region code of a region, or of the region a city was seen in most. Omitted for an ISP or a sub id, and for a city with no region.

region_namestring

The English ISO 3166-2 name of region, when it has one.

requests requiredinteger

Feed requests behind the value over the window.

CountryBid

object

PropertyTypeDescription
country requiredinteger

ISO 3166-1 numeric country id — see GET /dictionaries/countries.

bid requirednumber

Decimal US dollars per click for a request from this country. It is the advertiser's charge rate for that country, as cpc is for the others.

CountryGroup

object

A named set of countries. Send its country_ids in country_targeting; code and name are never sent back.

PropertyTypeDescription
code requiredstring

Stable key of the group.

  • One of: europe, asia, africa, north-america, south-america, oceania, gcc
name requiredstring

English display name.

country_ids requiredarray of integer

ISO 3166-1 numeric ids, ascending — the values country_targeting takes.

Dayparting

object

Hour-of-week allow mask. mask is exactly 7 unsigned 24-bit integers, one per weekday — index 0 = Sunday through 6 = Saturday. In each entry, bit h (value 2^h, h = 0–23) set means traffic is allowed during hour h UTC on that day. 16777215 (2^24−1) allows the whole day; 0 blocks the whole day; 4088 (bits 3–11) allows 03:00–11:59.

PropertyTypeDescription
mask requiredarray of integer
  • Min items: 7
  • Max items: 7

CreativeBlacklistEntry

object

One blacklist rule: the (adset, creative) pair banned from serving on this campaign. The adset must also appear in the campaign's adset_uuids.

PropertyTypeDescription
adset_uuid requiredstring (uuid)
creative_uuid requiredstring (uuid)

RTBInventoryFilters

object

OpenRTB-flavored inventory gates applied to RTB-infrastructure campaigns. All flags default to false.

PropertyTypeDescription
adult_traffic_modestring

3-state brand-safety policy, and the field the gate reads. block refuses inventory our IAB pass flagged sensitive; only serves sensitive inventory ONLY; allow serves both. It SUPERSEDES allow_adult_traffic: when you send a non-empty mode the server forces that boolean to match (mode != block). Empty is legal and falls back to allow_adult_traffic (true → allow, false → block), for callers that have not migrated. Any other value is a 400.

  • One of: , allow, block, only
allow_adult_trafficboolean

Serve on inventory flagged as adult. Off = adult inventory is skipped.

required_privacy_policyboolean

Only serve on requests declaring a privacy policy.

block_coppa_trafficboolean

Skip requests flagged as child-directed (COPPA).

block_do_not_trackboolean

Skip requests carrying the Do Not Track signal.

block_limit_ad_trackingboolean

Skip device traffic with Limit Ad Tracking enabled.

block_mraid_inventoryboolean

Skip in-app placements that require MRAID rendering.

block_not_secure_inventoryboolean

Only serve on HTTPS-capable placements.

required_top_frameboolean

Only serve in the page's top frame (never inside a nested iframe).

required_javascriptboolean

Only serve on placements that can execute JavaScript.

block_unknown_connection_typeboolean

Skip requests whose network connection type is unknown.

required_schainboolean

Only serve on requests carrying an OpenRTB supply chain with at least one node, dropping anonymous-reseller / unauthorized supply.

Campaign

object

The full campaign object, echoed exactly as accepted by create/update plus server-managed state.

PropertyTypeDescription
idinteger

Internal bookkeeping field — safe to ignore. Not accepted on writes.

uuidstring (uuid)
tenant_uuidstring (uuid)

Internal bookkeeping field — safe to ignore. Not accepted on writes.

advertiser_uuidstring (uuid)
versionstring

Internal bookkeeping field — safe to ignore. Not accepted on writes.

xxhash3string

Internal bookkeeping field — safe to ignore. Not accepted on writes.

statusboolean

Operational on/off.

is_started_by_userboolean

Whether the advertiser has ever activated the campaign.

is_hold_by_systemboolean

Read-only. true = held for insufficient funds; cleared when the account is resumed after a top-up. A write that sends it is refused (400).

namestring
objectivestring

Free-form campaign objective label.

typestring

Decides the pricing model: native/video_banner bid CPM, the rest bid CPC.

  • One of: native, pop_redirect, push, video_banner, search, keyword
brand_namestring
advertiser_domainstring

The advertised brand's domain

categorystring

IAB-style category label.

infrastructurestring

Which connection family carries the bid request.

  • One of: rtb, xml
cpmnumber

Decimal US dollars per 1000 impressions. Pricing for native/video_banner.

cpcnumber

Decimal US dollars per click. Pricing for pop_redirect/push/search/keyword.

max_bidnumber

Decimal US dollars — hard ceiling on a single bid.

prior_strengthnumber

Optimizer prior weight. Leave default unless instructed.

min_obsinteger

Optimizer minimum observations before acting.

cutoff_taginteger

Optimizer per-tag cutoff.

cutoff_domaininteger

Optimizer per-domain cutoff.

tracking_urlstring (uri)

The advertiser's click/landing tracking URL; receives auction macros.

optimizationboolean

Master switch for goal-driven optimization.

optimization_goal_uuidstring

The goal optimization steers toward.

budget_lifetime_statusboolean

Enables the lifetime budget cap.

budget_lifetimeinteger

Whole US dollars (integer — fractions are not representable).

daily_budget_statusboolean

Enables the daily budget cap.

daily_budgetinteger

Whole US dollars (integer — fractions are not representable).

pacingstring

How the daily budget is spent across the day.

  • One of: asap, evenly
ip_freq_cap_statusboolean
ip_freq_cap_countinteger

Max impressions per IP per window.

ip_freq_cap_window_secinteger

Frequency-cap window in seconds.

country_targetingarray of integer

ISO 3166-1 numeric country ids — see GET /dictionaries/countries. Empty/omitted = all countries.

language_targetingarray of integer

Numeric language ids — see GET /dictionaries/languages. Empty/omitted = all languages.

devicesarray of string

Device buckets from GET /dictionaries/devices. No version qualifier. An unknown value is a 400. Empty/omitted = all devices.

browsersarray of string

Browser family tokens from GET /dictionaries/browsers, optionally with a numeric version qualifier (chrome:148, safari:18.1). A bare token = every version. Stored as given: a name that is none of the dictionary's tokens matches no request. Empty/omitted = all browsers.

operating_systemsarray of string

OS family tokens from GET /dictionaries/operating-systems, optionally with a numeric version qualifier (windows:8.1, android:15). A bare token = every version. macOS reports no real version. Stored as given: a name that is none of the dictionary's tokens matches no request. Empty/omitted = all operating systems.

browsers_excludearray of string

Browsers the campaign does NOT serve. Same tokens as browsers — see GET /dictionaries/browsers — with the same version qualifier (chrome:120). A request serves when it passes browsers AND is not named here. Empty/omitted = nothing excluded.

operating_systems_excludearray of string

Operating systems the campaign does NOT serve. Same tokens as operating_systems — see GET /dictionaries/operating-systems — with the same version qualifier: operating_systems: [android] with operating_systems_exclude: [android:7] is Android without Android 7. Empty/omitted = nothing excluded.

language_targeting_excludearray of integer

Numeric language ids — see GET /dictionaries/languages — the campaign does NOT serve. Judged on the visitor's PRIMARY language (the first one the browser declares); language_targeting passes on any declared language. Empty/omitted = nothing excluded.

connection_typesarray of string

Connection types the campaign serves on: cellular (mobile data) and/or fixed (cable, DSL, corporate, dial-up, satellite). With a list set, a request whose connection type is unknown matches nothing. Only the 2 words, each once; anything else is a 400 on the field. Empty/omitted = every connection type.

  • Max items: 2
isp_targetingarray of string

ISPs the campaign serves on, each the ISP name exactly as GET /advertisers/{advertiser_uuid}/targeting-values?kind=isp lists it (MaxMind's spelling, trimmed). Up to 500 names of 128 characters, no duplicates; a name in isp_targeting_exclude too is a 400 on the field. Empty/omitted = every ISP.

  • Max items: 500
isp_targeting_excludearray of string

ISPs the campaign does NOT serve on. Same values and limits as isp_targeting. Empty/omitted = nothing excluded.

  • Max items: 500
region_targetingarray of string

Regions the campaign serves on, each CC-RR: the ISO 3166-1 alpha-2 country code, -, the ISO 3166-2 subdivision code, upper case (US-CA, GB-ENG) — the value of GET /advertisers/{advertiser_uuid}/targeting-values?kind=region. Up to 1000 keys of 16 characters, no duplicates; a key in region_targeting_exclude too is a 400 on the field. Empty/omitted = every region.

  • Max items: 1000
region_targeting_excludearray of string

Regions the campaign does NOT serve on. Same keys and limits as region_targeting. Empty/omitted = nothing excluded.

  • Max items: 1000
city_targetingarray of string

Cities the campaign serves on, each CC:City: the alpha-2 country code, :, the city name as MaxMind spells it in English, exact case (US:Los Angeles) — the value of GET /advertisers/{advertiser_uuid}/targeting-values?kind=city. Up to 2000 keys of 96 characters, no duplicates; a key in city_targeting_exclude too is a 400 on the field. Empty/omitted = every city.

  • Max items: 2000
city_targeting_excludearray of string

Cities the campaign does NOT serve on. Same keys and limits as city_targeting. Empty/omitted = nothing excluded.

  • Max items: 2000
subid_targetingarray of string

Publisher sub ids (the supply's subid) the campaign serves on, raw and exact, as GET /advertisers/{advertiser_uuid}/targeting-values?kind=subid lists them. Up to 5000 ids of 128 characters, no duplicates; an id in subid_targeting_exclude too is a 400 on the field. Empty/omitted = every sub id.

  • Max items: 5000
subid_targeting_excludearray of string

Sub ids the campaign does NOT serve on. Same values and limits as subid_targeting. Empty/omitted = nothing excluded.

  • Max items: 5000
verticalstring

pCVR-predictor vertical. The match is BYTE-EXACT against the trained level spellings, so case, spacing and hyphens all matter and a near miss is a 400. Swwpstakes is the trained spelling — do not correct it. Empty = unset, and the predictor default applies.

  • One of: , Casino, Sport - Bets, Adult, E-commerce, Gaming, Apps Utilities, Dating, Mobile Content, Finance, AV, Content Arbitrage, Swwpstakes, Smartlink, Crypto, VPN, Push Subscription, Real Estate, Nutra - Health, Nutra - Penis
supply_markup_pctinteger

Platform take on this advertiser media, whole percent. We charge the CPM/CPC in full and quote the supply rate × (1 − pct/100).

  • Minimum: 0
  • Maximum: 100
country_bidsarray of CountryBid

A bid for one country. A request from a country in this list is priced at its bid in place of cpc; every other country uses cpc. pop_redirect and push campaigns only — a non-empty list on another type is a 400. Each country must be in country_targeting when that list is not empty, each bid must be more than 0, and a country can have one bid. Empty/omitted = one price for all countries.

optimize_pricenumber

US dollars set on the optimization goal. STORED ONLY — nothing in the serving path reads it. 0 = unset.

optimization2boolean

Second optimization goal. Same store-only contract as the first.

optimization_goal2_uuidstring

The second goal. Must differ from optimization_goal_uuid (400).

optimize_price2number

US dollars on the second goal. STORED ONLY. 0 = unset.

exploration_pctinteger

Budget control — percent points of the daily budget the predictor pacer spends on traffic cells in the exploration state. 0 = the predictor server default.

discovery_share_pctinteger

Budget control — percent points for cells in the discovery state. 0 = the predictor server default.

publisher_cap_pctinteger

Budget control — percent-point cap on the daily budget any single publisher may take. 0 = the predictor server default.

xml_redirect_supplystring

Which XML redirect tag a pop_redirect campaign serves onto. Empty = both (the default). Any other value is a 400.

  • One of: , both, pop, direct_link
bidding_pricestring

How the CPC is used on XML redirect supply. fixed (default) bids the CPC and lets the predictor answer buy/skip; variable treats the CPC as a ceiling and bids min(CPC, predictor max_bid). Any other value is a 400.

  • One of: , fixed, variable
defaults_profileobject

The tenant campaign-defaults block. Omit it on create and the tenant defaults are copied in, including adult_mode into rtb_inventory_filters.adult_traffic_mode. Echoed back as stored.

traffic_typestring

Environment of the inventory.

  • One of: web, inapp, both
is_active_start_dateboolean

Enables the flight start date.

start_datestring (date-time)

Omitted when unset.

is_active_end_dateboolean

Enables the flight end date.

end_datestring (date-time)

Omitted when unset.

is_active_daypartingboolean

Enables the dayparting mask.

daypartingDayparting
ip_block_listsarray of string

Tenant list UUIDs whose IPs are blocked.

ip_white_listsarray of string

Tenant list UUIDs whose IPs are allowed (empty = no restriction).

domain_block_listsarray of string

Tenant list UUIDs of blocked domains.

domain_white_listsarray of string

Tenant list UUIDs of allowed domains.

bundle_block_listsarray of string

Tenant list UUIDs of blocked app bundles.

bundle_white_listsarray of string

Tenant list UUIDs of allowed app bundles.

adset_uuidsarray of string (uuid)

The adsets this campaign serves creatives from.

blacklisted_creativesarray of CreativeBlacklistEntry
sourceid_block_listsarray of string

Tenant list UUIDs of blocked supply source ids.

sourceid_white_listsarray of string

Tenant list UUIDs of allowed supply source ids.

advertisingid_block_listsarray of string

Tenant list UUIDs of blocked device advertising ids.

advertisingid_white_listsarray of string

Tenant list UUIDs of allowed device advertising ids.

ssp_connection_white_listsarray of string

Restrict delivery to these supply connections (UUIDs). Empty = all.

ssp_connection_block_listsarray of string

Never deliver on these supply connections (UUIDs).

rtb_transparency_layersarray of string

Accepted supply transparency layers. Empty/omitted = all.

rtb_seller_typesarray of string

Accepted seller relationships. Empty/omitted = all.

rtb_allowed_traffic_categoriesarray of string

Allowed traffic-category labels. Empty/omitted = all.

rtb_inventory_filtersRTBInventoryFilters
created_atstring (date-time)
updated_atstring (date-time)

CampaignCreate

object

Everything except server-managed state ( is_started_by_user, is_hold_by_system, timestamps, internal bookkeeping). Same field semantics and units as the Campaign object.

PropertyTypeDescription
statusboolean

Set false to create paused atomically. Omitted preserves the active default.

  • Default: true
type requiredstring

Decides the pricing model: native/video_banner bid CPM, the rest bid CPC.

  • One of: native, pop_redirect, push, video_banner, search, keyword
name requiredstring
objectivestring
brand_namestring
advertiser_domainstring
categorystring
infrastructure requiredstring
  • One of: rtb, xml
cpmnumber

Decimal US dollars per 1000 impressions (native/video_banner).

cpcnumber

Decimal US dollars per click (pop_redirect/push/search/keyword).

max_bidnumber

Decimal US dollars.

prior_strengthnumber
min_obsinteger
cutoff_taginteger
cutoff_domaininteger
tracking_urlstring (uri)
optimizationboolean
optimization_goal_uuidstring
budget_lifetime_statusboolean
budget_lifetimeinteger

Whole US dollars (integer).

daily_budget_statusboolean
daily_budgetinteger

Whole US dollars (integer).

pacingstring
  • One of: asap, evenly
ip_freq_cap_statusboolean
ip_freq_cap_countinteger
ip_freq_cap_window_secinteger
country_targetingarray of integer

ISO 3166-1 numeric ids — see GET /dictionaries/countries.

language_targetingarray of integer

Numeric language ids — see GET /dictionaries/languages.

devicesarray of string

Device buckets from GET /dictionaries/devices. No version qualifier. An unknown value is a 400. Empty/omitted = all devices.

browsersarray of string

Browser family tokens from GET /dictionaries/browsers, optionally with a numeric version qualifier (chrome:148, safari:18.1). A bare token = every version. Stored as given: a name that is none of the dictionary's tokens matches no request. Empty/omitted = all browsers.

operating_systemsarray of string

OS family tokens from GET /dictionaries/operating-systems, optionally with a numeric version qualifier (windows:8.1, android:15). A bare token = every version. macOS reports no real version. Stored as given: a name that is none of the dictionary's tokens matches no request. Empty/omitted = all operating systems.

browsers_excludearray of string

Browsers the campaign does NOT serve. Same tokens as browsers — see GET /dictionaries/browsers — with the same version qualifier (chrome:120). A request serves when it passes browsers AND is not named here. Empty/omitted = nothing excluded.

operating_systems_excludearray of string

Operating systems the campaign does NOT serve. Same tokens as operating_systems — see GET /dictionaries/operating-systems — with the same version qualifier: operating_systems: [android] with operating_systems_exclude: [android:7] is Android without Android 7. Empty/omitted = nothing excluded.

language_targeting_excludearray of integer

Numeric language ids — see GET /dictionaries/languages — the campaign does NOT serve. Judged on the visitor's PRIMARY language (the first one the browser declares); language_targeting passes on any declared language. Empty/omitted = nothing excluded.

connection_typesarray of string

Connection types the campaign serves on: cellular (mobile data) and/or fixed (cable, DSL, corporate, dial-up, satellite). With a list set, a request whose connection type is unknown matches nothing. Only the 2 words, each once; anything else is a 400 on the field. Empty/omitted = every connection type.

  • Max items: 2
isp_targetingarray of string

ISPs the campaign serves on, each the ISP name exactly as GET /advertisers/{advertiser_uuid}/targeting-values?kind=isp lists it (MaxMind's spelling, trimmed). Up to 500 names of 128 characters, no duplicates; a name in isp_targeting_exclude too is a 400 on the field. Empty/omitted = every ISP.

  • Max items: 500
isp_targeting_excludearray of string

ISPs the campaign does NOT serve on. Same values and limits as isp_targeting. Empty/omitted = nothing excluded.

  • Max items: 500
region_targetingarray of string

Regions the campaign serves on, each CC-RR: the ISO 3166-1 alpha-2 country code, -, the ISO 3166-2 subdivision code, upper case (US-CA, GB-ENG) — the value of GET /advertisers/{advertiser_uuid}/targeting-values?kind=region. Up to 1000 keys of 16 characters, no duplicates; a key in region_targeting_exclude too is a 400 on the field. Empty/omitted = every region.

  • Max items: 1000
region_targeting_excludearray of string

Regions the campaign does NOT serve on. Same keys and limits as region_targeting. Empty/omitted = nothing excluded.

  • Max items: 1000
city_targetingarray of string

Cities the campaign serves on, each CC:City: the alpha-2 country code, :, the city name as MaxMind spells it in English, exact case (US:Los Angeles) — the value of GET /advertisers/{advertiser_uuid}/targeting-values?kind=city. Up to 2000 keys of 96 characters, no duplicates; a key in city_targeting_exclude too is a 400 on the field. Empty/omitted = every city.

  • Max items: 2000
city_targeting_excludearray of string

Cities the campaign does NOT serve on. Same keys and limits as city_targeting. Empty/omitted = nothing excluded.

  • Max items: 2000
subid_targetingarray of string

Publisher sub ids (the supply's subid) the campaign serves on, raw and exact, as GET /advertisers/{advertiser_uuid}/targeting-values?kind=subid lists them. Up to 5000 ids of 128 characters, no duplicates; an id in subid_targeting_exclude too is a 400 on the field. Empty/omitted = every sub id.

  • Max items: 5000
subid_targeting_excludearray of string

Sub ids the campaign does NOT serve on. Same values and limits as subid_targeting. Empty/omitted = nothing excluded.

  • Max items: 5000
verticalstring

pCVR-predictor vertical. The match is BYTE-EXACT against the trained level spellings, so case, spacing and hyphens all matter and a near miss is a 400. Swwpstakes is the trained spelling — do not correct it. Empty = unset, and the predictor default applies.

  • One of: , Casino, Sport - Bets, Adult, E-commerce, Gaming, Apps Utilities, Dating, Mobile Content, Finance, AV, Content Arbitrage, Swwpstakes, Smartlink, Crypto, VPN, Push Subscription, Real Estate, Nutra - Health, Nutra - Penis
supply_markup_pctinteger

Platform take on this advertiser media, whole percent. We charge the CPM/CPC in full and quote the supply rate × (1 − pct/100).

  • Minimum: 0
  • Maximum: 100
country_bidsarray of CountryBid

A bid for one country. A request from a country in this list is priced at its bid in place of cpc; every other country uses cpc. pop_redirect and push campaigns only — a non-empty list on another type is a 400. Each country must be in country_targeting when that list is not empty, each bid must be more than 0, and a country can have one bid. Empty/omitted = one price for all countries.

optimize_pricenumber

US dollars set on the optimization goal. STORED ONLY — nothing in the serving path reads it. 0 = unset.

optimization2boolean

Second optimization goal. Same store-only contract as the first.

optimization_goal2_uuidstring

The second goal. Must differ from optimization_goal_uuid (400).

optimize_price2number

US dollars on the second goal. STORED ONLY. 0 = unset.

exploration_pctinteger

Budget control — percent points of the daily budget the predictor pacer spends on traffic cells in the exploration state. 0 = the predictor server default.

discovery_share_pctinteger

Budget control — percent points for cells in the discovery state. 0 = the predictor server default.

publisher_cap_pctinteger

Budget control — percent-point cap on the daily budget any single publisher may take. 0 = the predictor server default.

xml_redirect_supplystring

Which XML redirect tag a pop_redirect campaign serves onto. Empty = both (the default). Any other value is a 400.

  • One of: , both, pop, direct_link
bidding_pricestring

How the CPC is used on XML redirect supply. fixed (default) bids the CPC and lets the predictor answer buy/skip; variable treats the CPC as a ceiling and bids min(CPC, predictor max_bid). Any other value is a 400.

  • One of: , fixed, variable
defaults_profileobject

The tenant campaign-defaults block. Omit it on create and the tenant defaults are copied in, including adult_mode into rtb_inventory_filters.adult_traffic_mode. Echoed back as stored.

traffic_typestring
  • One of: web, inapp, both
is_active_start_dateboolean
start_datestring (date-time)
is_active_end_dateboolean
end_datestring (date-time)
is_active_daypartingboolean
daypartingDayparting
ip_block_listsarray of string
ip_white_listsarray of string
domain_block_listsarray of string
domain_white_listsarray of string
bundle_block_listsarray of string
bundle_white_listsarray of string
adset_uuidsarray of string (uuid)
blacklisted_creativesarray of CreativeBlacklistEntry
sourceid_block_listsarray of string
sourceid_white_listsarray of string
advertisingid_block_listsarray of string
advertisingid_white_listsarray of string
ssp_connection_white_listsarray of string
ssp_connection_block_listsarray of string
rtb_transparency_layersarray of string
rtb_seller_typesarray of string
rtb_allowed_traffic_categoriesarray of string
rtb_inventory_filtersRTBInventoryFilters

CampaignUpdate

object

Partial update — only fields present in the body change; null is treated as omitted. Use clear_start_date / clear_end_date to remove a flight date (a date field left out is left alone, so without these a date could never be removed). is_hold_by_system is the platform's: a body that sends it is refused (400).

PropertyTypeDescription
statusboolean
clear_start_dateboolean

Explicit 'unset the start date' signal.

clear_end_dateboolean

Explicit 'unset the end date' signal.

namestring
objectivestring
brand_namestring
advertiser_domainstring
categorystring
infrastructurestring
  • One of: rtb, xml
cpmnumber

Decimal US dollars per 1000 impressions.

cpcnumber

Decimal US dollars per click.

max_bidnumber

Decimal US dollars.

prior_strengthnumber
min_obsinteger
cutoff_taginteger
cutoff_domaininteger
tracking_urlstring (uri)
optimizationboolean
optimization_goal_uuidstring
budget_lifetime_statusboolean
budget_lifetimeinteger

Whole US dollars (integer).

daily_budget_statusboolean
daily_budgetinteger

Whole US dollars (integer).

pacingstring
  • One of: asap, evenly
ip_freq_cap_statusboolean
ip_freq_cap_countinteger
ip_freq_cap_window_secinteger
country_targetingarray of integer

ISO 3166-1 numeric ids — see GET /dictionaries/countries. Send [] to clear.

language_targetingarray of integer

Numeric language ids — see GET /dictionaries/languages. Send [] to clear.

devicesarray of string

Device buckets from GET /dictionaries/devices. No version qualifier. An unknown value is a 400. Empty/omitted = all devices.

browsersarray of string

Browser family tokens from GET /dictionaries/browsers, optionally with a numeric version qualifier (chrome:148, safari:18.1). A bare token = every version. Stored as given: a name that is none of the dictionary's tokens matches no request. Empty/omitted = all browsers.

operating_systemsarray of string

OS family tokens from GET /dictionaries/operating-systems, optionally with a numeric version qualifier (windows:8.1, android:15). A bare token = every version. macOS reports no real version. Stored as given: a name that is none of the dictionary's tokens matches no request. Empty/omitted = all operating systems.

browsers_excludearray of string

Browsers the campaign does NOT serve. Same tokens as browsers — see GET /dictionaries/browsers — with the same version qualifier (chrome:120). A request serves when it passes browsers AND is not named here. Empty/omitted = nothing excluded. Send [] to clear.

operating_systems_excludearray of string

Operating systems the campaign does NOT serve. Same tokens as operating_systems — see GET /dictionaries/operating-systems — with the same version qualifier: operating_systems: [android] with operating_systems_exclude: [android:7] is Android without Android 7. Empty/omitted = nothing excluded. Send [] to clear.

language_targeting_excludearray of integer

Numeric language ids — see GET /dictionaries/languages — the campaign does NOT serve. Judged on the visitor's PRIMARY language (the first one the browser declares); language_targeting passes on any declared language. Empty/omitted = nothing excluded. Send [] to clear.

connection_typesarray of string

Connection types the campaign serves on: cellular (mobile data) and/or fixed (cable, DSL, corporate, dial-up, satellite). With a list set, a request whose connection type is unknown matches nothing. Only the 2 words, each once; anything else is a 400 on the field. Empty/omitted = every connection type. Send [] to clear.

  • Max items: 2
isp_targetingarray of string

ISPs the campaign serves on, each the ISP name exactly as GET /advertisers/{advertiser_uuid}/targeting-values?kind=isp lists it (MaxMind's spelling, trimmed). Up to 500 names of 128 characters, no duplicates; a name in isp_targeting_exclude too is a 400 on the field. Empty/omitted = every ISP. Send [] to clear.

  • Max items: 500
isp_targeting_excludearray of string

ISPs the campaign does NOT serve on. Same values and limits as isp_targeting. Empty/omitted = nothing excluded. Send [] to clear.

  • Max items: 500
region_targetingarray of string

Regions the campaign serves on, each CC-RR: the ISO 3166-1 alpha-2 country code, -, the ISO 3166-2 subdivision code, upper case (US-CA, GB-ENG) — the value of GET /advertisers/{advertiser_uuid}/targeting-values?kind=region. Up to 1000 keys of 16 characters, no duplicates; a key in region_targeting_exclude too is a 400 on the field. Empty/omitted = every region. Send [] to clear.

  • Max items: 1000
region_targeting_excludearray of string

Regions the campaign does NOT serve on. Same keys and limits as region_targeting. Empty/omitted = nothing excluded. Send [] to clear.

  • Max items: 1000
city_targetingarray of string

Cities the campaign serves on, each CC:City: the alpha-2 country code, :, the city name as MaxMind spells it in English, exact case (US:Los Angeles) — the value of GET /advertisers/{advertiser_uuid}/targeting-values?kind=city. Up to 2000 keys of 96 characters, no duplicates; a key in city_targeting_exclude too is a 400 on the field. Empty/omitted = every city. Send [] to clear.

  • Max items: 2000
city_targeting_excludearray of string

Cities the campaign does NOT serve on. Same keys and limits as city_targeting. Empty/omitted = nothing excluded. Send [] to clear.

  • Max items: 2000
subid_targetingarray of string

Publisher sub ids (the supply's subid) the campaign serves on, raw and exact, as GET /advertisers/{advertiser_uuid}/targeting-values?kind=subid lists them. Up to 5000 ids of 128 characters, no duplicates; an id in subid_targeting_exclude too is a 400 on the field. Empty/omitted = every sub id. Send [] to clear.

  • Max items: 5000
subid_targeting_excludearray of string

Sub ids the campaign does NOT serve on. Same values and limits as subid_targeting. Empty/omitted = nothing excluded. Send [] to clear.

  • Max items: 5000
verticalstring

pCVR-predictor vertical. The match is BYTE-EXACT against the trained level spellings, so case, spacing and hyphens all matter and a near miss is a 400. Swwpstakes is the trained spelling — do not correct it. Empty = unset, and the predictor default applies.

  • One of: , Casino, Sport - Bets, Adult, E-commerce, Gaming, Apps Utilities, Dating, Mobile Content, Finance, AV, Content Arbitrage, Swwpstakes, Smartlink, Crypto, VPN, Push Subscription, Real Estate, Nutra - Health, Nutra - Penis
supply_markup_pctinteger

Platform take on this advertiser media, whole percent. We charge the CPM/CPC in full and quote the supply rate × (1 − pct/100).

  • Minimum: 0
  • Maximum: 100
country_bidsarray of CountryBid

A bid for one country. A request from a country in this list is priced at its bid in place of cpc; every other country uses cpc. pop_redirect and push campaigns only — a non-empty list on another type is a 400. Each country must be in country_targeting when that list is not empty, each bid must be more than 0, and a country can have one bid. Empty/omitted = one price for all countries. Send [] to clear.

optimize_pricenumber

US dollars set on the optimization goal. STORED ONLY — nothing in the serving path reads it. 0 = unset.

optimization2boolean

Second optimization goal. Same store-only contract as the first.

optimization_goal2_uuidstring

The second goal. Must differ from optimization_goal_uuid (400).

optimize_price2number

US dollars on the second goal. STORED ONLY. 0 = unset.

exploration_pctinteger

Budget control — percent points of the daily budget the predictor pacer spends on traffic cells in the exploration state. 0 = the predictor server default.

discovery_share_pctinteger

Budget control — percent points for cells in the discovery state. 0 = the predictor server default.

publisher_cap_pctinteger

Budget control — percent-point cap on the daily budget any single publisher may take. 0 = the predictor server default.

xml_redirect_supplystring

Which XML redirect tag a pop_redirect campaign serves onto. Empty = both (the default). Any other value is a 400.

  • One of: , both, pop, direct_link
bidding_pricestring

How the CPC is used on XML redirect supply. fixed (default) bids the CPC and lets the predictor answer buy/skip; variable treats the CPC as a ceiling and bids min(CPC, predictor max_bid). Any other value is a 400.

  • One of: , fixed, variable
defaults_profileobject

The tenant campaign-defaults block. Omit it on create and the tenant defaults are copied in, including adult_mode into rtb_inventory_filters.adult_traffic_mode. Echoed back as stored.

traffic_typestring
  • One of: web, inapp, both
is_active_start_dateboolean
start_datestring (date-time)
is_active_end_dateboolean
end_datestring (date-time)
is_active_daypartingboolean
daypartingDayparting
is_started_by_userboolean
ip_block_listsarray of string
ip_white_listsarray of string
domain_block_listsarray of string
domain_white_listsarray of string
bundle_block_listsarray of string
bundle_white_listsarray of string
adset_uuidsarray of string (uuid)
blacklisted_creativesarray of CreativeBlacklistEntry
sourceid_block_listsarray of string
sourceid_white_listsarray of string
advertisingid_block_listsarray of string
advertisingid_white_listsarray of string
ssp_connection_white_listsarray of string
ssp_connection_block_listsarray of string
rtb_transparency_layersarray of string
rtb_seller_typesarray of string
rtb_allowed_traffic_categoriesarray of string
rtb_inventory_filtersRTBInventoryFilters

Adset

object

PropertyTypeDescription
uuidstring (uuid)
tenant_uuidstring (uuid)

Internal bookkeeping field — safe to ignore. Not accepted on writes.

advertiser_uuidstring (uuid)
versionstring

Internal bookkeeping field — safe to ignore. Not accepted on writes.

xxhash3string

Internal bookkeeping field — safe to ignore. Not accepted on writes.

statusboolean
namestring
scopestring

Which creative kind this adset holds.

  • One of: native, display, video, push, search, redirect
has_vectorboolean

Internal bookkeeping field — safe to ignore. Not accepted on writes.

created_atstring (date-time)
updated_atstring (date-time)

AdsetPage

object

PropertyTypeDescription
items requiredarray of Adset
total requiredinteger

Row count after filters

page requiredinteger
page_size requiredinteger

Creative

object

PropertyTypeDescription
uuidstring (uuid)
tenant_uuidstring (uuid)

Internal bookkeeping field — safe to ignore. Not accepted on writes.

advertiser_uuidstring (uuid)
versionstring

Internal bookkeeping field — safe to ignore. Not accepted on writes.

xxhash3string

Internal bookkeeping field — safe to ignore. Not accepted on writes.

statusboolean

Soft-disable flag: true = active (default), false = paused.

cdn_uuid_1string

Opaque internal asset reference for media slot 1 — safe to ignore.

cdn_uuid_2string

Opaque internal asset reference for media slot 2 — safe to ignore.

file_name_1string

Uploaded file name (media slot 1; the icon for push). Omitted on text-only search creatives.

file_name_2string

Uploaded file name (media slot 2; the hero image for push).

media_type_1string

Media kind of slot 1: display|video|audio|native|push. Omitted = text-only search creative.

media_type_2string

Media kind of slot 2 (push image).

adset_uuidstring (uuid)
titlestring

Native title

descriptionstring
text1string

Free-form forward-compatible slot

text2string

Free-form forward-compatible slot

text3string

Free-form forward-compatible slot

video_protocolsarray of integer

OpenRTB Video.protocols integers (VAST versions). Video creatives only; omitted when empty.

video_mime_typesarray of string

Declared video mime types (e.g. video/mp4). Video creatives only.

video_api_frameworkstring

vpaid_1, vpaid_2, omid_1, or omitted.

created_atstring (date-time)
updated_atstring (date-time)

Goal

object

PropertyTypeDescription
uuidstring (uuid)

Use as gid in the conversion postback.

advertiser_uuidstring (uuid)
versioninteger

Internal bookkeeping field — safe to ignore. Not accepted on writes.

namestring
statusboolean
eventsinteger (int64)

Lifetime conversions.

cpa_eventsinteger (int64)
income_sumnumber

Decimal US dollars — summed income values carried on postbacks.

created_atstring (date-time)
updated_atstring (date-time)

Balance

object

PropertyTypeDescription
advertiser_uuid requiredstring (uuid)
funded_micros requiredinteger (int64)

Settled deposits, micro-dollars (1000000 = $1).

spent_micros requiredinteger (int64)

Live delivery counters

balance_micros requiredinteger (int64)

funded − spent. Can go slightly negative; the overshoot is money owed.

has_ledger requiredboolean

false = never funded (setup state), distinct from exhausted.

Transaction

object

PropertyTypeDescription
uuidstring (uuid)
advertiser_uuidstring (uuid)
statusboolean

true = settled, false = pending or voided

statestring

Settled rows are applied to the balance; a pending one is not yet; a voided one never will be.

  • One of: pending, settled, voided
typestring
  • One of: added_manually, charged_by_client, refund, campaign_spend
feenumber

Decimal US dollars

amountnumber

Decimal US dollars

delta_microsinteger (int64)

The row's signed effect on the balance once settled, micro-dollars: a payment credits amount − fee, a charge debits amount + fee, a refund and campaign spend debit amount.

payment_methodstring
external_refstring

The operator's reference; omitted when empty.

notestring

The operator's note

sourcestring

Who wrote the row: the console, an API key, the assistant, the platform's spend reconciler, or a row from before sources were kept.

  • One of: ui, api, mcp, reconciler, legacy
reverses_uuidstring

The settled row this reversal cancels; omitted otherwise.

reversed_by_uuidstring

The reversal that cancels this row; omitted otherwise.

voided_atstring (date-time)

When the row was voided; omitted otherwise.

campaign_uuidstring

Set on campaign_spend line items; omitted otherwise.

period_startstring (date-time) or null

The delivery hour a campaign_spend line item covers. Omitted on other types.

created_atstring (date-time)
confirmed_atstring (date-time) or null

When the row settled. null while pending, and on a voided row.

TransactionPage

object

PropertyTypeDescription
items requiredarray of Transaction
total requiredinteger

Row count after filters

page requiredinteger
page_size requiredinteger
total_pages requiredinteger

total in pages of page_size (rounded up); 0 when nothing matches.

ReportFilter

object

PropertyTypeDescription
dimension requiredstring
  • One of: date, hourOfDay, campaign, adSet, creativeId, adFormat, trafficType, country, region, city, deviceType, os, browserName, language, creativeSize
op requiredstring
  • One of: is, isNot
values requiredarray of string

UUIDs for entity dimensions (campaign, adSet, creativeId); display values for all other dimensions.

listsarray of string

Operator-only feature — ignored on this API.

ReportParentValue

object

PropertyTypeDescription
dimension requiredstring

Must match the corresponding groupBy entry, in order.

value requiredstring

The dims value of the parent row (the UUID for entity dimensions).

ReportRequest

object

PropertyTypeDescription
dateFrom requiredstring (date)

Inclusive

dateTo requiredstring (date)

Inclusive

groupByarray of string

Dimensions to group rows by.

pivotDimsarray of string

Extra grouping dimensions folded into the flat aggregation (grouping runs over groupBy ∪ pivotDims). Ignored in tree mode (depth > 0).

filtersarray of ReportFilter
scopestring

Server-forced — the report is always scoped to the addressed advertiser's campaigns. Sent values are ignored.

includeMarketplaceboolean

Server-forced to false. Sent values are ignored.

depthinteger

Tree-mode drilldown. When set, the server groups by groupBy[0:depth] and applies parentPath as an equality filter — one row per child branch. Must be in [1, len(groupBy)].

  • Minimum: 1
parentPatharray of ReportParentValue

The ancestor chain for tree mode. Must equal groupBy[0:depth-1] in order; mismatches return 400.

sortBystring

A metric id: auctions, bids, impressions, clicks, conversions, spend, revenue — or derived: profit, ctr, winRate, fillRate, ecpm, cvr.

  • Default: revenue
sortDirstring
  • One of: asc, desc
  • Default: desc
pageinteger
  • Default: 1
  • Minimum: 1
pageSizeinteger

Rows per page, 1 to 10000. Omitted (or 0) = 50. A negative value or a value above 10000 returns 400 on pageSize.

  • Default: 50
  • Minimum: 1
  • Maximum: 10000

ReportRow

object

One aggregation bucket.

PropertyTypeDescription
dimsobject of string

Dimension values keyed by dimension id. Entity dimensions (campaign, adSet, creativeId) carry the stable UUID here — use it for filters and parentPath. date values are YYYY-MM-DD; hourOfDay is "0"–"23" UTC.

dimLabelsobject of string

Human-readable labels for dimensions whose dims value is opaque (entity UUIDs). Render dimLabels[k] ?? dims[k]. Omitted when no dimension needs a label.

auctionsinteger (int64)
bidsinteger (int64)
impressionsinteger (int64)
clicksinteger (int64)
conversionsinteger (int64)
spendnumber

Decimal US dollars.

revenuenumber

Decimal US dollars.

ipMatchPctnumber or null

Share (0..1) of device-fired callback events in this bucket whose peer IP does not contradict the bid request's claimed device IP — a traffic-legitimacy signal. Absent/null when the bucket produced no device-fired events.

  • Minimum: 0
  • Maximum: 1

ReportResponse

object

PropertyTypeDescription
rowsarray of ReportRow
appliedGroupByarray of string

The grouping the server actually used.

unsupportedDimsarray of string

Dimensions dropped by the server (e.g. hourOfDay on a very long range). May contain human-readable warnings.

totalinteger (int64)

Distinct buckets matching the filters

totalsall of ReportRow

A full row object holding per-metric sums over the entire filtered range (grouping ignored); its dims is empty.

tierstring

Which data grain answered — minute-fresh (≤7d), hourly (≤30d), or daily.

  • One of: bi_minute, bi_hour, bi_day
pageinteger

The page served (1-based).

pageSizeinteger

The page size served — the request's, or its default when it named none.

totalPagesinteger

total in pages of pageSize (rounded up); 0 when nothing matches.

CampaignStatsResponse

all of ReportResponse | object

XMLReportDimension

string

  • One of: date, hourOfDay, campaign, adSet, creative, distributionTag, priceModel, country, region, city, connectionType, deviceType, os, osMajor, browser, browserMajor, language

XMLReportFilter

object

PropertyTypeDescription
dimension requiredXMLReportDimension
op requiredstring
  • One of: is, isNot
values requiredarray of string

UUIDs for entity dimensions (campaign, adSet, creative); display values for all other dimensions.

listsarray of string

Operator-only feature — ignored on this API.

XMLReportRequest

object

PropertyTypeDescription
dateFrom requiredstring (date)

Inclusive

dateTo requiredstring (date)

Inclusive

groupByarray of XMLReportDimension

Dimensions to group rows by. Empty = one totals-style row.

pivotDimsarray of XMLReportDimension

Extra grouping dimensions folded into the flat aggregation (grouping runs over groupBy ∪ pivotDims). Ignored in tree mode (depth > 0).

filtersarray of XMLReportFilter
depthinteger

Tree-mode drilldown. When set, the server groups by groupBy[0:depth] and applies parentPath as an equality filter — one row per child branch. Must be in [1, len(groupBy)].

  • Minimum: 1
parentPatharray of ReportParentValue

The ancestor chain for tree mode. Must equal groupBy[0:depth-1] in order; mismatches return 400.

scopestring

Server-forced — the report is always scoped to the addressed advertiser's campaigns. Sent values are ignored.

advertiserUUIDsarray of string

Server-forced — ignored.

excludeMarketplaceboolean

Server-forced — ignored.

sortBystring

A metric id: requests, bids, impressions, clicks, heldClicks, botClicks, lateImps, lateClicks, spend, heldSpend, verifiedSpend, verifiedClicks, ipMatchPct, fillRate, winRate, ctr, botClickPct, epc, ecpm — or a grouped dimension. Anything else returns 400.

  • Default: spend
sortDirstring
  • One of: asc, desc
  • Default: desc
pageinteger
  • Default: 1
  • Minimum: 1
pageSizeinteger

Rows per page, 1 to 10000. Omitted (or 0) = 50. A negative value or a value above 10000 returns 400 on pageSize.

  • Default: 50
  • Minimum: 1
  • Maximum: 10000

XMLReportRow

object

One aggregation bucket of an XML-tier report.

PropertyTypeDescription
dimsobject of string

Dimension values keyed by dimension id. Entity dimensions (campaign, adSet, creative) carry the stable UUID here — use it for filters and parentPath. date values are YYYY-MM-DD; hourOfDay is "0"–"23" UTC.

dimLabelsobject of string

Human-readable labels for dimensions whose dims value is opaque (entity UUIDs). Render dimLabels[k] ?? dims[k]. Omitted when no dimension needs a label.

requestsinteger (int64)

Feed requests the campaign was served on.

bidsinteger (int64)

Priced answers.

impressionsinteger (int64)

Tracker impressions. Low or zero on pop / direct_click

clicksinteger (int64)

Tracker clicks

heldClicksinteger (int64)

Clicks held on an unconfirmed device IP — counted in clicks

botClicksinteger (int64)

Clicks whose user-agent was a bot — counted

lateImpsinteger (int64)

Push impressions past the validity window — counted

lateClicksinteger (int64)

Push clicks whose impression was missing or late — counted

conversionsinteger (int64) or null

Fires of each campaign's selected optimization goal. Null when the grouping cannot be measured; 0 means measured, none fired.

spendnumber

Your charge for the bucket's deliveries

heldSpendnumber

The held part of spend

verifiedSpendnumber or null

The part of spend whose click confirmed the claimed device IP, decimal US dollars. Null where the history was not measured — never $0 there.

verifiedSpendEstimatedboolean

True when verifiedSpend was apportioned from IP-match counters rather than measured event by event.

verifiedClicksinteger (int64) or null

Clicks whose tracker peer IP confirmed the claimed device IP. Null where not measured.

verifiedClicksEstimatedboolean
ipMatchPctnumber or null

verifiedClicks / clicks. Null when the bucket has no clicks or no verified measure.

  • Minimum: 0
  • Maximum: 1

XMLReportResponse

object

PropertyTypeDescription
rowsarray of XMLReportRow
appliedGroupByarray of string

The grouping the server actually used.

unsupportedDimsarray of string

Dimensions dropped by the server (e.g. hourOfDay on a range older than the hourly store). May contain human-readable warnings.

totalinteger (int64)

Distinct buckets matching the filters

totalsall of XMLReportRow

A full row object holding per-metric sums over the entire filtered range (grouping ignored); its dims is empty.

tierstring

Which data grain answered — minute-fresh (≤7d), hourly (≤30d), or daily.

  • One of: bi_xml, bi_xml_hour, bi_xml_day
pageinteger

The page served (1-based).

pageSizeinteger

The page size served — the request's, or its default when it named none.

totalPagesinteger

total in pages of pageSize (rounded up); 0 when nothing matches.

CampaignEnvelope

object

PropertyTypeDescription
data requiredCampaign

AdsetEnvelope

object

PropertyTypeDescription
data requiredAdset

CreativeEnvelope

object

PropertyTypeDescription
data requiredCreative

GoalEnvelope

object

PropertyTypeDescription
data requiredGoal