APIs

Campaign API

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

The machine surface over your own campaign tree: campaigns, ad sets, creative upload, conversion goals, per-campaign delivery stats, and the static targeting dictionaries.

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: campaign-api:read, and campaign-api:write to change campaigns, ad sets, creatives and goals.
  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>/campaign/v1/...), the token's hash (ath) and a jti never sent before.
Scope Endpoints
campaign-api:read every GET
campaign-api:write every 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 Campaign API (or the campaigns', ad sets', creatives' or goals' module), 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
Programmatic /programmatic/v1 an API key with its scopes
XML /xml/v1 an API key with its scopes
Advertiser /advertiser/v1 an API key with its scopes

Response envelope

Every success response with a body — 200 and 201 — wraps its payload in a data envelope:

{ "data": { "uuid": "…", "name": "…" } }

204 responses have no body. A refusal is a problem, not enveloped (Errors).

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 (a campaign's pricing that does not match its type, a list, a date order or a vocabulary; an ad set's or a goal's name already in use; an unknown type or status filter; a missing status; the stats' dates, grouping 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 yours)
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
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 Campaign API (or the module of the campaigns, ad sets, creatives or goals)
not_found 404 No such campaign, ad set, creative or goal in your tenant
already_exists 409 A campaign of yours has that name already (in any case)
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
unavailable, auth_unavailable 503 A backing service cannot answer now: retry after Retry-After

Idempotency

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

Money and dates

  • cpm, cpc, max_bid — decimal US dollars (e.g. 2.5 = $2.50).
  • daily_budget, budget_lifetime — integer, whole US dollars, on both request and response. Fractions are not representable.
  • Report spend / revenue and goal income_sum — decimal US dollars.
  • Timestamps are RFC 3339 UTC; nanosecond precision may appear — parsers must accept fractional seconds (e.g. 2026-08-01T10:15:30.123456789Z).
  • Report date dims are YYYY-MM-DD strings; hourOfDay is "0".."23", in 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 (daily_budget_status + daily_budget, frequency caps) are disabled by setting the *_status flag to false, not by clearing the number.
  • Zero values are real writes: "min_obs": 0 sets 0, "status": false sets false.
  • An empty body {} is a legal no-op: it changes nothing and returns the current row.
  • 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).

Rate limits

