在 Google Ads API 中,每份條件報表都是以個別資源表示。
除非另有必要,否則 *_view 資源僅包含 resource_name
] 欄位。
Google Ads API 用戶端需要指定對應的 ad_group_criterion 或
campaign_criterion 欄位。
這可讓 Google Ads API 用戶端要求 ad_group_criterion 或 campaign_criterion
和 *_view 資源
GoogleAdsService.SearchStream。
方法。
查詢要求範例
SELECT
ad_group_criterion.keyword.text,
ad_group.name,
campaign.name,
metrics.impressions,
metrics.clicks,
metrics.ctr,
metrics.average_cpc
FROM keyword_view
WHERE segments.date DURING LAST_30_DAYS
如要擷取特定條件類型的成效資料 (指標),請指定
FROM 子句中相應的檢視資源。舉例來說,請使用
FROM 子句中的 keyword_view 和 SELECT 中的部分 metrics 欄位
來擷取關鍵字指標。
您可以從父項資源中選取欄位,最多 customer從
檢視條件舉例來說,選取 FROM 時,keyword_view 可讓您
要求欄位:
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-09-09 (世界標準時間)。"],[[["Each criteria report in the Google Ads API is a separate resource, and clients need to specify `ad_group_criterion` or `campaign_criterion` fields to fetch specific criteria data."],["To get performance data for a criteria type, use its corresponding view resource (e.g., `keyword_view`) in the `FROM` clause of your query."],["You can retrieve data from parent resources, like `ad_group`, `campaign`, and `customer`, when querying a criteria view."],["The \"Attribute Resources\" section on a resource's reference page shows which related resources can be included in your queries."]]],[]]