试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
Google 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
Comparison
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
定义单个比较。大多数请求将包含多个比较对象,以便报告在比较对象之间进行比较。
| JSON 表示法 |
{
"name": string,
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"dimensionFilter": {
object (FilterExpression)
},
"comparison": string
// End of mutually exclusive fields.
} |
| 字段 |
name |
string
每次比较都会在响应中生成单独的行。在响应中,此比较对象将通过此名称进行标识。如果未指定名称,我们将使用已保存的比较的显示名称。
|
| 一种比较值。以下是互斥字段的列表。在响应中,最多只能设置一个字段: |
dimensionFilter |
object (FilterExpression)
基本比较。
|
comparison |
string
由比较对象的资源名称标识的已保存比较对象。例如,'comparisons/1234'。
|
| 互斥字段的结束位置。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-09-16。
[null,null,["最后更新时间 (UTC):2026-09-16。"],[],["The content defines a comparison structure for reporting. Each comparison has a `name` for identification in the response. A comparison can be defined in one of two ways: by a `dimensionFilter` object, which specifies a basic filter criteria; or by referencing a pre-existing saved `comparison` via its resource name. Multiple comparisons are used together to create a report, each comparison generating separate rows in the output.\n"]]