Connections
Authorize Connection
Start the OAuth flow to connect an ad platform account.
GET
{platform} path parameter accepts: google, meta, or tiktok.
Direct the user to the returned URL in their browser. After completing authorization, they will be redirected to your redirect_uri (or the AdRelay dashboard by default) with query params:
?success=true&platform=GOOGLE&connectionId=...on success?error=...on failure
Custom Redirect URIs
By default, OAuth callbacks land on the AdRelay dashboard. To redirect to your own app:- Register your URI via Settings or the Redirect URIs API
- Pass
redirect_urias a query parameter when calling authorize
The
redirect_uri only controls the final hop (AdRelay → your app). The platform-side OAuth callback (Google/Meta/TikTok → AdRelay) stays the same.