ads

POST /v1/ads/connections/{connection_id}/budget-decisions

Record the customer's own budget for one campaign (za-84).

All ads endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. The key must carry the ads.manage permission; a key without it is refused with 403, not 404.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/ads/connections/{connection_id}/budget-decisions \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "campaign_id": <string>, "budget_micros": <integer>, "kind": <string<budget, test>>, "reason": <string> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Gated on ads.manage; audit action ads.own_budget_record. The campaign is read from Google Ads now: it must exist and have a budget of its own. kind budget stays until the customer changes it (no ends_on); test runs 7 to 90 days and on ends_on becomes ONE question (keep, or go back) — the amount stays until answered. Starting today (default), an earlier decision on the campaign ends and, when Google does not already hold the amount, the budget change is proposed and approved together (recording it is the approval) and sent by the apply workflow through the account's gate (kill switches, good standing, spend ceilings); change is that change. Dated up to 90 days ahead (starts_on), nothing is written until its day. While in force no automatic budget change moves the campaign. Refusals (422): ownBudgetGoogleOnly, ownBudgetBadRequest, ownBudgetNoSuchCampaign, ownBudgetShared, ownBudgetReadFailed; decisionPinned / decisionHeld when the campaign is pinned or held and the caller is not a person (an API key or an MCP connection): only a signed-in person's decision moves such a campaign, and nothing is recorded (GATE-PERSON).

Parameters

NameTypeRequiredWhat it is
connection_id (path)stringYes—

Request body

NameTypeRequiredWhat it is
campaign_idstringYes—
budget_microsintegerYes—
kindstring<budget, test>Yes—
reasonstringYes—
starts_onobjectNo—
ends_onobjectNo—

Response

NameTypeRequiredWhat it is
dataAdsBudgetDecisionYesThe customer's own budget for one campaign (za-84, docs/1006 §84).
changeAdsChange | nullYes—

Errors this endpoint can return

401 · 403 · 404 · 422 · 429