衡量性能
您可以使用 Reports
服务检索性能数据,
指标。
请参阅 metrics
文档,了解
可用指标的完整列表。
要求
您需要拥有报告管理员
角色以获取此报告。
要为某个账号授予“报告管理者”角色,请使用
accounts.update
至
将 reportingManager
字段设置为 true
。“报告管理员”角色现为
相当于 Merchant Center 中的“效果和数据分析”角色。
accounts.update
会替换整个 Account
资源。使用 accounts.get
执行以下操作:
获取完整的 Account
资源,然后在您的
accounts.update
请求,以免丢失信息。
示例查询
以下查询会检索所有查询的 impressions
、clicks
和 ctr
特定 30 天内您账号中的产品。如需发出请求
将以下 Merchant Center 查询语言语句传递到
reports.search
方法:
SELECT
metrics.impressions,
metrics.clicks,
metrics.ctr
FROM MerchantPerformanceView
WHERE segments.date BETWEEN '2020-12-01' AND '2020-12-30'
运行
点击运行,在 API Explorer 中试用该示例。点击
运行,在
请求网址。您可以修改查询。完整查询必须占一行,
使用 API Explorer。
您还可以细分
指标,以获取更精细的效果报告。
请参阅商品指南,了解具体方法
使用 Reports
服务检索和过滤商品。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-20。
[null,null,["最后更新时间 (UTC):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."]]],[]]