Interested in sharing your feedback about the Google Ads API?
Sign up to be invited to participate in user research!
TagSnippet
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-25 UTC."],[[["The `TrackingCodeType` defines the type of snippets generated for tracking conversions."],["This includes a `global_site_tag` for basic remarketing and cookie setting and an `event_snippet` to track conversions alongside the site tag."],["Snippets are provided in a format corresponding to the webpage format, such as HTML."]]],["The core content defines the components of a tracking code for conversions, specifically for a `TrackingCodeType`. It consists of a `type` indicating the purpose of the tracking, and the `page_format` specifying the web page format where the code will be placed. The `global_site_tag` adds visitors to remarketing lists and sets cookies. The `event_snippet` is used with the `site_tag` to track specific actions counted as conversions.\n"]]