---
title: "Google Ads Oauth Callback"
method: GET
path: "/api/oauth/google-ads/callback"
tags: ["Connections"]
---

# Google Ads Oauth Callback

`GET /api/oauth/google-ads/callback`

## Request

- Base URL: `https://app.getdot.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.getdot.ai/api/oauth/google-ads/callback`
- Auth: none declared

Receive Google's redirect; forward code+state to the replicator; store.

State signing/verification happens inside the replicator (it signed it).
The replicator returns ``{org_id, refresh_token, customer_id, accounts}``;
dot binds the result to org_id and persists via the existing replication
storage. The refresh token never reaches the browser.

## Query parameters

- `code` string, nullable
- `state` string, nullable
- `error` string, nullable
- `error_description` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getdot/apis/dot-api-2.md) · [All operations](https://skmtc.dev/getdot/apis/dot-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/getdot/apis/dot-api-2/revisions/d26fe7163a7f?raw)
