試用 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}
|
方法 |
|
將目標帳戶標示為已軟刪 (即「已刪除」),並傳回該帳戶。 |
|
查詢單一帳戶。 |
|
取得帳戶的資料共用設定。 |
|
傳回呼叫端可存取的所有帳戶。 |
|
更新帳戶。 |
|
要求建立帳戶的支援單。 |
|
傳回資料存取記錄的自訂報表。 |
|
根據指定的篩選器組合,搜尋帳戶或其子項的所有變更。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe Account resource represents a Google Analytics account and provides details like name, creation time, update time, display name, region, deletion status, and linked Google Marketing Platform organization.\u003c/p\u003e\n"],["\u003cp\u003eAccount data is structured in JSON format with specific fields for each attribute, including timestamps and resource names.\u003c/p\u003e\n"],["\u003cp\u003eA variety of methods are available for managing Accounts such as creating, retrieving, updating, deleting, and accessing data sharing settings.\u003c/p\u003e\n"],["\u003cp\u003eAccounts can be soft-deleted, meaning they are marked as trashed but can still be recovered or permanently deleted later.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage these resources and methods to programmatically interact with and manage Google Analytics accounts.\u003c/p\u003e\n"]]],["The provided content describes a Google Analytics `Account` resource, detailing its JSON structure and fields like `name`, `createTime`, `updateTime`, `displayName`, and `regionCode`. It supports actions such as marking the Account as deleted, retrieving, updating, and listing accounts. Methods also enable managing data sharing settings, requesting account creation, running access reports, and searching change history events for the Account or it's children.\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/v1beta/accounts/delete) | Marks target Account as soft-deleted (ie: \"trashed\") and returns it. |\n| ### [get](/analytics/devguides/config/admin/v1/rest/v1beta/accounts/get) | Lookup for a single Account. |\n| ### [getDataSharingSettings](/analytics/devguides/config/admin/v1/rest/v1beta/accounts/getDataSharingSettings) | Get data sharing settings on an account. |\n| ### [list](/analytics/devguides/config/admin/v1/rest/v1beta/accounts/list) | Returns all accounts accessible by the caller. |\n| ### [patch](/analytics/devguides/config/admin/v1/rest/v1beta/accounts/patch) | Updates an account. |\n| ### [provisionAccountTicket](/analytics/devguides/config/admin/v1/rest/v1beta/accounts/provisionAccountTicket) | Requests a ticket for creating an account. |\n| ### [runAccessReport](/analytics/devguides/config/admin/v1/rest/v1beta/accounts/runAccessReport) | Returns a customized report of data access records. |\n| ### [searchChangeHistoryEvents](/analytics/devguides/config/admin/v1/rest/v1beta/accounts/searchChangeHistoryEvents) | Searches through all changes to an account or its children given the specified set of filters. |"]]