Skip to main content
GET
Get Google Ads tracking script

Authorizations

api_key
string
header
required

Personal API key.

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>"