add_alert
重要提示:Content API for Shopping 将于 2026 年 8 月 18 日停用。
update
获取最新资讯
了解新的 Merchant API 功能、问题修复和更新。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
衡量性能
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以使用 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):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["The `Reports` service retrieves performance metrics, requiring the Reporting manager role. This role is enabled by setting `reportingManager` to `true` using `accounts.update`. To retain data, use `accounts.get` beforehand. `reports.search` uses Merchant Center Query Language, as demonstrated in a sample query that fetches `impressions`, `clicks`, and `ctr` for a given date range, and allows to run it in the API Explorer. Additionally, metrics can be segmented for detailed reports.\n"]]