Hãy thử máy chủ MCP cho Google Analytics. Cài đặt từ
GitHub và xem
thông báo để biết thêm thông tin chi tiết.
AccessDateRange
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Phạm vi ngày liền nhau: startDate, startDate + 1, ..., endDate.
Biểu diễn dưới dạng JSON |
{
"startDate": string,
"endDate": string
} |
Trường |
startDate |
string
Ngày bắt đầu bao gồm cho truy vấn ở định dạng YYYY-MM-DD . Không được sau endDate . Định dạng NdaysAgo , yesterday hoặc today cũng được chấp nhận và trong trường hợp đó, ngày được suy ra dựa trên giờ hiện tại theo múi giờ của yêu cầu.
|
endDate |
string
Ngày kết thúc toàn diện của truy vấn ở định dạng YYYY-MM-DD . Không được trước startDate . Định dạng NdaysAgo , yesterday hoặc today cũng được chấp nhận và trong trường hợp đó, ngày được suy ra dựa trên giờ hiện tại theo múi giờ của yêu cầu.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eDefines a date range using a start date and an end date, inclusive of both.\u003c/p\u003e\n"],["\u003cp\u003eDates are represented 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\u003e\u003ccode\u003estartDate\u003c/code\u003e cannot be after \u003ccode\u003eendDate\u003c/code\u003e, and \u003ccode\u003eendDate\u003c/code\u003e cannot be before \u003ccode\u003estartDate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe date values 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. |"]]