In this episode, we’ll explore field compatibility in the Google Ads Query Language (GAQL) and explain why certain segments, metrics, and resources can or cannot be present in the same GAQL query. This episode builds upon prior episodes in the GAQL playlist to demonstrate how to use the GoogleAdsFieldService to determine which fields are selectable with each other. We’ll then flip our attention to the Google Ads Query Builder, an interactive, browser-based tool in the Google Ads API documentation site, and explain how to use this tool to easily determine field compatibility and build GAQL queries.
GAQL Query Validation: Field Compatibility
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-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThis episode focuses on understanding field compatibility within Google Ads Query Language (GAQL) queries, explaining why some segments, metrics, and resources can't be combined.\u003c/p\u003e\n"],["\u003cp\u003eIt builds on previous GAQL episodes and shows how to leverage the GoogleAdsFieldService to identify compatible fields for queries.\u003c/p\u003e\n"],["\u003cp\u003eThe episode also introduces the Google Ads Query Builder, a tool for easily checking field compatibility and constructing GAQL queries within the Google Ads API documentation.\u003c/p\u003e\n"]]],[],null,["# GAQL Query Validation: Field Compatibility\n\nIn this episode, we'll explore field compatibility in the Google Ads Query\nLanguage (GAQL) and explain why certain segments, metrics, and resources can or\ncannot be present in the same GAQL query. This episode builds upon prior\nepisodes in the GAQL playlist to demonstrate how to use the\nGoogleAdsFieldService to determine which fields are selectable with each other.\nWe'll then flip our attention to the Google Ads Query Builder, an interactive,\nbrowser-based tool in the Google Ads API documentation site, and explain how to\nuse this tool to easily determine field compatibility and build GAQL queries.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]