Per API key (your program's iam client), per minute: 300 reads, 60 writes, 30 for uploads and stats, 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).

Pagination

/adsets and /campaigns/{uuid}/stats are paginated (see the per-operation page / page_size parameters). All other list endpoints (/campaigns, /creatives, /goals, /dictionaries/*) return the full list; pagination is not applied. List responses always serialize as JSON arrays — an empty result is [], never null.

Conversion postback

Server-to-server conversion tracking. After creating a goal, fire one HTTP GET per conversion event:

GET https://cb.rtbpilot.io/cb/goal?gid=<goal_uuid>&tid=<tenant_uuid>&aid=<auction_id>&income=<value>&currency=usd
  • gid — the goal's uuid (from POST /goals). It never changes.
  • tid — your tenant UUID (shown in the platform UI and on every entity as tenant_uuid).
  • aid — the auction ID you received in your landing-page macros.
  • income — decimal US dollars attributed to this conversion.
  • Every hit counts — the postback is not idempotent on the wire. A retried request that already landed counts twice, so only retry when you received no HTTP response at all (connection failure / timeout); never retry on any HTTP status. Deduplicate on your side per conversion event.
  • A paused goal (status: false) answers 410 and drops the hit; re-activating resumes intake.

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).

Notes

  • Campaign↔DSP connection wiring is not on this surface — manage demand routing in the platform UI.

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 campaign-api:read and, to change campaigns, ad sets, creatives and goals, campaign-api:write.

Campaigns

The campaign tree root: pricing, budgets, flighting, targeting, inventory filters, and adset bindings. type (set at create, fixed for life) decides the pricing model — native and video_banner bid CPM; pop_redirect, push, search and keyword bid CPC.

GET /campaign/v1/campaigns

List campaigns

Needs dpop

Slim summary rows for every campaign in your tenant, with optional filters. Returns the full (filtered) list; pagination is not applied.

An unknown value in type or an unparseable status is a 400 invalid_argument on that field (it is never silently ignored).

Parameters

NameInTypeDescription
qquerystring

Case-insensitive substring match on the campaign name.

typequerystring

Comma-separated campaign types to include. Each entry must be one of native, video_banner, pop_redirect, search, push, keyword — unknown values are a 400 listing the valid set.

statusquerystring

Filter to active (true/1) or paused (false/0) campaigns.

  • One of: true, false, 1, 0

Responses

200

Campaign summaries (empty array when nothing matches).

application/json · object

PropertyTypeDescription
data requiredarray of CampaignSummary
Example: summaries
{
  "data": [
    {
      "id": 118,
      "uuid": "0c9b6f9e-2a41-4c8e-9f0a-6d2f9d3e8b11",
      "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
      "xxhash3": "d41f8a2c9b3e6a70d41f8a2c9b3e6a70",
      "name": "Summer Push US",
      "status": true,
      "type": "push",
      "infrastructure": "rtb",
      "brand_name": "Acme",
      "adset_count": 3
    }
  ]
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

POST /campaign/v1/campaigns

Create a campaign

Needs dpop

type decides pricing and is fixed for the campaign's lifetime: CPM types (native, video_banner) may set cpm and must leave cpc unset (or 0); CPC types (pop_redirect, push, search, keyword) may set cpc and must leave cpm unset (or 0) — a populated mismatched field is a 400 on it.

Server defaults when omitted: pacing = asap, traffic_type = both, and devices omitted or [] = all three device buckets. end_date must be strictly after start_date when both are set. Every entry in blacklisted_creatives must reference an adset present in adset_uuids. pop_redirect and push campaigns need a tracking_url. Each list field may name only your own lists. Campaign names are unique per tenant in any case (409 already_exists). Without defaults_profile your tenant's campaign defaults are copied in, its adult mode into rtb_inventory_filters.adult_traffic_mode when that is not set.

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 · CampaignCreate

Example: Minimal CPC push campaign
{
  "type": "push",
  "name": "Summer Push US",
  "infrastructure": "rtb",
  "cpc": 0.12,
  "tracking_url": "https://track.acme.example/c?aid={auction_id}",
  "daily_budget_status": true,
  "daily_budget": 200,
  "country_targeting": [
    840
  ],
  "adset_uuids": [
    "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d"
  ]
}
Example: CPM native campaign with flighting
{
  "type": "native",
  "name": "Q3 Native EU",
  "infrastructure": "rtb",
  "cpm": 1.8,
  "pacing": "evenly",
  "traffic_type": "web",
  "is_active_start_date": true,
  "start_date": "2026-08-10T00:00:00Z",
  "is_active_end_date": true,
  "end_date": "2026-09-10T00:00:00Z"
}

Responses

201

Created — the full campaign, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredCampaign
Example: created
{
  "data": {
    "id": 118,
    "uuid": "0c9b6f9e-2a41-4c8e-9f0a-6d2f9d3e8b11",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.3",
    "xxhash3": "d41f8a2c9b3e6a70d41f8a2c9b3e6a70",
    "status": false,
    "is_started_by_user": false,
    "is_hold_by_system": false,
    "name": "Summer Push US",
    "type": "push",
    "brand_name": "Acme",
    "advertiser_domain": "acme.com",
    "infrastructure": "rtb",
    "cpc": 0.12,
    "tracking_url": "https://track.acme.example/c?aid={auction_id}",
    "optimization": false,
    "budget_lifetime_status": false,
    "budget_lifetime": 0,
    "daily_budget_status": true,
    "daily_budget": 200,
    "pacing": "asap",
    "ip_freq_cap_status": false,
    "ip_freq_cap_count": 0,
    "ip_freq_cap_window_sec": 0,
    "country_targeting": [
      840
    ],
    "language_targeting": [
      38
    ],
    "devices": [
      "desktop",
      "mobile",
      "tablet"
    ],
    "traffic_type": "both",
    "xml_redirect_supply": "both",
    "bidding_price": "fixed",
    "is_active_start_date": false,
    "is_active_end_date": false,
    "is_active_dayparting": false,
    "adset_uuids": [
      "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d"
    ],
    "created_at": "2026-08-01T10:15:30.123456789Z",
    "updated_at": "2026-08-01T10:15:30.123456789Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

Another campaign of yours has the name, in any case (already_exists), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: taken
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "already_exists"
}

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

GET /campaign/v1/campaigns/{uuid}

Get a campaign

Needs dpop

The full campaign record.

Parameters

NameInTypeDescription
uuid requiredpathstring (uuid)

Responses

200

The full campaign.

application/json · object

PropertyTypeDescription
data requiredCampaign
Example: campaign
{
  "data": {
    "id": 118,
    "uuid": "0c9b6f9e-2a41-4c8e-9f0a-6d2f9d3e8b11",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.3",
    "xxhash3": "d41f8a2c9b3e6a70d41f8a2c9b3e6a70",
    "status": false,
    "is_started_by_user": false,
    "is_hold_by_system": false,
    "name": "Summer Push US",
    "type": "push",
    "brand_name": "Acme",
    "advertiser_domain": "acme.com",
    "infrastructure": "rtb",
    "cpc": 0.12,
    "tracking_url": "https://track.acme.example/c?aid={auction_id}",
    "optimization": false,
    "budget_lifetime_status": false,
    "budget_lifetime": 0,
    "daily_budget_status": true,
    "daily_budget": 200,
    "pacing": "asap",
    "ip_freq_cap_status": false,
    "ip_freq_cap_count": 0,
    "ip_freq_cap_window_sec": 0,
    "country_targeting": [
      840
    ],
    "language_targeting": [
      38
    ],
    "devices": [
      "desktop",
      "mobile",
      "tablet"
    ],
    "traffic_type": "both",
    "xml_redirect_supply": "both",
    "bidding_price": "fixed",
    "is_active_start_date": false,
    "is_active_end_date": false,
    "is_active_dayparting": false,
    "adset_uuids": [
      "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d"
    ],
    "created_at": "2026-08-01T10:15:30.123456789Z",
    "updated_at": "2026-08-01T10:15:30.123456789Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

PATCH /campaign/v1/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 "". An empty body {} is a legal no-op. type cannot change after create; dates cannot be cleared once set (disable them via is_active_start_date / is_active_end_date instead). is_hold_by_system is the platform's: a body that sends it is a 400 on it. A check that compares fields reads the stored ones for those you do not send.

Parameters

NameInTypeDescription
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

Example: Raise the daily budget and narrow devices
{
  "daily_budget_status": true,
  "daily_budget": 350,
  "devices": [
    "mobile"
  ]
}

Responses

200

Updated — the full campaign after the patch.

application/json · object

PropertyTypeDescription
data requiredCampaign
Example: updated
{
  "data": {
    "id": 118,
    "uuid": "0c9b6f9e-2a41-4c8e-9f0a-6d2f9d3e8b11",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.3",
    "xxhash3": "d41f8a2c9b3e6a70d41f8a2c9b3e6a70",
    "status": false,
    "is_started_by_user": false,
    "is_hold_by_system": false,
    "name": "Summer Push US",
    "type": "push",
    "brand_name": "Acme",
    "advertiser_domain": "acme.com",
    "infrastructure": "rtb",
    "cpc": 0.12,
    "tracking_url": "https://track.acme.example/c?aid={auction_id}",
    "optimization": false,
    "budget_lifetime_status": false,
    "budget_lifetime": 0,
    "daily_budget_status": true,
    "daily_budget": 200,
    "pacing": "asap",
    "ip_freq_cap_status": false,
    "ip_freq_cap_count": 0,
    "ip_freq_cap_window_sec": 0,
    "country_targeting": [
      840
    ],
    "language_targeting": [
      38
    ],
    "devices": [
      "desktop",
      "mobile",
      "tablet"
    ],
    "traffic_type": "both",
    "xml_redirect_supply": "both",
    "bidding_price": "fixed",
    "is_active_start_date": false,
    "is_active_end_date": false,
    "is_active_dayparting": false,
    "adset_uuids": [
      "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d"
    ],
    "created_at": "2026-08-01T10:15:30.123456789Z",
    "updated_at": "2026-08-01T10:15:30.123456789Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within your tenant.

application/problem+json · Problem

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

409

Another campaign of yours has the name, in any case (already_exists), or a request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

Example: taken
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "already_exists"
}

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

DELETE /campaign/v1/campaigns/{uuid}

Delete a campaign

Needs dpop

Permanently removes the campaign and its DSP connection wiring. Its adsets and creatives survive (they are shared containers).

Parameters

NameInTypeDescription
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. No body.

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within your tenant.

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

PATCH /campaign/v1/campaigns/{uuid}/status

Activate / pause a campaign

Needs dpop

Flips only the serving status. status is required — a body without it (including {}) is a 400 invalid_argument on status ("status is required (true or false)"), never a silent pause.

Parameters

NameInTypeDescription
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 · StatusInput

Example: pause
{
  "status": false
}

Responses

200

Updated — the full campaign.

application/json · object

PropertyTypeDescription
data requiredCampaign
Example: updated
{
  "data": {
    "id": 118,
    "uuid": "0c9b6f9e-2a41-4c8e-9f0a-6d2f9d3e8b11",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.3",
    "xxhash3": "d41f8a2c9b3e6a70d41f8a2c9b3e6a70",
    "status": false,
    "is_started_by_user": false,
    "is_hold_by_system": false,
    "name": "Summer Push US",
    "type": "push",
    "brand_name": "Acme",
    "advertiser_domain": "acme.com",
    "infrastructure": "rtb",
    "cpc": 0.12,
    "tracking_url": "https://track.acme.example/c?aid={auction_id}",
    "optimization": false,
    "budget_lifetime_status": false,
    "budget_lifetime": 0,
    "daily_budget_status": true,
    "daily_budget": 200,
    "pacing": "asap",
    "ip_freq_cap_status": false,
    "ip_freq_cap_count": 0,
    "ip_freq_cap_window_sec": 0,
    "country_targeting": [
      840
    ],
    "language_targeting": [
      38
    ],
    "devices": [
      "desktop",
      "mobile",
      "tablet"
    ],
    "traffic_type": "both",
    "xml_redirect_supply": "both",
    "bidding_price": "fixed",
    "is_active_start_date": false,
    "is_active_end_date": false,
    "is_active_dayparting": false,
    "adset_uuids": [
      "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d"
    ],
    "created_at": "2026-08-01T10:15:30.123456789Z",
    "updated_at": "2026-08-01T10:15:30.123456789Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within your tenant.

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

Adsets

Creative containers. An adset has a scope (ad format bucket) and holds creatives of that format; campaigns reference adsets via adset_uuids. One adset can serve many campaigns.

GET /campaign/v1/adsets

List adsets

Needs dpop

Paginated adset search, newest first. page_size defaults to 50 and is at most 100: a larger one is a 400 on it. An unparseable status or an unknown scope is a 400 on it.

Parameters

NameInTypeDescription
namequerystring

Case-insensitive substring filter on the adset name.

  • Max length: 255
scopequerystring

Ad-format bucket filter.

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

Filter to active or paused adsets.

  • One of: true, false, 1, 0
pagequeryinteger

1-based page.

  • Default: 1
  • Minimum: 1
page_sizequeryinteger

Rows per page, 1 to 100.

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

Responses

200

One page of adsets: {items, total, page, page_size} inside the envelope.

application/json · object

PropertyTypeDescription
data requiredAdsetPage
Example: page
{
  "data": {
    "items": [
      {
        "uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
        "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
        "version": "0.0.2",
        "xxhash3": "8a1f6e2d9c3b7a40",
        "status": true,
        "name": "Push icons summer",
        "scope": "push",
        "has_vector": false,
        "created_at": "2026-07-20T08:00:00Z",
        "updated_at": "2026-07-28T14:30:00Z"
      }
    ],
    "total": 1,
    "page": 1,
    "page_size": 50
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

POST /campaign/v1/adsets

Create an adset

Needs dpop

Creates an empty creative container. scope fixes the ad format the adset accepts. Adset names are unique per tenant in any case: a name in use is a 400 invalid_argument on name.

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 · AdsetCreate

Example: create
{
  "name": "Push icons summer",
  "scope": "push"
}

Responses

201

Created — the adset, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredAdset
Example: created
{
  "data": {
    "uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.2",
    "xxhash3": "8a1f6e2d9c3b7a40",
    "status": true,
    "name": "Push icons summer",
    "scope": "push",
    "has_vector": false,
    "created_at": "2026-07-20T08:00:00Z",
    "updated_at": "2026-07-28T14:30:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

GET /campaign/v1/adsets/{uuid}

Get an adset

Needs dpop

One adset by UUID. List its creatives via GET /creatives?adset_uuid=….

Parameters

NameInTypeDescription
uuid requiredpathstring (uuid)

Responses

200

The adset.

application/json · object

PropertyTypeDescription
data requiredAdset
Example: adset
{
  "data": {
    "uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.2",
    "xxhash3": "8a1f6e2d9c3b7a40",
    "status": true,
    "name": "Push icons summer",
    "scope": "push",
    "has_vector": false,
    "created_at": "2026-07-20T08:00:00Z",
    "updated_at": "2026-07-28T14:30:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

PATCH /campaign/v1/adsets/{uuid}

Update an adset

Needs dpop

Partial update: omitted fields are unchanged; null is treated as omitted. An empty body {} is a legal no-op. A new name in use is a 400 invalid_argument on name.

Parameters

NameInTypeDescription
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 · AdsetUpdate

Example: rename
{
  "name": "Push icons autumn"
}

Responses

200

Updated — the adset after the patch.

application/json · object

PropertyTypeDescription
data requiredAdset
Example: updated
{
  "data": {
    "uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.2",
    "xxhash3": "8a1f6e2d9c3b7a40",
    "status": true,
    "name": "Push icons summer",
    "scope": "push",
    "has_vector": false,
    "created_at": "2026-07-20T08:00:00Z",
    "updated_at": "2026-07-28T14:30:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within your tenant.

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

DELETE /campaign/v1/adsets/{uuid}

Delete an adset

Needs dpop

Removes the adset.

Parameters

NameInTypeDescription
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. No body.

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within your tenant.

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

Creatives

Media and copy that serve inside adsets. Upload endpoints are multipart/form-data (except search and redirect, which are JSON — search is pure text, redirect carries no asset at all): the form's text fields beside its file, in one request. Push, search and redirect creatives take a headline, which is stored and returned as the creative's title.

POST /campaign/v1/creatives/display

Upload a display creative

Needs dpop

multipart/form-data: one image file (JPEG/PNG/GIF at IAB sizes) into a display-scope adset. 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
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)

The image file.

adset_uuid requiredstring (uuid)

Target adset (scope display).

text1string

Free-form forward-compatible text slot.

  • Max length: 1000
text2string

Free-form forward-compatible text slot.

  • Max length: 1000
text3string

Free-form forward-compatible text slot.

  • Max length: 1000
Example: upload
{
  "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
  "file": "(binary)"
}

Responses

201

Created — the creative, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredCreative
Example: created
{
  "data": {
    "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "5c2e9a1f7d4b8c30",
    "status": true,
    "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
    "file_name_1": "5c2e9a1f7d4b8c30.png",
    "media_type_1": "display",
    "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "created_at": "2026-07-25T09:12:00Z",
    "updated_at": "2026-07-25T09:12:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

POST /campaign/v1/creatives/video

Upload a video creative

Needs dpop

multipart/form-data: one video file (MP4/WebM/OGG/MOV) into a video-scope adset, sent as a video type or application/octet-stream. Duration, codec and resolution are probed server-side; the optional video_* fields carry the OpenRTB bid-spec signals used to match Video slot constraints. Heavy rate-limit class (30/min).

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

multipart/form-data · object

PropertyTypeDescription
file requiredstring (binary)

The video file.

adset_uuid requiredstring (uuid)

Target adset (scope video).

video_protocolsstring

Comma-separated OpenRTB Video.protocols integers (VAST 2/3/4 codes), e.g. 2,3,7, at most 16. A non-integer entry is a 400 on video_protocols.

video_mime_typesstring

Comma-separated MIME types the asset should be offered as, e.g. video/mp4,video/webm, at most 16.

video_api_frameworkstring

API framework the creative supports, such as vpaid_1, vpaid_2 or omid_1. Omit for none.

  • Max length: 50
text1string

Free-form forward-compatible text slot.

  • Max length: 1000
text2string

Free-form forward-compatible text slot.

  • Max length: 1000
text3string

Free-form forward-compatible text slot.

  • Max length: 1000
Example: upload
{
  "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
  "file": "(binary)",
  "video_protocols": "2,3,7",
  "video_mime_types": "video/mp4"
}

Responses

201

Created — the creative, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredCreative
Example: created
{
  "data": {
    "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "5c2e9a1f7d4b8c30",
    "status": true,
    "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
    "file_name_1": "5c2e9a1f7d4b8c30.png",
    "media_type_1": "display",
    "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "created_at": "2026-07-25T09:12:00Z",
    "updated_at": "2026-07-25T09:12:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

POST /campaign/v1/creatives/audio

Upload an audio creative

Needs dpop

multipart/form-data: one audio file (MP3/M4A/OGG), sent as an audio type or application/octet-stream. Same shape as display, minus the video bid-spec fields. Heavy rate-limit class (30/min).

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

multipart/form-data · object

PropertyTypeDescription
file requiredstring (binary)

The audio file.

adset_uuid requiredstring (uuid)

Target adset.

text1string

Free-form forward-compatible text slot.

  • Max length: 1000
text2string

Free-form forward-compatible text slot.

  • Max length: 1000
text3string

Free-form forward-compatible text slot.

  • Max length: 1000
Example: upload
{
  "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
  "file": "(binary)"
}

Responses

201

Created — the creative, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredCreative
Example: created
{
  "data": {
    "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "5c2e9a1f7d4b8c30",
    "status": true,
    "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
    "file_name_1": "5c2e9a1f7d4b8c30.png",
    "media_type_1": "display",
    "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "created_at": "2026-07-25T09:12:00Z",
    "updated_at": "2026-07-25T09:12:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

POST /campaign/v1/creatives/native

Upload a native creative

Needs dpop

multipart/form-data: one image file plus the native copy — title (≤75 chars) and description (≤120 chars), both optional. Heavy rate-limit class (30/min).

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

multipart/form-data · object

PropertyTypeDescription
file requiredstring (binary)

The image file.

adset_uuid requiredstring (uuid)

Target adset (scope native).

titlestring

Native headline copy.

  • Max length: 75
descriptionstring

Native body copy.

  • Max length: 120
text1string

Free-form forward-compatible text slot.

  • Max length: 1000
text2string

Free-form forward-compatible text slot.

  • Max length: 1000
text3string

Free-form forward-compatible text slot.

  • Max length: 1000
Example: upload
{
  "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
  "file": "(binary)",
  "title": "Fresh deals daily",
  "description": "Save up to 40% on summer gear"
}

Responses

201

Created — the creative, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredCreative
Example: created
{
  "data": {
    "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "5c2e9a1f7d4b8c30",
    "status": true,
    "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
    "file_name_1": "5c2e9a1f7d4b8c30.png",
    "media_type_1": "display",
    "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "created_at": "2026-07-25T09:12:00Z",
    "updated_at": "2026-07-25T09:12:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

POST /campaign/v1/creatives/push

Upload a push creative

Needs dpop

multipart/form-data with TWO files: icon (square 1:1, 20×20 to 400×400) and image (3:2 hero, 150×100 to 720×480), each an image type or application/octet-stream, plus optional headline (≤40 chars) and description (≤90 chars). The headline is stored and returned as the creative's title. Heavy rate-limit class (30/min).

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

multipart/form-data · object

PropertyTypeDescription
icon requiredstring (binary)

Square icon file (1:1, 20×20–400×400).

image requiredstring (binary)

Hero image file (3:2, 150×100–720×480).

adset_uuid requiredstring (uuid)

Target adset (scope push).

headlinestring

Push headline — returned as the creative's title.

  • Max length: 40
descriptionstring

Push body copy.

  • Max length: 90
text1string

Free-form forward-compatible text slot.

  • Max length: 1000
text2string

Free-form forward-compatible text slot.

  • Max length: 1000
text3string

Free-form forward-compatible text slot.

  • Max length: 1000
Example: upload
{
  "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
  "icon": "(binary)",
  "image": "(binary)",
  "headline": "Your order is waiting",
  "description": "Complete checkout to lock in your price"
}

Responses

201

Created — the creative, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredCreative
Example: created
{
  "data": {
    "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "5c2e9a1f7d4b8c30",
    "status": true,
    "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
    "file_name_1": "5c2e9a1f7d4b8c30.png",
    "media_type_1": "display",
    "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "created_at": "2026-07-25T09:12:00Z",
    "updated_at": "2026-07-25T09:12:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

POST /campaign/v1/creatives/search

Create a search (text-only) creative

Needs dpop

JSON, no media: headline (≤30 chars, required) and description (≤80 chars). The headline is stored and returned as the creative's title; both media slots stay empty on the persisted row. Standard write rate-limit class (60/min).

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
adset_uuid requiredstring (uuid)

Target adset (scope search).

headline requiredstring

Search headline — returned as the creative's title.

  • Min length: 1
  • Max length: 30
descriptionstring

Search body copy.

  • Max length: 80
text1string

Free-form forward-compatible text slot.

  • Max length: 1000
text2string

Free-form forward-compatible text slot.

  • Max length: 1000
text3string

Free-form forward-compatible text slot.

  • Max length: 1000
Example: create
{
  "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
  "headline": "Cheap flights to Lisbon",
  "description": "Compare 300+ airlines in one search"
}

Responses

201

Created — the creative, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredCreative
Example: created
{
  "data": {
    "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "5c2e9a1f7d4b8c30",
    "status": true,
    "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
    "file_name_1": "5c2e9a1f7d4b8c30.png",
    "media_type_1": "display",
    "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "created_at": "2026-07-25T09:12:00Z",
    "updated_at": "2026-07-25T09:12:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

POST /campaign/v1/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" when omitted. Standard write rate-limit class (60/min).

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
adset_uuid requiredstring (uuid)

Target adset (scope redirect).

headlinestring

Operator-facing label — returned as the creative's 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.

  • Max length: 1000
text2string

Free-form forward-compatible text slot.

  • Max length: 1000
text3string

Free-form forward-compatible text slot.

  • Max length: 1000
Example: create
{
  "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
  "headline": "Lisbon weekend pop",
  "text1": "Claim offer"
}

Responses

201

Created — the creative, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredCreative
Example: created
{
  "data": {
    "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "5c2e9a1f7d4b8c30",
    "status": true,
    "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
    "file_name_1": "5c2e9a1f7d4b8c30.png",
    "media_type_1": "display",
    "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "created_at": "2026-07-25T09:12:00Z",
    "updated_at": "2026-07-25T09:12:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

GET /campaign/v1/creatives

List creatives

Needs dpop

All creatives in your tenant, newest first — or one adset's, oldest first. Returns the full list; pagination is not applied.

Parameters

NameInTypeDescription
adset_uuidquerystring (uuid)

Only creatives inside this adset.

Responses

200

Creatives (empty array when none).

application/json · object

PropertyTypeDescription
data requiredarray of Creative
Example: list
{
  "data": [
    {
      "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
      "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
      "version": "0.0.1",
      "xxhash3": "5c2e9a1f7d4b8c30",
      "status": true,
      "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
      "cdn_uuid_2": "1f2e3d4c-5b6a-4978-8695-a4b3c2d1e0f9",
      "file_name_1": "5c2e9a1f7d4b8c30.png",
      "file_name_2": "8d1e0f9a8b7c6d5e.png",
      "media_type_1": "push",
      "media_type_2": "push",
      "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
      "title": "Your order is waiting",
      "description": "Complete checkout to lock in your price",
      "created_at": "2026-07-25T09:12:00Z",
      "updated_at": "2026-07-25T09:12:00Z"
    }
  ]
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

GET /campaign/v1/creatives/{uuid}

Get a creative

Needs dpop

One creative by UUID.

Parameters

NameInTypeDescription
uuid requiredpathstring (uuid)

Responses

200

The creative.

application/json · object

PropertyTypeDescription
data requiredCreative
Example: creative
{
  "data": {
    "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "5c2e9a1f7d4b8c30",
    "status": true,
    "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
    "cdn_uuid_2": "1f2e3d4c-5b6a-4978-8695-a4b3c2d1e0f9",
    "file_name_1": "5c2e9a1f7d4b8c30.png",
    "file_name_2": "8d1e0f9a8b7c6d5e.png",
    "media_type_1": "push",
    "media_type_2": "push",
    "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "title": "Your order is waiting",
    "description": "Complete checkout to lock in your price",
    "created_at": "2026-07-25T09:12:00Z",
    "updated_at": "2026-07-25T09:12:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

DELETE /campaign/v1/creatives/{uuid}

Delete a creative

Needs dpop

Removes the creative (its CDN files are retained by the media store).

Parameters

NameInTypeDescription
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. No body.

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within your tenant.

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

PATCH /campaign/v1/creatives/{uuid}/status

Activate / pause a creative

Needs dpop

Flips only the serving status. status is required — a body without it (including {}) is a 400 invalid_argument on status, never a silent pause.

Parameters

NameInTypeDescription
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 · StatusInput

Example: pause
{
  "status": false
}

Responses

200

Updated — the creative after the flip.

application/json · object

PropertyTypeDescription
data requiredCreative
Example: updated
{
  "data": {
    "uuid": "e7d6c5b4-a394-4c2b-8d1e-0f9a8b7c6d5e",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "5c2e9a1f7d4b8c30",
    "status": true,
    "cdn_uuid_1": "9a8b7c6d-5e4f-4a3b-2c1d-0e9f8a7b6c5d",
    "cdn_uuid_2": "1f2e3d4c-5b6a-4978-8695-a4b3c2d1e0f9",
    "file_name_1": "5c2e9a1f7d4b8c30.png",
    "file_name_2": "8d1e0f9a8b7c6d5e.png",
    "media_type_1": "push",
    "media_type_2": "push",
    "adset_uuid": "b1a2c3d4-5e6f-4a8b-9c0d-1e2f3a4b5c6d",
    "title": "Your order is waiting",
    "description": "Complete checkout to lock in your price",
    "created_at": "2026-07-25T09:12:00Z",
    "updated_at": "2026-07-25T09:12:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within your tenant.

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

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 conversion postback (see the guide up top) with the goal's uuid as gid. The list endpoint returns rolling counters per goal; the single-goal GET returns the bare definition without counters.

GET /campaign/v1/goals

List goals with conversion counters

Needs dpop

Every goal, newest first, with its rolling counters nested under counters — today / month (calendar month) / lifetime, each carrying events, cpa_events and income_sum (decimal US dollars). Note the single-goal GET /goals/{uuid} returns the bare goal without counters. Returns the full list; pagination is not applied.

Responses

200

Goals with nested counters (empty array when none).

application/json · object

PropertyTypeDescription
data requiredarray of GoalWithCounters
Example: list
{
  "data": [
    {
      "uuid": "3f2e1d0c-9b8a-4765-8432-1a2b3c4d5e6f",
      "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
      "version": "0.0.1",
      "xxhash3": "2b9d4f8a1c6e3a70",
      "name": "signup",
      "status": true,
      "created_at": "2026-06-15T12:00:00Z",
      "updated_at": "2026-07-30T09:00:00Z",
      "counters": {
        "today": {
          "events": 12,
          "cpa_events": 9,
          "income_sum": 84.5
        },
        "month": {
          "events": 310,
          "cpa_events": 244,
          "income_sum": 2114.75
        },
        "lifetime": {
          "events": 1892,
          "cpa_events": 1500,
          "income_sum": 13260
        }
      }
    }
  ]
}

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 Campaign API (or the module of the 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

POST /campaign/v1/goals

Create a goal

Needs dpop

Use the returned uuid as gid in the conversion postback (see the guide up top). A goal's name is kept trimmed and in lower case; it must be 1–120 characters with no control characters or slashes, and unique per tenant in any case: a name in use is a 400 invalid_argument on name.

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
name requiredstring

Unique goal name.

  • Min length: 1
  • Max length: 120
Example: create
{
  "name": "signup"
}

Responses

201

Created — the goal, wrapped in the envelope.

application/json · object

PropertyTypeDescription
data requiredGoal
Example: created
{
  "data": {
    "uuid": "3f2e1d0c-9b8a-4765-8432-1a2b3c4d5e6f",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "2b9d4f8a1c6e3a70",
    "name": "signup",
    "status": true,
    "created_at": "2026-06-15T12:00:00Z",
    "updated_at": "2026-06-15T12:00:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the campaigns, ad sets, creatives or goals).

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

GET /campaign/v1/goals/{uuid}

Get a goal

Needs dpop

The bare goal definition — no counters (unlike the list endpoint, whose rows nest counters).

Parameters

NameInTypeDescription
uuid requiredpathstring (uuid)

Responses

200

The goal.

application/json · object

PropertyTypeDescription
data requiredGoal
Example: goal
{
  "data": {
    "uuid": "3f2e1d0c-9b8a-4765-8432-1a2b3c4d5e6f",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "2b9d4f8a1c6e3a70",
    "name": "signup",
    "status": true,
    "created_at": "2026-06-15T12:00:00Z",
    "updated_at": "2026-06-15T12:00:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

PATCH /campaign/v1/goals/{uuid}

Update a goal (rename / status)

Needs dpop

Partial update: omitted fields are unchanged; null is treated as omitted. An empty body {} is a legal no-op. status: false pauses conversion intake — postbacks answer 410 until reactivated. The uuid (postback gid) never changes, so renaming is always safe; a name in use is a 400 on name.

Parameters

NameInTypeDescription
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
  • Min length: 1
  • Max length: 120
statusboolean
Example: pauseIntake
{
  "status": false
}

Responses

200

Updated — the goal after the patch.

application/json · object

PropertyTypeDescription
data requiredGoal
Example: updated
{
  "data": {
    "uuid": "3f2e1d0c-9b8a-4765-8432-1a2b3c4d5e6f",
    "tenant_uuid": "7f3c1e2a-9a4b-4d6c-8e1f-2b5a7c9d0e31",
    "version": "0.0.1",
    "xxhash3": "2b9d4f8a1c6e3a70",
    "name": "signup",
    "status": true,
    "created_at": "2026-06-15T12:00:00Z",
    "updated_at": "2026-06-15T12:00:00Z"
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within your tenant.

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

DELETE /campaign/v1/goals/{uuid}

Delete a goal (and its counters)

Needs dpop

Removes the goal and its counters permanently. Postbacks for its gid stop counting.

Parameters

NameInTypeDescription
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. No body.

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within your tenant.

application/problem+json · Problem

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

409

A request with this Idempotency-Key still runs (idempotency_key_in_use, with Retry-After).

application/problem+json · Problem

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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

Stats

Per-campaign delivery series over the reporting engine — auctions, bids, impressions, clicks, conversions, spend and revenue by day or by hour of day (UTC).

GET /campaign/v1/campaigns/{uuid}/stats

Per-campaign stats

Needs dpop

Delivery series for one campaign — grouped by date (default) or by hourOfDay (hour of day in UTC, aggregated across the date range). The response carries the campaign's identity (campaign.uuid / campaign.name) alongside the report so rows never need joining back to the campaign list.

Rows are paginated: page / page_size (default 1 / 500, maximum 10000; a page below 1 or a page_size outside 1 to 10000 is a 400 on it). total is the row count before pagination and totalPages is total in pages of page_size; page and pageSize echo the page served. totals is the metric sum over the whole range regardless of pagination.

Worked examples:

  • Daily series for July: GET /campaigns/{uuid}/stats?from=2026-07-01&to=2026-07-31
  • Hour-of-day profile of the same range: GET /campaigns/{uuid}/stats?from=2026-07-01&to=2026-07-31&group=hour

Heavy rate-limit class (30/min). Returns 404 for an unknown campaign before any query runs.

Parameters

NameInTypeDescription
uuid requiredpathstring (uuid)
from requiredquerystring (date)

Range start (inclusive), YYYY-MM-DD, UTC.

to requiredquerystring (date)

Range end (inclusive), YYYY-MM-DD, UTC.

groupquerystring

Row grain — one row per calendar day, or one row per hour of day (0–23, UTC) aggregated over the range.

  • One of: date, hour
  • Default: date
pagequeryinteger

1-based page over the grouped rows.

  • Default: 1
  • Minimum: 1
page_sizequeryinteger

Rows per page, 1 to 10000.

  • Default: 500
  • Minimum: 1
  • Maximum: 10000

Responses

200

The report — campaign identity, rows, totals, and the data grain that answered.

application/json · object

PropertyTypeDescription
data requiredCampaignStats
Example: Two-day series
{
  "data": {
    "campaign": {
      "uuid": "0c9b6f9e-2a41-4c8e-9f0a-6d2f9d3e8b11",
      "name": "Summer Push US"
    },
    "rows": [
      {
        "dims": {
          "date": "2026-07-01"
        },
        "auctions": 1250034,
        "bids": 431200,
        "impressions": 98700,
        "clicks": 1543,
        "spend": 182.44,
        "revenue": 240.1,
        "conversions": 27,
        "ipMatchPct": 0.98
      },
      {
        "dims": {
          "date": "2026-07-02"
        },
        "auctions": 1189020,
        "bids": 401882,
        "impressions": 91234,
        "clicks": 1388,
        "spend": 168.02,
        "revenue": 221.9,
        "conversions": 21,
        "ipMatchPct": 0.97
      }
    ],
    "appliedGroupBy": [
      "date"
    ],
    "unsupportedDims": [],
    "total": 2,
    "totals": {
      "dims": {},
      "auctions": 2439054,
      "bids": 833082,
      "impressions": 189934,
      "clicks": 2931,
      "spend": 350.46,
      "revenue": 462,
      "conversions": 48,
      "ipMatchPct": 0.975
    },
    "tier": "bi_v2_day",
    "page": 1,
    "pageSize": 500,
    "totalPages": 1
  }
}

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: fileMissing
{
  "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": "file",
      "reason": "is required"
    }
  ]
}

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 Campaign API (or the module of the 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 within 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

Dictionaries

Static targeting vocabularies: the ISO 3166-1 country list, the ISO 639 language list, and the browser, operating-system and device tokens. Campaign country_targeting and language_targeting take the numeric id values; browsers, operating_systems and devices take the tokens.

GET /campaign/v1/dictionaries/countries

Country dictionary

Needs dpop

The ISO 3166-1 country vocabulary, sorted by alpha-2 code. Use the numeric id values in campaign country_targeting. Static — cache freely.

Responses

200

All countries.

application/json · object

PropertyTypeDescription
data requiredarray of DictionaryEntry
Example: countries
{
  "data": [
    {
      "id": 840,
      "code": "US",
      "name": "United States of America"
    },
    {
      "id": 826,
      "code": "GB",
      "name": "United Kingdom of Great Britain and Northern Ireland"
    }
  ]
}

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 Campaign API (or the module of the 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

GET /campaign/v1/dictionaries/languages

Language dictionary

Needs dpop

The ISO 639 language vocabulary — the numeric id is a stable 1-based index over the alphabetical ISO 639-1 list. Use the id values in campaign language_targeting. Static — cache freely.

Responses

200

All languages.

application/json · object

PropertyTypeDescription
data requiredarray of DictionaryEntry
Example: languages
{
  "data": [
    {
      "id": 38,
      "code": "en",
      "name": "English"
    },
    {
      "id": 40,
      "code": "es",
      "name": "Spanish"
    }
  ]
}

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 Campaign API (or the module of the 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

GET /campaign/v1/dictionaries/browsers

Browser dictionary

Needs dpop

Every browser family a campaign's browsers list can match. 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. An entry may carry a numeric version qualifier: chrome:148 (major) or safari:18.1 (major.minor). A bare token means every version.

Product names. The bidder folds parser product names for you — Chrome Mobile and Chrome Mobile iOS become chrome, Mobile Safari becomes safari. Prefer the token.

A campaign's browsers are stored as you send them: a name that is none of these tokens matches no request, and narrows the campaign to no traffic.

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 Campaign API (or the module of the 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

GET /campaign/v1/dictionaries/operating-systems

Operating-system dictionary

Needs dpop

Every OS family a campaign's operating_systems list can match. 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. As for browsers, a name that is none of these tokens is stored, and matches nothing.

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 Campaign API (or the module of the 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

GET /campaign/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: any other value is a 400 on devices.

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 Campaign API (or the module of the 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 and stats). 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 reporting engine, the media store, the sign-in's checks (auth_unavailable) or the rate limiter (with Retry-After: 5). Retry with backoff.

application/problem+json · Problem

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

Documentation

The API reference, its stylesheet and the raw OpenAPI document. All are public — no token required.

GET /campaign/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 /campaign/v1/docs.css

The reference page's stylesheet

Public: no credential

Responses

200

The stylesheet.

text/css · string

GET /campaign/v1/openapi.yaml

OpenAPI specification

Public: no credential

The machine-readable source of this reference. Public — no authentication required.

Responses

200

OpenAPI 3.1 document.

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.

StatusInput

object

PropertyTypeDescription
status requiredboolean

true = active, false = paused.

DictionaryEntry

object

One row of a targeting dictionary.

PropertyTypeDescription
idinteger

The numeric wire value used in campaign targeting arrays.

codestring

ISO short code — alpha-2 country code (uppercase) or ISO 639-1 language code (lowercase).

namestring

Human-readable English name.

CampaignSummary

object

Slim list-row projection of a campaign.

PropertyTypeDescription
idinteger

Internal bookkeeping field — safe to ignore. Not accepted on writes.

uuidstring (uuid)

The campaign's public identifier.

tenant_uuidstring (uuid)

Internal bookkeeping field — safe to ignore. Not accepted on writes.

xxhash3string

Internal bookkeeping field — safe to ignore. Not accepted on writes.

namestring
statusboolean

true = active, false = paused.

typestring
  • One of: native, video_banner, pop_redirect, search, push, keyword
infrastructurestring
  • One of: rtb, xml
brand_namestring

Omitted when empty.

adset_countinteger

Number of adsets bound to the campaign.

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.

Dayparting

object

Hour-of-week allow mask. mask is EXACTLY 7 unsigned 32-bit integers, one per weekday — index 0 = Sunday … index 6 = Saturday. In each entry, bit h (0–23, least-significant bit = hour 0) set means traffic is allowed at hour h UTC on that day. Only the low 24 bits are meaningful, so each value is 0–16777215 (0xFFFFFF = all hours allowed). Example: 16711680 (0xFF0000) allows hours 16–23.

PropertyTypeDescription
mask requiredarray of integer

7 × 24-bit hour bitmasks, Sunday first.

  • Min items: 7
  • Max items: 7

CreativeBlacklistEntry

object

One (adset, creative) pair banned from serving on this campaign. The adset must 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

Opt in to adult-classified inventory.

required_privacy_policyboolean

Serve only where the app/site declares a privacy policy.

block_coppa_trafficboolean

Drop COPPA-flagged requests.

block_do_not_trackboolean

Drop requests with DNT set.

block_limit_ad_trackingboolean

Drop requests with limit-ad-tracking set.

block_mraid_inventoryboolean

Drop MRAID placements.

block_not_secure_inventoryboolean

Serve only HTTPS-capable placements.

required_top_frameboolean

Serve only top-frame placements.

required_javascriptboolean

Serve only where JavaScript is supported.

block_unknown_connection_typeboolean

Drop requests with an unknown connection type.

required_schainboolean

When true the campaign serves only onto requests carrying an OpenRTB supply chain (≥1 node), dropping anonymous-reseller / unauthorized supply.

Campaign

object

The full campaign record, echoed by create, get, update and status endpoints.

PropertyTypeDescription
idinteger

Internal bookkeeping field — safe to ignore. Not accepted on writes.

uuidstring (uuid)

The campaign's public identifier.

tenant_uuidstring (uuid)

Internal bookkeeping field — safe to ignore. Not accepted on writes.

versionstring

Internal bookkeeping field (0.0.3 for a third version) — safe to ignore. Not accepted on writes.

xxhash3string

Internal bookkeeping field — safe to ignore. Not accepted on writes.

statusboolean

true = active, false = paused. Flip via PATCH /campaigns/{uuid}/status.

is_started_by_userboolean

Whether the operator has ever started the campaign.

is_hold_by_systemboolean

Read-only. Set by the platform (e.g. billing hold) — cannot be written from this API.

namestring
  • Min length: 2
  • Max length: 150
objectivestring

Free-text objective. Omitted when empty.

  • Max length: 255
typestring

Fixed at create. Decides the pricing model — native/video_banner = CPM, the rest = CPC.

  • One of: native, video_banner, pop_redirect, search, push, keyword
brand_namestring

Omitted when empty.

  • Max length: 150
advertiser_domainstring

Omitted when empty.

  • Max length: 255
categorystring

IAB category code. Omitted when empty.

infrastructurestring

Which connection family carries the bid request.

  • One of: rtb, xml
cpmnumber

Bid price per 1000 impressions

cpcnumber

Bid price per click

max_bidnumber

Bid ceiling

prior_strengthnumber

Optimizer prior weight. Omitted when 0.

min_obsinteger

Minimum observations before the optimizer acts. Omitted when 0.

cutoff_taginteger

Optimizer tag-level cutoff. Omitted when 0.

cutoff_domaininteger

Optimizer domain-level cutoff. Omitted when 0.

tracking_urlstring (uri)

Click-tracking URL template. Omitted when empty.

  • Max length: 2048
optimizationboolean

Master switch for goal-driven optimization.

optimization_goal_uuidstring (uuid)

The goal optimization steers toward. Omitted when empty.

budget_lifetime_statusboolean

Whether the lifetime budget gate is active.

budget_lifetimeinteger

Lifetime budget

daily_budget_statusboolean

Whether the daily budget gate is active.

daily_budgetinteger

Daily budget

pacingstring

How the daily budget is spent across the day.

  • One of: asap, evenly
ip_freq_cap_statusboolean

Whether the per-IP frequency cap is active.

ip_freq_cap_countinteger

Max serves per IP within the 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

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. 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. Empty/omitted = all operating systems.

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
optimize_pricenumber

US dollars set on the optimization goal. STORED ONLY — nothing in the serving path reads it. 0 = unset.

xml_redirect_supplystring

Which XML redirect tag a pop_redirect campaign serves onto. 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

Inventory environment.

  • One of: web, inapp, both
is_active_start_dateboolean

Whether the start-date gate is active.

start_datestring (date-time)

Flight start (RFC 3339 UTC). Omitted when never set; cannot be cleared once set.

is_active_end_dateboolean

Whether the end-date gate is active.

end_datestring (date-time)

Flight end (RFC 3339 UTC), strictly after start_date. Omitted when never set; cannot be cleared once set.

is_active_daypartingboolean

Whether the dayparting mask is enforced.

daypartingDayparting
ip_block_listsarray of string

Tenant IP-list UUIDs to block.

ip_white_listsarray of string

Tenant IP-list UUIDs to allow (exclusive when non-empty).

domain_block_listsarray of string

Tenant domain-list UUIDs to block.

domain_white_listsarray of string

Tenant domain-list UUIDs to allow (exclusive when non-empty).

bundle_block_listsarray of string

Tenant bundle-list UUIDs to block (in-app).

bundle_white_listsarray of string

Tenant bundle-list UUIDs to allow (in-app, exclusive when non-empty).

adset_uuidsarray of string (uuid)

Adsets whose creatives this campaign serves.

blacklisted_creativesarray of CreativeBlacklistEntry

Per-campaign creative bans. Each entry's adset must be present in adset_uuids.

sourceid_block_listsarray of string

Source-ID list UUIDs to block.

sourceid_white_listsarray of string

Source-ID list UUIDs to allow (exclusive when non-empty).

advertisingid_block_listsarray of string

Advertising-ID (device ID) list UUIDs to block.

advertisingid_white_listsarray of string

Advertising-ID list UUIDs to allow (exclusive when non-empty).

ssp_connection_white_listsarray of string

SSP connection UUIDs to allow (exclusive when non-empty).

ssp_connection_block_listsarray of string

SSP connection UUIDs to block.

rtb_transparency_layersarray of string

Supply transparency layers the campaign accepts. Empty/omitted = all layers.

rtb_seller_typesarray of string

Seller types the campaign accepts. Empty/omitted = all.

rtb_allowed_traffic_categoriesarray of string

IAB category codes the campaign accepts inventory from. Empty/omitted = all categories.

rtb_inventory_filtersRTBInventoryFilters
created_atstring (date-time)
updated_atstring (date-time)

CampaignCreateBase

object

Fields shared by every campaign type at create time.

PropertyTypeDescription
type requiredstring

Campaign type — decides the pricing model and is fixed for life.

  • One of: native, video_banner, pop_redirect, search, push, keyword
name requiredstring

Unique per tenant

  • Min length: 2
  • Max length: 150
objectivestring
  • Max length: 255
brand_namestring
  • Max length: 150
advertiser_domainstring
  • Max length: 255
categorystring

IAB category code.

  • Max length: 255
infrastructure requiredstring

Which connection family carries the bid request. Required.

  • One of: rtb, xml
prior_strengthnumber
  • Minimum: 0
  • Maximum: 1
min_obsinteger
  • Minimum: 0
cutoff_taginteger
  • Minimum: 0
cutoff_domaininteger
  • Minimum: 0
tracking_urlstring (uri)

Required for pop_redirect and push.

  • Max length: 2048
optimizationboolean
  • Default: false
optimization_goal_uuidstring (uuid)
budget_lifetime_statusboolean
  • Default: false
budget_lifetimeinteger

INTEGER whole US dollars.

  • Minimum: 0
daily_budget_statusboolean
  • Default: false
daily_budgetinteger

INTEGER whole US dollars.

  • Minimum: 0
pacingstring

Omitted = asap.

  • One of: asap, evenly
  • Default: asap
ip_freq_cap_statusboolean
  • Default: false
ip_freq_cap_countinteger
  • Minimum: 0
ip_freq_cap_window_secinteger
  • Minimum: 0
country_targetingarray of integer

ISO 3166-1 numeric IDs — an invalid ID is a 400 on country_targeting.

language_targetingarray of integer

Language IDs from 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. 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. Empty/omitted = all operating systems.

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
optimize_pricenumber

US dollars set on the optimization goal. STORED ONLY — nothing in the serving path reads it. 0 = unset.

  • Minimum: 0
xml_redirect_supplystring

Which XML redirect tag a pop_redirect campaign serves onto. Omitted = both. Any other value is a 400.

  • One of: both, pop, direct_link
bidding_pricestring

How the CPC is used on XML redirect supply. Omitted = fixed, which 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

Omitted = both.

  • One of: web, inapp, both
  • Default: both
is_active_start_dateboolean
  • Default: false
start_datestring (date-time)
is_active_end_dateboolean
  • Default: false
end_datestring (date-time)

Must be strictly after start_date when both are set.

is_active_daypartingboolean
  • Default: false
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

Each entry must reference an adset present in adset_uuids.

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

IAB category codes — an invalid code is a 400 on rtb_allowed_traffic_categories.

rtb_inventory_filtersRTBInventoryFilters

CampaignCreateCPM

all of CampaignCreateBase | object

CPM-priced campaign types: native, video_banner. A non-zero cpc is a 400 on it.

CampaignCreateCPC

all of CampaignCreateBase | object

CPC-priced campaign types: pop_redirect, push, search, keyword. A non-zero cpm is a 400 on it.

CampaignCreate

one of CampaignCreateCPM | CampaignCreateCPC

Create payload — the type discriminator selects the pricing family.

CampaignUpdate

object

Partial update — only fields present in the body change; null is treated as omitted. Clear a list with [], a string with "". {} is a legal no-op. The pricing gate still applies: a CPM-type campaign rejects a non-zero cpc and vice-versa. is_hold_by_system is no field: a body that sends it is a 400.

PropertyTypeDescription
namestring
  • Min length: 2
  • Max length: 150
objectivestring
  • Max length: 255
brand_namestring
  • Max length: 150
advertiser_domainstring
  • Max length: 255
categorystring
  • Max length: 255
infrastructurestring
  • One of: rtb, xml
cpmnumber

Decimal US dollars. CPM types only.

  • Minimum: 0
cpcnumber

Decimal US dollars. CPC types only.

  • Minimum: 0
max_bidnumber

Decimal US dollars.

  • Minimum: 0
prior_strengthnumber
  • Minimum: 0
  • Maximum: 1
min_obsinteger
  • Minimum: 0
cutoff_taginteger
  • Minimum: 0
cutoff_domaininteger
  • Minimum: 0
tracking_urlstring (uri)
  • Max length: 2048
optimizationboolean
optimization_goal_uuidstring (uuid)
budget_lifetime_statusboolean
budget_lifetimeinteger

INTEGER whole US dollars.

  • Minimum: 0
daily_budget_statusboolean
daily_budgetinteger

INTEGER whole US dollars.

  • Minimum: 0
pacingstring
  • One of: asap, evenly
ip_freq_cap_statusboolean
ip_freq_cap_countinteger
  • Minimum: 0
ip_freq_cap_window_secinteger
  • Minimum: 0
country_targetingarray of integer
language_targetingarray of integer
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. 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. Empty/omitted = all operating systems.

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
optimize_pricenumber

US dollars set on the optimization goal. STORED ONLY — nothing in the serving path reads it. 0 = unset.

  • Minimum: 0
xml_redirect_supplystring

Which XML redirect tag a pop_redirect campaign serves onto. Any other value is a 400.

  • One of: both, pop, direct_link
bidding_pricestring

How the CPC is used on XML redirect supply. fixed 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, replaced as sent.

traffic_typestring
  • One of: web, inapp, both
is_active_start_dateboolean
start_datestring (date-time)

Cannot be cleared once set.

is_active_end_dateboolean
end_datestring (date-time)

Cannot be cleared once set. Must stay strictly after start_date.

is_active_daypartingboolean
daypartingDayparting
is_started_by_userboolean

Operator start flag.

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

Each entry must reference an adset present in adset_uuids.

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

A creative container. Campaigns bind adsets via adset_uuids.

PropertyTypeDescription
uuidstring (uuid)

The adset's public identifier.

tenant_uuidstring (uuid)

Internal bookkeeping field — safe to ignore. Not accepted on writes.

versionstring

Internal bookkeeping field — safe to ignore. Not accepted on writes.

xxhash3string

Internal bookkeeping field — safe to ignore. Not accepted on writes.

statusboolean

true = active, false = paused.

namestring
scopestring

Ad-format bucket the adset accepts.

  • One of: native, display, video, push, search, redirect
has_vectorboolean

Whether a similarity embedding exists for this adset (internal feature — safe to ignore).

created_atstring (date-time)
updated_atstring (date-time)

AdsetCreate

object

PropertyTypeDescription
name requiredstring

Unique adset name

  • Min length: 1
  • Max length: 255
scope requiredstring

Ad-format bucket — decides which creative types the adset accepts. redirect holds pop / direct-link creatives, which carry no uploaded asset.

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

Omitted = active.

  • Default: true

AdsetUpdate

object

PropertyTypeDescription
namestring
  • Min length: 1
  • Max length: 255
scopestring
  • One of: native, display, video, push, search, redirect
statusboolean

AdsetPage

object

One page of adsets.

PropertyTypeDescription
items requiredarray of Adset
total requiredinteger

Total matching rows across all pages.

page requiredinteger

The 1-based page served.

page_size requiredinteger

The page size served.

Creative

object

A creative row. File slots: display/video/audio/native use slot 1 only; push uses slot 1 for the icon and slot 2 for the hero image; search creatives have both slots empty (pure text), and a redirect creative's media_type_1 is redirect. Push and search headline inputs are stored in title.

PropertyTypeDescription
uuidstring (uuid)

The creative's public identifier.

tenant_uuidstring (uuid)

Internal bookkeeping field — safe to ignore. Not accepted on writes.

versionstring

Internal bookkeeping field — safe to ignore. Not accepted on writes.

xxhash3string

Internal bookkeeping field — safe to ignore. Not accepted on writes.

statusboolean

true = active (default for new rows), false = paused. Flip via PATCH /creatives/{uuid}/status.

cdn_uuid_1string

CDN record UUID for file slot 1. Omitted when the slot is empty.

cdn_uuid_2string

CDN record UUID for file slot 2. Omitted when the slot is empty.

file_name_1string

Object name of file slot 1 (push icon). Omitted when empty.

file_name_2string

Object name of file slot 2 (push hero image). Omitted when empty.

media_type_1string

Media type backing slot 1: display / video / audio / native / push, or redirect. Omitted when empty.

media_type_2string

Media type backing slot 2. Omitted when empty.

adset_uuidstring (uuid)

The adset this creative belongs to.

titlestring

Headline copy (native title

descriptionstring

Body copy. Omitted when empty.

text1string

Free-form forward-compatible text slot. Omitted when empty.

text2string

Free-form forward-compatible text slot. Omitted when empty.

text3string

Free-form forward-compatible text slot. Omitted when empty.

video_protocolsarray of integer

OpenRTB Video.protocols codes (VAST 2/3/4). Video creatives only; omitted when empty.

video_mime_typesarray of string

MIME types the asset is offered as. Video creatives only; omitted when empty.

video_api_frameworkstring

API framework the creative supports. Omitted when none.

created_atstring (date-time)
updated_atstring (date-time)

Goal

object

A conversion goal definition. The uuid is the postback gid and never changes.

PropertyTypeDescription
uuidstring (uuid)

The goal's public identifier — used as gid in the conversion postback.

tenant_uuidstring (uuid)

Internal bookkeeping field — safe to ignore. Not accepted on writes. (Also the tid postback parameter.)

versionstring

Internal bookkeeping field — safe to ignore. Not accepted on writes.

xxhash3string

Internal bookkeeping field — safe to ignore. Not accepted on writes.

namestring

Unique per tenant; kept trimmed and in lower case.

  • Min length: 1
  • Max length: 120
statusboolean

false pauses conversion intake — postbacks answer 410.

created_atstring (date-time)
updated_atstring (date-time)

CounterWindow

object

One time window's slice of a goal's counters. An auction can convert many times — counts are per-fire, not per-auction.

PropertyTypeDescription
eventsinteger

Total conversion fires in the window.

cpa_eventsinteger

Fires that carried an income.

income_sumnumber

Summed postback income over the window

GoalWithCounters

all of Goal | object

A goal plus its rolling counters — the list-endpoint row shape.

ReportRow

object

One aggregated bucket of the delivery report. dims carries the grouping values — on this endpoint either date (YYYY-MM-DD) or hourOfDay ("0".."23", UTC). dimLabels, when present, maps the same keys to human-readable display names (relevant for entity-valued dimensions on other report surfaces; for date/hour rows it is typically absent — render dimLabels[k] ?? dims[k]).

PropertyTypeDescription
dimsobject of string

Grouping dimension → wire value.

dimLabelsobject of string

Optional grouping dimension → display label. Prefer over dims for display when present.

auctionsinteger

Bid requests examined for this campaign.

bidsinteger

Bids submitted.

impressionsinteger

Impressions won and served.

clicksinteger
spendnumber

Media cost

revenuenumber

Attributed revenue

conversionsinteger

Conversion postbacks attributed to the bucket.

ipMatchPctnumber or null

Share (0..1) of device-fired callback events in this bucket whose peer IP did not provably contradict the bid request's claimed device IP — a traffic-legitimacy signal. null / absent when the bucket produced no device-fired events.

  • Minimum: 0
  • Maximum: 1

CampaignStats

object

The per-campaign stats payload — campaign identity plus the report.

PropertyTypeDescription
campaignobject

The campaign the series belongs to.

PropertyTypeDescription
uuidstring (uuid)
namestring
rowsarray of ReportRow

One row per group bucket, paginated. Empty array when the range has no data.

appliedGroupByarray of string

The grouping the server actually used (echo of your group choice).

unsupportedDimsarray of string

Dimensions the server had to drop, with human-readable warnings. Empty on this endpoint's fixed groupings.

unsupportedMetricsarray of string

Metrics the table that answered cannot measure (render them as unknown, not 0). Omitted when none.

totalinteger

Distinct row buckets matching the range

totalsall of ReportRow

Metric sums over the whole range (ignores grouping and pagination). Its dims is empty.

tierstring

The data grain that answered (such as bi_v2_day) — surfaced for debugging.

pageinteger

The page served (1-based).

pageSizeinteger

The page size served.

totalPagesinteger

total in pages of pageSize (rounded up); 0 when nothing matches.