ads

PUT /v1/ads/connections/{connection_id}/conversion-setup

Choose the conversion method, the GA4 property and key events, and the working window.

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 PUT https://api.zinndigital.com/v1/ads/connections/{connection_id}/conversion-setup \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

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-logged (ads.conversion_setup_saved). Nothing is sent to the network. quiet_days outside 1..90 is refused (422), never clamped. ga4 on a Microsoft account is refused (convGa4GoogleOnly).

Parameters

NameTypeRequiredWhat it is
connection_id (path)stringYes—

Request body

NameTypeRequiredWhat it is
conversion_methodstring<, ga4, server>No—
ga4_property_idstringNo—
ga4_key_eventsstring[]No—
quiet_daysintegerNo—

Response

NameTypeRequiredWhat it is
connection_idstringYes—
platformstringYes—
customer_idstringYesThe ad account id (digits) the customer links GA4 to.
methodstring<, ga4, server>Yes—
quiet_daysintegerYes—
recommended_quiet_daysintegerYes—
quiet_days_minintegerYes—
quiet_days_maxintegerYes—
ga4_property_idstringYes—
ga4_key_eventsstring[]Yes—
needs_reconnectbooleanYes—
failureVendorFailureYes—
ga4objectYesGoogle only; empty on Microsoft.
serverobjectYes—

Errors this endpoint can return

401 · 403 · 404 · 422 · 429