试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
REST Resource: accounts
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
资源:账号
代表 Google Analytics 账号的资源消息。
JSON 表示法 |
{
"name": string,
"createTime": string,
"updateTime": string,
"displayName": string,
"regionCode": string,
"deleted": boolean,
"gmpOrganization": string
} |
字段 |
name |
string
仅限输出。此账号的资源名称。格式:accounts/{account} 示例:“accounts/100”
|
createTime |
string (Timestamp format)
仅限输出。此账号的最初创建时间。 采用 RFC 3339 标准,生成的输出将始终在末尾带 Z,并使用 0、3、6 或 9 个小数位。不带“Z”的偏差时间也是可以接受的。示例:"2014-10-02T15:01:23Z" 、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30" 。
|
updateTime |
string (Timestamp format)
仅限输出。上次更新账号载荷字段的时间。 采用 RFC 3339 标准,生成的输出将始终在末尾带 Z,并使用 0、3、6 或 9 个小数位。不带“Z”的偏差时间也是可以接受的。示例:"2014-10-02T15:01:23Z" 、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30" 。
|
displayName |
string
必需。此账号的直观易懂的显示名称。
|
regionCode |
string
商家所在的国家/地区。必须是 Unicode CLDR 区域代码。
|
deleted |
boolean
仅限输出。指示此账号是否已被软删除。除非您明确要求,否则已删除的账号不会显示在列表结果中。
|
gmpOrganization |
string
仅限输出。Google Marketing Platform 组织资源的 URI。仅在此账号与 GMP 组织相关联时设置。格式:marketingplatformadmin.googleapis.com/organizations/{org_id}
|
方法 |
|
将目标账号标记为“已软删除”(即“已移至回收站”),并返回该账号。 |
|
查找单个账号。 |
|
获取账号的数据共享设置。 |
|
返回调用方可以访问的所有账号。 |
|
更新账号。 |
|
请求创建账号的支持服务工单。 |
|
返回数据访问记录的自定义报告。 |
|
根据指定的一组过滤条件,搜索账号或其子账号的所有更改。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis documentation describes the Account resource in Google Analytics, including its JSON representation and available methods.\u003c/p\u003e\n"],["\u003cp\u003eThe Account resource represents a Google Analytics account with properties like name, creation time, display name, and region.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use various methods for account management, such as deleting, retrieving, updating, and listing accounts.\u003c/p\u003e\n"],["\u003cp\u003eAccount data sharing settings can be accessed and a provision ticket for account creation can be requested via dedicated methods.\u003c/p\u003e\n"],["\u003cp\u003eThe API also supports running custom data access reports and searching change history events related to an account.\u003c/p\u003e\n"]]],["The provided content describes Google Analytics account resources, their JSON structure, and available methods. Accounts contain fields like `name`, `createTime`, `updateTime`, `displayName`, `regionCode`, `deleted`, and `gmpOrganization`. Methods include: `delete` (soft-delete), `get`, `getDataSharingSettings`, `list` (all accessible accounts), `patch` (update), `provisionAccountTicket` (create), `runAccessReport` (data access), and `searchChangeHistoryEvents` (account changes).\n"],null,["# REST Resource: accounts\n\n- [Resource: Account](#Account)\n - [JSON representation](#Account.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Account\n-----------------\n\nA resource message representing a Google Analytics account.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"createTime\": string, \"updateTime\": string, \"displayName\": string, \"regionCode\": string, \"deleted\": boolean, \"gmpOrganization\": string } ``` |\n\n| Fields ||\n|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. Resource name of this account. Format: accounts/{account} Example: \"accounts/100\" |\n| `createTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. Time when this account was originally created. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n| `updateTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` Output only. Time when account payload fields were last updated. Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n| `displayName` | `string` Required. Human-readable display name for this account. |\n| `regionCode` | `string` Country of business. Must be a Unicode CLDR region code. |\n| `deleted` | `boolean` Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested. |\n| `gmpOrganization` | `string` Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id} |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| ### [delete](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/delete) | Marks target Account as soft-deleted (ie: \"trashed\") and returns it. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/get) | Lookup for a single Account. |\n| ### [getDataSharingSettings](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/getDataSharingSettings) | Get data sharing settings on an account. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/list) | Returns all accounts accessible by the caller. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/patch) | Updates an account. |\n| ### [provisionAccountTicket](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/provisionAccountTicket) | Requests a ticket for creating an account. |\n| ### [runAccessReport](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/runAccessReport) | Returns a customized report of data access records. |\n| ### [searchChangeHistoryEvents](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents) | Searches through all changes to an account or its children given the specified set of filters. |"]]