Skip to main content
GET
/
v1
/
connections
/
google
/
authorize
curl -X GET "https://api.adrelay.dev/v1/connections/google_ads/authorize" \
  -H "X-API-Key: $ADRELAY_API_KEY"
{
  "authorize_url": "https://accounts.google.com/o/oauth2/v2/auth?client_id=...&redirect_uri=...&scope=...",
  "platform": "google_ads"
}
curl -X GET "https://api.adrelay.dev/v1/connections/google_ads/authorize" \
  -H "X-API-Key: $ADRELAY_API_KEY"
{
  "authorize_url": "https://accounts.google.com/o/oauth2/v2/auth?client_id=...&redirect_uri=...&scope=...",
  "platform": "google_ads"
}
The {platform} path parameter accepts: google_ads, meta_ads, or tiktok_ads. Direct the user to the returned authorize_url in their browser. After completing authorization, they will be redirected back and the connection will be created automatically.

Authorizations

X-API-Key
string
header
required

Query Parameters

accountId
string

Response

Redirect to Google OAuth