ads
POST /v1/ads/connections/{connection_id}/experiments
Start a dated budget test — kept as ONE change waiting for approval (za-193).
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}/experiments \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "name": <string>, "campaign_ids": <string[]>, "change_pct": <integer> }'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. Reads the chosen campaigns' budgets from Google now (one read, the caller waits for it) and keeps the new budgets as ONE pending change in the approval queue, summary.auto_action = "experiment". Nothing reaches Google until a person approves it; the kill switches, spend ceilings and the organisation's standing still decide at send time, and an applied test keeps its 30-day Undo, which puts every budget back. The measured window starts the day it is applied; its own Temporal workflow judges it on the end day. Refusals: 422 experimentBadRequest (outside the closed ranges), 422 experimentBusy (a campaign on a shared budget, or already in a waiting or running test), 422 experimentGoogleOnly, 422 needsReconnect. The MCP tool ads_experiment_create takes this same path.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
connection_id (path) | string | Yes | — |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
name | string | Yes | — |
campaign_ids | string[] | Yes | — |
change_pct | integer | Yes | Budget step in percent; not 0. |
days | integer | No | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
data | AdsExperiment | Yes | One budget test (za-193): its pending or applied change and, once applied, its dated review. Budgets are the account's integer micros in currency. |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429