ads

POST /v1/ads/connections/{connection_id}/ads/actions

Pause, unpause or delete one ad, ad group or campaign (ADMGMT1).

All ads endpoints

All developer docs →

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}/ads/actions \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "action": <string<pause, unpause, delete>>, "level": <string<ad, ad_group, campaign>>, "resource": <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.ad_action. The status is read from Google first; the change is proposed and approved in one step (the request is the approval) and the apply workflow sends it through the same gate as every write (kill switches, the organisation's standing). Pause and unpause carry the 30-day Undo. Delete is for a PAUSED ad or ad group only (422 notPausedYet; never a campaign, 422 badAction): a snapshot is saved (headlines, descriptions, paths, final URLs; for an ad group its name, bid, ads and keywords) and the change's Undo is a Rebuild that creates a NEW paused copy from it — a deleted ad itself cannot be brought back. 422 alreadyThatStatus, 422 noSuchAd, 422 killed / paused, 422 msAdManageNotOffered.

Parameters

NameTypeRequiredWhat it is
connection_id (path)stringYes—

Request body

NameTypeRequiredWhat it is
actionstring<pause, unpause, delete>Yes—
levelstring<ad, ad_group, campaign>Yes—
resourcestringYesThe Google Ads resource name from listAdsAccountAds (customers/<id>/adGroupAds/ <group>~<ad>, .../adGroups/<id>, .../campaigns/<id>) of THIS account.
labelstringNoWhat the change line calls it.

Response

NameTypeRequiredWhat it is
idstringYes—
org_idstringYes—
connection_idstringYes—
action_classstringYes—
statusAdsChangeStatusYes—
summaryobjectYes—
budget_delta_minorobjectYes—
proposed_bystringYes—
proposed_atstringYes—
decided_bystringYes—
decided_atobjectYes—
applied_atobjectYes—
undoablebooleanYes—
undo_untilobjectYes—
undone_atobjectYes—
errorstringYes—

Errors this endpoint can return

400 · 401 · 403 · 404 · 422 · 429