Update a single ad
Meta supports status, parent-ad-set budget, targeting, creative replacement and rename. Budget and targeting intentionally write the parent ad set, so they affect sibling ads; the local sibling documents are refreshed together. Targeting is merged over the last discovery snapshot so omitted Meta fields are preserved.
Creative replacement creates a new immutable creative and then repoints the ad. The old creative remains for reporting. Because creative creation is not idempotent, Idempotency-Key is required whenever the creative field is present; an ambiguous provider outcome is fenced instead of retried.
Moving an ad with adSetId is still rejected: Meta does not permit it. Google/LinkedIn/TikTok lifecycle writes remain explicit 501 gates until a real provider adapter primitive exists.
Authentication
The following security requirement applies to this operation.
Read the authentication guideParameters
adIdpathrequiredThe platform's own ad id.
adIdstringrequiredOriginal schema
{
"type": "string"
}Idempotency-KeyheaderoptionalClient-generated unique key. Required when replacing creative; optional for the idempotent fields.
Idempotency-Keystring- maxLength
255
Original schema
{
"type": "string",
"maxLength": 255
}Request body
Bodyobjectrequired
- additionalProperties
false
statusstring- enum
[ "active", "paused" ]
budgetobject
- required
[ "amount", "type" ]
amountnumberrequired- minimum
1
typestringrequired- enum
[ "daily", "lifetime" ]
targetingobject
keywordsarray
Google only.
Array itemstringnegativeKeywordsarray
Google only.
Array itemstringageMinnumber- minimum
13- maximum
65
ageMaxnumber- minimum
13- maximum
65
countriesarray
Array itemstringinterestsarray
Array itemobject
advantage_audiencenumber- enum
[ 0, 1 ]
creativeobject
- required
[ "headline", "body", "callToAction", "linkUrl", "imageUrl" ]
headlinestringrequiredbodystringrequiredcallToActionstringrequired- enum
[ "LEARN_MORE", "SHOP_NOW", "SIGN_UP", "BOOK_TRAVEL", "CONTACT_US", "DOWNLOAD", "GET_OFFER", "GET_QUOTE", "SUBSCRIBE", "WATCH_MORE", "ADD_TO_CART", "APPLY_NOW", "BOOK_NOW", "BUY_TICKETS", "DONATE", "DONATE_NOW", "GET_DIRECTIONS", "GET_SHOWTIMES", "LISTEN_NOW", "ORDER_NOW", "PLAY_GAME", "REQUEST_TIME", "SEE_MENU", "START_ORDER", "INSTALL_MOBILE_APP", "USE_APP", "REGISTER", "JOIN", "ATTEND", "REQUEST_DEMO", "VIEW_QUOTE", "APPLY", "SEE_MORE", "BUY_NOW" ]
linkUrlstringrequired- format
uri
imageUrlstringrequired- format
uri
namestring- maxLength
255
platformstringOptional local disambiguator. Inferred when the platform ad id is unique for this tenant.
Original schema
{
"$ref": "#/components/schemas/UpdateAdDto"
}Responses
Status codes and shapes declared for this operation. Read each description for the meaning of that response.
200Response schema
Response 200object
- required
[ "ad", "message" ]
adobjectrequired
- required
[ "id", "platform", "name", "status", "configuredStatus", "reviewStatus", "rejectionReason", "adType", "creativeType", "goal", "isExternal", "platformAdId", "platformAdAccountId", "platformCampaignId", "platformAdSetId", "campaignName", "adSetName", "platformObjective", "optimizationGoal", "bidStrategy", "bidAmountMinorUnits", "currency", "effectiveObjectStoryId", "effectiveInstagramMediaId", "accountId", "platformCreatedAt", "lastSyncedAt", "metrics" ]
idstringrequiredZumpo ad document id (24-char lowercase hex).
platformstringrequirednamestringrequiredstatusstringrequiredDelivery status, from the platform's effective status.
- enum
[ "active", "paused", "pending_review", "rejected", "completed", "cancelled", "error" ]
configuredStatusstringrequiredThe ad's own on/off toggle as configured on the platform.
- nullable
true
reviewStatusstringrequired- nullable
true
rejectionReasonstringrequired- nullable
true
adTypestringrequired- enum
[ "boost", "standalone" ]
creativeTypestringrequiredNull when the creative carries no classifiable media.
- nullable
true- enum
[ "carousel", "video", "document", "image" ]
goalstringrequiredNull when the objective is UNKNOWN -- an ad whose campaign block the platform did not return has no objective to derive one from.
- nullable
true
isExternalbooleanrequiredTrue for ads discovered from the platform ad manager.
platformAdIdstringrequiredplatformAdAccountIdstringrequiredplatformCampaignIdstringrequired- nullable
true
platformAdSetIdstringrequired- nullable
true
campaignNamestringrequired- nullable
true
adSetNamestringrequired- nullable
true
platformObjectivestringrequired- nullable
true
optimizationGoalstringrequired- nullable
true
bidStrategystringrequired- nullable
true
bidAmountMinorUnitsnumberrequiredBid amount in the ad account's SMALLEST currency unit, unconverted, paired with currency so the conversion is always available to the caller. Meta's per-currency offset IS known (measured 2026-08-13 from the platform's own currency table), so the unconverted value is a choice, not a gap: a projection reports what the platform stored, and dividing here would make the number this API's arithmetic rather than the platform's reading.
- nullable
true
currencystringrequiredISO 4217 code for every money field on this ad.
- nullable
true
effectiveObjectStoryIdstringrequired- nullable
true
effectiveInstagramMediaIdstringrequired- nullable
true
accountIdstringrequiredplatformCreatedAtstringrequired- nullable
true
lastSyncedAtstringrequiredWhen this document was last refreshed from the platform.
- nullable
true
metricsobjectrequired
- required
[ "spend", "impressions", "clicks", "engagement", "conversions", "ctr", "cpc", "cpm", "costPerConversion", "actions", "actionValues", "purchaseValue", "roas", "costPerAction", "videoPlayActions", "video30SecWatchedActions", "videoThruplayWatchedActions", "videoP25WatchedActions", "videoP50WatchedActions", "videoP75WatchedActions", "videoP95WatchedActions", "videoP100WatchedActions", "videoAvgTimeWatchedSeconds", "videoAvgTimeWatchedActions", "costPerThruplay", "funnel", "engagementBreakdown" ]
spendnumberrequiredTotal spend over the requested date range, in the ad account currency (see currency). Never normalised to USD.
impressionsnumberrequiredclicksnumberrequiredengagementnumberrequiredconversionsnumberrequiredConversion events over the range. FRACTIONAL: attribution splits one conversion across touchpoints, so values like 0.347 are normal.
ctrnumberrequiredClick-through rate (%). 0 when impressions is 0.
cpcnumberrequiredCost per click. 0 when clicks is 0.
cpmnumberrequiredCost per 1000 impressions. 0 when impressions is 0.
costPerConversionnumberrequiredDerived spend / conversions. 0 when conversions is 0.
actionsobjectrequired
Per-action-type counts summed over the range, keyed by the platform own action-type names. Keys differ by platform, so branch on the ad platform.
Additional propertynumberactionValuesobjectrequired
Monetary mirror of actions, in the ad account currency. Meta only; other platforms report an empty object.
Additional propertynumberpurchaseValuenumberrequiredPurchase revenue selected from the first reported purchase action family.
roasnumberrequiredpurchaseValue / spend; 0 when spend is 0.
costPerActionobjectrequired
Additional propertynumbervideoPlayActionsnumberrequiredMeta video ads only; 0 elsewhere.
video30SecWatchedActionsnumberrequiredViews lasting at least 30 seconds.
videoThruplayWatchedActionsnumberrequiredThruPlays. Meta video ads only; 0 elsewhere.
videoP25WatchedActionsnumberrequiredvideoP50WatchedActionsnumberrequiredvideoP75WatchedActionsnumberrequiredvideoP95WatchedActionsnumberrequiredvideoP100WatchedActionsnumberrequiredvideoAvgTimeWatchedSecondsnumberrequiredAverage seconds watched per play, aggregated as a PLAY-WEIGHTED mean (total watch time / total plays), never a mean of daily means.
videoAvgTimeWatchedActionsnumberrequiredCanonical Zernio alias for average seconds watched per play.
costPerThruplaynumberrequiredspend / ThruPlays; 0 when no ThruPlays were reported.
funnelobjectrequired
- required
[ "landingPageViews", "contentViews", "searches", "wishlistAdds", "cartAdds", "checkoutsInitiated", "paymentInfoAdds", "purchases", "leads", "registrationsCompleted", "appInstalls", "messagingConversationsStarted", "messagingFirstReplies" ]
landingPageViewsnumberrequiredcontentViewsnumberrequiredsearchesnumberrequiredwishlistAddsnumberrequiredcartAddsnumberrequiredcheckoutsInitiatednumberrequiredpaymentInfoAddsnumberrequiredpurchasesnumberrequiredleadsnumberrequiredregistrationsCompletednumberrequiredappInstallsnumberrequiredmessagingConversationsStartednumberrequiredmessagingFirstRepliesnumberrequiredengagementBreakdownobjectrequired
- required
[ "postEngagement", "pageEngagement", "reactions", "comments", "shares", "saves", "pageLikes", "videoViews", "linkClicks" ]
postEngagementnumberrequiredpageEngagementnumberrequiredreactionsnumberrequiredcommentsnumberrequiredsharesnumberrequiredsavesnumberrequiredpageLikesnumberrequiredvideoViewsnumberrequiredlinkClicksnumberrequiredmessagestringrequiredOriginal schema
{
"$ref": "#/components/schemas/UpdateAdResponseDto"
}400Response schema
Response 400object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}401Response schema
Response 401object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}403Response schema
Response 403object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}404Response schema
Response 404object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}409Response schema
Response 409object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}422Response schema
Response 422object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}429Response schema
Response 429object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}Response headers
X-RateLimit-Limit
Request ceiling that applied to this request. Authenticated requests use the team tier ceiling; unauthenticated identity endpoints use a per-IP ceiling. Usage is measured continuously against a trailing period rather than tallied and cleared at a boundary, so the full ceiling never becomes available again in one step.
X-RateLimit-Limitinteger- minimum
1
Original schema
{
"type": "integer",
"minimum": 1
}X-RateLimit-Remaining
Requests still allowed against that ceiling; never negative. On a 429 produced by the request throttler this is 0. Such a refused request is not counted, so retrying too early costs you no capacity and does not push your recovery further away.
X-RateLimit-Remaininginteger- minimum
0
Original schema
{
"type": "integer",
"minimum": 0
}X-RateLimit-Reset
Absolute Unix epoch time, in SECONDS, at which the current counting period turns over. This is NOT the number of seconds left: subtract the current time to obtain that. It is also NOT the moment your capacity returns: earlier usage keeps weighing on the ceiling across the turnover, so after a 429 wait for Retry-After instead, which is usually later than this value.
X-RateLimit-Resetinteger- format
int64- minimum
0
Original schema
{
"type": "integer",
"format": "int64",
"minimum": 0
}Retry-After
Seconds to wait before retrying. Always a positive integer delta (never an HTTP-date), at least 1. On a 429 from the request throttler it is the wait until your usage actually drops back under the ceiling; prefer it over any delay you compute from X-RateLimit-Reset.
Retry-Afterinteger- minimum
1- maximum
86400
Original schema
{
"type": "integer",
"minimum": 1,
"maximum": 86400
}500Server error
Server error
Response 500object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}501Response schema
Response 501object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}502Platform error
Platform error
Response 502object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}503Service unavailable
Service unavailable
Response 503object
- required
[ "error", "type", "code", "docUrl", "requestId" ]
errorstringrequiredHuman-readable message. UNSTABLE — do not branch on it.
- example
WhatsApp session window expired; use a template message.
typestringrequiredStable error category (does not change across versions).
- enum
[ "invalid_request_error", "authentication_error", "permission_error", "not_found", "conflict", "rate_limit_error", "platform_error", "platform_rejected", "account_disconnected", "media_error", "api_error" ]- example
invalid_request_error
codestringrequiredStable machine-readable code.
- example
whatsapp_window_expired
paramstringOffending parameter, present only when relevant.
- example
body
docUrlstringrequiredhttps://docs.zumpo.io/errors/{code}
- example
https://docs.zumpo.io/errors/whatsapp_window_expired
requestIdstringrequiredSupport correlation id: req_ + 16 hex.
- example
req_7f3a9c2e1b8d4056
detailsobjectAdditional structured context, present only when an error has more to say than a single param can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.
- additionalProperties
true- example
{ "created": [ { "kind": "campaign", "platformId": "120210000000000001" }, { "kind": "adSet", "platformId": "120210000000000002" } ] }
Original schema
{
"$ref": "#/components/schemas/ZumpoErrorDto"
}Referenced schemas
Original local definitions used by this operation. Recursive and deeply nested references can be inspected here without expanding them repeatedly.
UpdateAdDto
#/components/schemas/UpdateAdDto
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"active",
"paused"
]
},
"budget": {
"$ref": "#/components/schemas/UpdateAdBudgetDto"
},
"targeting": {
"$ref": "#/components/schemas/UpdateAdTargetingDto"
},
"creative": {
"$ref": "#/components/schemas/UpdateAdReplacementCreativeDto"
},
"name": {
"type": "string",
"maxLength": 255
},
"platform": {
"type": "string",
"description": "Optional local disambiguator. Inferred when the platform ad id is unique for this tenant."
}
},
"additionalProperties": false
}UpdateAdBudgetDto
#/components/schemas/UpdateAdBudgetDto
{
"type": "object",
"properties": {
"amount": {
"type": "number",
"minimum": 1
},
"type": {
"type": "string",
"enum": [
"daily",
"lifetime"
]
}
},
"required": [
"amount",
"type"
]
}UpdateAdTargetingDto
#/components/schemas/UpdateAdTargetingDto
{
"type": "object",
"properties": {
"keywords": {
"description": "Google only.",
"type": "array",
"items": {
"type": "string"
}
},
"negativeKeywords": {
"description": "Google only.",
"type": "array",
"items": {
"type": "string"
}
},
"ageMin": {
"type": "number",
"minimum": 13,
"maximum": 65
},
"ageMax": {
"type": "number",
"minimum": 13,
"maximum": 65
},
"countries": {
"type": "array",
"items": {
"type": "string"
}
},
"interests": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UpdateAdInterestDto"
}
},
"advantage_audience": {
"type": "number",
"enum": [
0,
1
]
}
}
}UpdateAdInterestDto
#/components/schemas/UpdateAdInterestDto
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
]
}UpdateAdReplacementCreativeDto
#/components/schemas/UpdateAdReplacementCreativeDto
{
"type": "object",
"properties": {
"headline": {
"type": "string"
},
"body": {
"type": "string"
},
"callToAction": {
"type": "string",
"enum": [
"LEARN_MORE",
"SHOP_NOW",
"SIGN_UP",
"BOOK_TRAVEL",
"CONTACT_US",
"DOWNLOAD",
"GET_OFFER",
"GET_QUOTE",
"SUBSCRIBE",
"WATCH_MORE",
"ADD_TO_CART",
"APPLY_NOW",
"BOOK_NOW",
"BUY_TICKETS",
"DONATE",
"DONATE_NOW",
"GET_DIRECTIONS",
"GET_SHOWTIMES",
"LISTEN_NOW",
"ORDER_NOW",
"PLAY_GAME",
"REQUEST_TIME",
"SEE_MENU",
"START_ORDER",
"INSTALL_MOBILE_APP",
"USE_APP",
"REGISTER",
"JOIN",
"ATTEND",
"REQUEST_DEMO",
"VIEW_QUOTE",
"APPLY",
"SEE_MORE",
"BUY_NOW"
]
},
"linkUrl": {
"type": "string",
"format": "uri"
},
"imageUrl": {
"type": "string",
"format": "uri"
}
},
"required": [
"headline",
"body",
"callToAction",
"linkUrl",
"imageUrl"
]
}UpdateAdResponseDto
#/components/schemas/UpdateAdResponseDto
{
"type": "object",
"properties": {
"ad": {
"$ref": "#/components/schemas/AdDto"
},
"message": {
"type": "string"
}
},
"required": [
"ad",
"message"
]
}AdDto
#/components/schemas/AdDto
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Zumpo ad document id (24-char lowercase hex)."
},
"platform": {
"type": "string"
},
"name": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"active",
"paused",
"pending_review",
"rejected",
"completed",
"cancelled",
"error"
],
"description": "Delivery status, from the platform's effective status."
},
"configuredStatus": {
"type": "string",
"nullable": true,
"description": "The ad's own on/off toggle as configured on the platform."
},
"reviewStatus": {
"type": "string",
"nullable": true
},
"rejectionReason": {
"type": "string",
"nullable": true
},
"adType": {
"type": "string",
"enum": [
"boost",
"standalone"
]
},
"creativeType": {
"type": "string",
"nullable": true,
"enum": [
"carousel",
"video",
"document",
"image"
],
"description": "Null when the creative carries no classifiable media."
},
"goal": {
"type": "string",
"nullable": true,
"description": "Null when the objective is UNKNOWN -- an ad whose campaign block the platform did not return has no objective to derive one from."
},
"isExternal": {
"type": "boolean",
"description": "True for ads discovered from the platform ad manager."
},
"platformAdId": {
"type": "string"
},
"platformAdAccountId": {
"type": "string"
},
"platformCampaignId": {
"type": "string",
"nullable": true
},
"platformAdSetId": {
"type": "string",
"nullable": true
},
"campaignName": {
"type": "string",
"nullable": true
},
"adSetName": {
"type": "string",
"nullable": true
},
"platformObjective": {
"type": "string",
"nullable": true
},
"optimizationGoal": {
"type": "string",
"nullable": true
},
"bidStrategy": {
"type": "string",
"nullable": true
},
"bidAmountMinorUnits": {
"type": "number",
"nullable": true,
"description": "Bid amount in the ad account's SMALLEST currency unit, unconverted, paired with `currency` so the conversion is always available to the caller. Meta's per-currency offset IS known (measured 2026-08-13 from the platform's own currency table), so the unconverted value is a choice, not a gap: a projection reports what the platform stored, and dividing here would make the number this API's arithmetic rather than the platform's reading."
},
"currency": {
"type": "string",
"nullable": true,
"description": "ISO 4217 code for every money field on this ad."
},
"effectiveObjectStoryId": {
"type": "string",
"nullable": true
},
"effectiveInstagramMediaId": {
"type": "string",
"nullable": true
},
"accountId": {
"type": "string"
},
"platformCreatedAt": {
"type": "string",
"nullable": true
},
"lastSyncedAt": {
"type": "string",
"nullable": true,
"description": "When this document was last refreshed from the platform."
},
"metrics": {
"$ref": "#/components/schemas/AdMetricsDto"
}
},
"required": [
"id",
"platform",
"name",
"status",
"configuredStatus",
"reviewStatus",
"rejectionReason",
"adType",
"creativeType",
"goal",
"isExternal",
"platformAdId",
"platformAdAccountId",
"platformCampaignId",
"platformAdSetId",
"campaignName",
"adSetName",
"platformObjective",
"optimizationGoal",
"bidStrategy",
"bidAmountMinorUnits",
"currency",
"effectiveObjectStoryId",
"effectiveInstagramMediaId",
"accountId",
"platformCreatedAt",
"lastSyncedAt",
"metrics"
]
}AdMetricsDto
#/components/schemas/AdMetricsDto
{
"type": "object",
"properties": {
"spend": {
"type": "number",
"description": "Total spend over the requested date range, in the ad account currency (see `currency`). Never normalised to USD."
},
"impressions": {
"type": "number"
},
"clicks": {
"type": "number"
},
"engagement": {
"type": "number"
},
"conversions": {
"type": "number",
"description": "Conversion events over the range. FRACTIONAL: attribution splits one conversion across touchpoints, so values like 0.347 are normal."
},
"ctr": {
"type": "number",
"description": "Click-through rate (%). 0 when impressions is 0."
},
"cpc": {
"type": "number",
"description": "Cost per click. 0 when clicks is 0."
},
"cpm": {
"type": "number",
"description": "Cost per 1000 impressions. 0 when impressions is 0."
},
"costPerConversion": {
"type": "number",
"description": "Derived spend / conversions. 0 when conversions is 0."
},
"actions": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "Per-action-type counts summed over the range, keyed by the platform own action-type names. Keys differ by platform, so branch on the ad platform."
},
"actionValues": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "Monetary mirror of actions, in the ad account currency. Meta only; other platforms report an empty object."
},
"purchaseValue": {
"type": "number",
"description": "Purchase revenue selected from the first reported purchase action family."
},
"roas": {
"type": "number",
"description": "purchaseValue / spend; 0 when spend is 0."
},
"costPerAction": {
"type": "object",
"additionalProperties": {
"type": "number"
}
},
"videoPlayActions": {
"type": "number",
"description": "Meta video ads only; 0 elsewhere."
},
"video30SecWatchedActions": {
"type": "number",
"description": "Views lasting at least 30 seconds."
},
"videoThruplayWatchedActions": {
"type": "number",
"description": "ThruPlays. Meta video ads only; 0 elsewhere."
},
"videoP25WatchedActions": {
"type": "number"
},
"videoP50WatchedActions": {
"type": "number"
},
"videoP75WatchedActions": {
"type": "number"
},
"videoP95WatchedActions": {
"type": "number"
},
"videoP100WatchedActions": {
"type": "number"
},
"videoAvgTimeWatchedSeconds": {
"type": "number",
"description": "Average seconds watched per play, aggregated as a PLAY-WEIGHTED mean (total watch time / total plays), never a mean of daily means."
},
"videoAvgTimeWatchedActions": {
"type": "number",
"description": "Canonical Zernio alias for average seconds watched per play."
},
"costPerThruplay": {
"type": "number",
"description": "spend / ThruPlays; 0 when no ThruPlays were reported."
},
"funnel": {
"$ref": "#/components/schemas/AdFunnelCountsDto"
},
"engagementBreakdown": {
"$ref": "#/components/schemas/AdEngagementCountsDto"
}
},
"required": [
"spend",
"impressions",
"clicks",
"engagement",
"conversions",
"ctr",
"cpc",
"cpm",
"costPerConversion",
"actions",
"actionValues",
"purchaseValue",
"roas",
"costPerAction",
"videoPlayActions",
"video30SecWatchedActions",
"videoThruplayWatchedActions",
"videoP25WatchedActions",
"videoP50WatchedActions",
"videoP75WatchedActions",
"videoP95WatchedActions",
"videoP100WatchedActions",
"videoAvgTimeWatchedSeconds",
"videoAvgTimeWatchedActions",
"costPerThruplay",
"funnel",
"engagementBreakdown"
]
}AdFunnelCountsDto
#/components/schemas/AdFunnelCountsDto
{
"type": "object",
"properties": {
"landingPageViews": {
"type": "number"
},
"contentViews": {
"type": "number"
},
"searches": {
"type": "number"
},
"wishlistAdds": {
"type": "number"
},
"cartAdds": {
"type": "number"
},
"checkoutsInitiated": {
"type": "number"
},
"paymentInfoAdds": {
"type": "number"
},
"purchases": {
"type": "number"
},
"leads": {
"type": "number"
},
"registrationsCompleted": {
"type": "number"
},
"appInstalls": {
"type": "number"
},
"messagingConversationsStarted": {
"type": "number"
},
"messagingFirstReplies": {
"type": "number"
}
},
"required": [
"landingPageViews",
"contentViews",
"searches",
"wishlistAdds",
"cartAdds",
"checkoutsInitiated",
"paymentInfoAdds",
"purchases",
"leads",
"registrationsCompleted",
"appInstalls",
"messagingConversationsStarted",
"messagingFirstReplies"
]
}ZumpoErrorDto
#/components/schemas/ZumpoErrorDto
{
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "Human-readable message. UNSTABLE — do not branch on it.",
"example": "WhatsApp session window expired; use a template message."
},
"type": {
"type": "string",
"description": "Stable error category (does not change across versions).",
"enum": [
"invalid_request_error",
"authentication_error",
"permission_error",
"not_found",
"conflict",
"rate_limit_error",
"platform_error",
"platform_rejected",
"account_disconnected",
"media_error",
"api_error"
],
"example": "invalid_request_error"
},
"code": {
"type": "string",
"description": "Stable machine-readable code.",
"example": "whatsapp_window_expired"
},
"param": {
"type": "string",
"description": "Offending parameter, present only when relevant.",
"example": "body"
},
"docUrl": {
"type": "string",
"description": "https://docs.zumpo.io/errors/{code}",
"example": "https://docs.zumpo.io/errors/whatsapp_window_expired"
},
"requestId": {
"type": "string",
"description": "Support correlation id: req_ + 16 hex.",
"example": "req_7f3a9c2e1b8d4056"
},
"details": {
"type": "object",
"additionalProperties": true,
"description": "Additional structured context, present only when an error has more to say than a single `param` can carry. Values are generated by this API (identifiers, node names); provider text and raw upstream payloads are never placed here. Example: a multi-step ad create that fails part-way performs no compensating delete and returns what it already built, so the caller can attach to the surviving ad set instead of losing it.",
"example": {
"created": [
{
"kind": "campaign",
"platformId": "120210000000000001"
},
{
"kind": "adSet",
"platformId": "120210000000000002"
}
]
}
}
},
"required": [
"error",
"type",
"code",
"docUrl",
"requestId"
]
}