本集將介紹 Google Ads 查詢語言 (GAQL) 中的欄位相容性,並說明為何同一個區隔、指標和資源可以出現在同一個 GAQL 查詢中。本集以 GAQL 播放清單中的前一集為基礎進行說明,示範如何使用 GoogleAdsFieldService 判斷哪些欄位可互相選取。接著,我們會帶您瞭解 Google Ads 查詢產生器 (Google Ads API 說明文件網站中的互動式瀏覽器專用工具),並說明如何使用這項工具輕鬆判斷欄位相容性並建構 GAQL 查詢。
GAQL 查詢驗證:欄位相容性
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-21 (世界標準時間)。
[null,null,["上次更新時間:2025-08-21 (世界標準時間)。"],[[["\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"]]