试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
AccessDateRange
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
连续的天数范围:startDate、startDate + 1、...、endDate。
JSON 表示法 |
{
"startDate": string,
"endDate": string
} |
字段 |
startDate |
string
查询的开始日期(包含此日期),格式为 YYYY-MM-DD 。不得晚于 endDate 。系统也接受 NdaysAgo 、yesterday 或 today 格式,在这种情况下,系统会根据请求所在时区的当前时间推断日期。
|
endDate |
string
查询的结束日期(包含此结束日期),格式为 YYYY-MM-DD 。不得早于 startDate 。系统也接受 NdaysAgo 、yesterday 或 today 格式,在这种情况下,系统会根据请求所在时区的当前时间推断日期。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDefines a date range using a start date and an end date, inclusive of both.\u003c/p\u003e\n"],["\u003cp\u003eDates are specified in \u003ccode\u003eYYYY-MM-DD\u003c/code\u003e format or using relative terms like \u003ccode\u003eNdaysAgo\u003c/code\u003e, \u003ccode\u003eyesterday\u003c/code\u003e, or \u003ccode\u003etoday\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003estartDate\u003c/code\u003e cannot be after the \u003ccode\u003eendDate\u003c/code\u003e, ensuring a valid date range.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003estartDate\u003c/code\u003e and \u003ccode\u003eendDate\u003c/code\u003e are interpreted based on the request's time zone.\u003c/p\u003e\n"]]],["The core content describes a JSON structure for representing a date range. The JSON object contains `startDate` and `endDate` fields, both strings. These fields define an inclusive range of days. The format `YYYY-MM-DD` is required, but `NdaysAgo`, `yesterday`, and `today` are also valid and will infer the date from the request's time zone. `endDate` must not be before `startDate`, and `startDate` must not be after `endDate`.\n"],null,["# AccessDateRange\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA contiguous range of days: startDate, startDate + 1, ..., endDate.\n\n| JSON representation |\n|----------------------------------------------------|\n| ``` { \"startDate\": string, \"endDate\": string } ``` |\n\n| Fields ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `startDate` | `string` The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request's time zone. |\n| `endDate` | `string` The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is also accepted, and in that case, the date is inferred based on the current time in the request's time zone. |"]]