试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
DateRange
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
一组连续的日期:startDate、startDate + 1、...、endDate。最多允许 4 个日期范围。
| JSON 表示法 |
{
"startDate": string,
"endDate": string,
"name": string
} |
| 字段 |
startDate |
string
查询的开始日期(包含此日期),格式为 YYYY-MM-DD。不得晚于 endDate。系统也接受 NdaysAgo、yesterday 或 today 格式,在这种情况下,系统会根据媒体资源的报告时区推断出日期。
|
endDate |
string
查询的结束日期(包含此结束日期),格式为 YYYY-MM-DD。不得早于 startDate。系统也接受 NdaysAgo、yesterday 或 today 格式,在这种情况下,系统会根据媒体资源的报告时区推断出日期。
|
name |
string
为此日期范围指定名称。报告响应中,维度“dateRange”的值为此名称。如果已设置,则不能以 date_range_ 或 RESERVED_ 开头。如果未设置,则日期范围将按照请求中的索引(从零开始)命名:date_range_0、date_range_1 等。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],["The core content describes defining date ranges for queries, allowing up to four ranges. Each range includes a `startDate` and `endDate` in `YYYY-MM-DD` format, or relative terms like `NdaysAgo`, `yesterday`, or `today`. A `name` can be assigned to each range, which will then appear as a dimension in reports. If no name is given, the range is assigned a default name in the form of `date_range_X`.\n"]]