Skip to main content
GET
Get Google Ads tracking script

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>. Each operation lists the permission it needs: read_only or full_access. A full-access token can call every operation. A read-only token can call only the operations that list read_only; anything else returns 403 read_only_credential_route_not_allowed.

Path Parameters

app_id
string
required

ID of the app whose Google Ads conversion tracking you want to manage.

Response

The snippet to place in the app.

The gtag snippet that reports the app's conversions to Google Ads.

script
string | null
required

The gtag snippet, wrapped in a <script> tag and ready to place in the app's HTML, or null when no goal on the account has a published tag yet. Build Google Ads tracking fix prompt creates the goals, and Google takes a few minutes to publish each tag, so a null straight after setup means you should read this again shortly.

Example:

"<script>\nwindow.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'AW-123456789', {'send_page_view': false});\n</script>"