評估效能
您可以使用 Reports
服務擷取效能
指標
請參閱 metrics
說明文件,瞭解
可用指標的完整清單
需求條件
您需要報表管理員
角色,以便擷取這份報表。
如要為帳戶授予報表管理員角色,請使用
accounts.update
到
將 reportingManager
欄位設為 true
。報表管理員角色為
相當於 Merchant Center 中的「成效和洞察」角色
accounts.update
會取代整個 Account
資源。使用 accounts.get
:
即可取得完整的 Account
資源,然後在
accounts.update
要求,以免遺失資訊。
查詢範例
以下查詢會擷取所有物件的 impressions
、clicks
和 ctr
特定 30 天內帳戶中的產品廣告。如要提出要求,
將下列 Merchant Center Query Language 陳述式傳遞給
reports.search
方法:
SELECT
metrics.impressions,
metrics.clicks,
metrics.ctr
FROM MerchantPerformanceView
WHERE segments.date BETWEEN '2020-12-01' AND '2020-12-30'
執行
請按一下「Run」(執行),試用 API Explorer 中的範例。點選之後
執行,將商家 ID 預留位置更新為您自己的商家 ID
要求網址您可以修改查詢。完整查詢必須在同一行中
搭配 API Explorer 使用。
此外,您也可以區隔
,取得更詳細的成效報表。
詳情請參閱產品指南
,透過 Reports
服務擷取及篩選產品。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-20 (世界標準時間)。
[null,null,["上次更新時間:2024-09-20 (世界標準時間)。"],[[["The `Reports` service allows you to retrieve performance metrics, such as impressions, clicks, and click-through rate (CTR), for your account."],["To access this service, you must have the Reporting manager role (equivalent to the Performance and insights role in Merchant Center), which can be assigned using the `accounts.update` method."],["A comprehensive list of available metrics can be found in the `metrics` documentation, and you can use Merchant Center Query Language to create customized reports."],["For more detailed analysis, you can segment your metrics and further explore report functionalities through the provided guides on segmentation and products."]]],[]]