Bản lưu ngày / Snapshot of 2026-11-24 · Xem bản mới nhất / See the latest version
WanduraDocsBeta
BetaThese docs are in beta and change often. Something wrong, unclear or missing? Tell us.
API reference

Report an ad

Markdown
On this page

Tells Wandura that an ad on an ad platform uses one of your creatives, and what the platform decided about it. Call it when your marketing system launches the ad, stops it, or gets the platform's review result.

POST /api/delivery/v1/creatives/{id}/ads

Scope: creatives:export or creatives:read

Description

How this fits in a sync: see Report your ads back.

  • One ad is identified by platform + ad_id. Report the same ad again to update it: 201 the first time, 200 after. It is never duplicated.
  • Fields you leave out keep their stored value, and null clears one (review_status null is stored as unknown). Unknown fields are refused.
  • Report again when the ad stops (ended_at) and when the platform reviews it (review_status, review_reason, reviewed_at): Wandura compares the real review results with its own policy scan of the creative (policy.level).
  • A key with creatives:export can update every ad of your creatives. A key with only creatives:read can update only the ads it reported itself: an ad another key reported returns 409 4093.
  • You can report ads only on a creative your key can read. Any other ID returns the same 404 4040 as Get a creative.
  • At most 1,000 ads per creative: past that, a new ad returns 422 4224, and updates of the ads already reported still work.
  • The body is a JSON object of at most 16 KB. An invalid body returns 422 4223, with the field named in message. ended_at before started_at, after merging with the stored values, is the same error.
  • A report does not change the creative's updated_at. Read the ads back with List the ads of a creative, or the summary in the record's ads block.
  • Shares the rate-limit counter of the other creatives endpoints. After a 503, reporting the same ad again is safe.

Request parameters

Name In Type Required Description
Authorization header string Yes Bearer <API key> for a key with the creatives:export or creatives:read scope.
Content-Type header string Recommended application/json. The body must be JSON.
id path string Yes The creative_id of the creative. A value that is not a UUID returns 404.
Wandura-Version header string No Optional. A dated API version (YYYY-MM-DD) to use for this request instead of the version pinned to your API key. Unknown or retired values answer 400 with error_code unsupported_version.
platform body string Yes
ad_id body string Yes The ad's ID on the platform.
ad_account_id body string or null No
campaign_id body string or null No
ad_set_id body string or null No
started_at body integer or null No Unix time (seconds) when the ad was switched on. From 2020-01-01 to one year from now.
ended_at body integer or null No Unix time (seconds) when the ad was switched off. Not before started_at.
review_status body string or null No The platform's review result. null is stored as unknown.
review_reason body string or null No The platform's reason, 1–1,000 characters (trimmed).
reviewed_at body integer or null No Unix time (seconds) of the platform's review. Not in the future.

Request example

curl -s -X POST https://www.wandura.ai/api/delivery/v1/creatives/5e1b7c3a-2d4f-4a6b-9c8d-0e1f2a3b4c5d/ads \
  -H "Authorization: Bearer $WANDURA_API_KEY" -H "Content-Type: application/json" \
  -d '{"platform":"meta","ad_id":"120210000000000001","ad_account_id":"act_1234567890","campaign_id":"120210000000000100","ad_set_id":"120210000000000200","started_at":1790650000,"review_status":"approved","reviewed_at":1790652000}'

Response

201 Created: the ad is new. 200 OK: the ad was already reported and is updated. Both return the stored ad:

Field Type Description
code integer 0.
message string "ok".
data object An ad on an ad platform that a marketing system reported as using this creative, with the platform's review result.
data.id string (UUID) Wandura's ID of this report.
data.platform string The ad platform.
data.ad_id string The ad's ID on the platform. Together with platform it identifies the ad.
data.ad_account_id string or null The ad account ID on the platform (for Meta, act_…).
data.campaign_id string or null The campaign ID on the platform.
data.ad_set_id string or null The ad set (ad group) ID on the platform.
data.started_at integer or null Unix time (seconds) when the ad was switched on, as reported.
data.ended_at integer or null Unix time (seconds) when the ad was switched off; null while it runs.
data.running boolean true when the ad was switched on (started_at is in the past), is not switched off yet (ended_at is null or in the future), and was not rejected by the platform.
data.review_status string The platform's review result of the ad, as reported. unknown until a marketing system reports it.
data.review_reason string or null The platform's reason, as reported (for example the policy named in a rejection). Up to 1,000 characters.
data.reviewed_at integer or null Unix time (seconds) of the platform's review, as reported.
data.created_at integer Unix time (seconds) of the first report of this ad.
data.updated_at integer Unix time (seconds) of the latest report of this ad.
server_time integer Server time in Unix epoch seconds.

Response example

{
  "code": 0,
  "message": "ok",
  "data": {
    "id": "9a4f2c1e-7b3d-4e5f-8a6b-1c2d3e4f5a6b",
    "creative_id": "5e1b7c3a-2d4f-4a6b-9c8d-0e1f2a3b4c5d",
    "platform": "meta",
    "ad_id": "120210000000000001",
    "ad_account_id": "act_1234567890",
    "campaign_id": "120210000000000100",
    "ad_set_id": "120210000000000200",
    "started_at": 1790650000,
    "ended_at": null,
    "running": true,
    "review_status": "approved",
    "review_reason": null,
    "reviewed_at": 1790652000,
    "created_at": 1790650100,
    "updated_at": 1790650100
  },
  "server_time": 1790650100
}

Response headers

Header Responses Description
Wandura-API-Status all API status. beta today, on every response, success or error.
Wandura-Version 200, 201 The dated API version (YYYY-MM-DD) this response was produced in: the version pinned to your API key, or the one you sent in the Wandura-Version request header. Keys created before dated versions existed use 2026-10-02.
Wandura-Request-Id 200, 201 An opaque id for this request (req_ followed by 26 characters). Every response carries it, errors included, and error bodies repeat it as request_id. Log it, and quote it when you contact Wandura about a request: it finds the exact request in our logs. Do not parse it.
Cache-Control 200, 201 Always no-store. Do not cache these responses in shared caches.
Retry-After 429 Seconds to wait before retrying. Sent with 429 and with retryable 503 responses.

Errors

Status code When
400 none The Wandura-Version header, or the version pinned to your key, is unknown or retired.
401 4010 The Authorization: Bearer header is missing.
401 4011 The key is unknown or revoked.
403 4030 The key has neither the creatives:export nor the creatives:read scope.
403 4031 Your organisation's access is suspended.
404 4040 No approved creative with this ID exists for your organisation, or the ID is not a UUID. You cannot report ads on creatives your key cannot read.
409 4093 ad_reported_by_another_key: a key with only the creatives:read scope can update only the ads it reported itself. Check platform and ad_id.
422 4223 The body is not a JSON object of at most 16 KB, has an unknown field, or a field is invalid (message names it). ended_at before started_at (after merging with the stored values) is also this error.
422 4224 The creative already has 1,000 reported ads; new ads are refused (updates still work).
429 none Rate limit reached. Flat body with error_code rate_limited, not the envelope.
503 5030 The report could not be stored right now. Retry with backoff.
503 5031 Wandura could not verify the API key in time. The key is not wrong: retry with backoff.

See Errors for what to do in each case.

Updated 19 Nov 2026 · Change history (1)

↑↓ selectEnter openEsc close

Send feedback

Your message goes straight to the Wandura team. It includes the address of this page.

0 / 4000