ads
GET /v1/ads/connect/google/callback
Google returns the browser here after consent.
Authentication
This endpoint is public. It takes no credential and no organisation — it is what our own marketing site and AI answer engines read.
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 GET https://api.zinndigital.com/v1/ads/connect/google/callbackSigned 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
Unauthenticated by design: its authority is the signed state. Always answers with a redirect to the dashboard (/ads?connect=pick&grant=<id>, cancelled, scope or failed). Once the state verifies, the redirect also carries &org=<id> (the org the state names), so a person in several orgs lands on the org Connect was started from. ⛔ ALWAYS a redirect, never a JSON error (CBRETRY, 2026-11-02): this is the browser coming back from consent. A failed code exchange (a vendor timeout, a refusal, anything unexpected) redirects with connect=failed&why=<class>, why being the §2.57 class (provider_outage, credential_problem or our_fault) from the one classifier; the dashboard explains it (an outage links the network's status_url from listAdsNetworks) and offers a fresh Connect. The exchange retries a CONNECT failure (nothing reached the vendor) up to 5 times within the request; a read timeout or a vendor answer is never replayed, because the code is single-use. Every network's callback below behaves the same way.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
state (query) | string | No | — |
code (query) | string | No | — |
error (query) | string | No | — |