Prova il server MCP per Google Analytics. Installa da
GitHub e consulta l'
annuncio per maggiori dettagli.
REST Resource: accounts
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Risorsa: account
Un messaggio della risorsa che rappresenta un account Google Analytics.
Rappresentazione JSON |
{
"name": string,
"createTime": string,
"updateTime": string,
"displayName": string,
"regionCode": string,
"deleted": boolean,
"gmpOrganization": string
} |
Campi |
name |
string
Solo output. Nome della risorsa di questo account. Formato: accounts/{account} Esempio: "accounts/100"
|
createTime |
string (Timestamp format)
Solo output. Ora in cui è stato creato originariamente questo account. Utilizza RFC 3339, in cui l'output generato sarà sempre normalizzato in base a Z e utilizza 0, 3, 6 o 9 cifre decimali. Sono accettati anche offset diversi da "Z". Esempi: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" o "2014-10-02T15:01:23+05:30" .
|
updateTime |
string (Timestamp format)
Solo output. Ora dell'ultimo aggiornamento dei campi del payload dell'account. Utilizza RFC 3339, in cui l'output generato sarà sempre normalizzato in base a Z e utilizza 0, 3, 6 o 9 cifre decimali. Sono accettati anche offset diversi da "Z". Esempi: "2014-10-02T15:01:23Z" , "2014-10-02T15:01:23.045123456Z" o "2014-10-02T15:01:23+05:30" .
|
displayName |
string
Obbligatorio. Nome visualizzato leggibile per questo account.
|
regionCode |
string
Paese dell'attività. Deve essere un codice regione CLDR Unicode.
|
deleted |
boolean
Solo output. Indica se questo account è stato eliminato definitivamente o meno. Gli account eliminati sono esclusi dai risultati dell'elenco, a meno che non sia stato richiesto esplicitamente.
|
gmpOrganization |
string
Solo output. L'URI per una risorsa dell'organizzazione Google Marketing Platform. Impostato solo quando questo account è collegato a un'organizzazione GMP. Formato: marketingplatformadmin.googleapis.com/organizations/{org_id}
|
Metodi |
|
Contrassegni l'account di destinazione come eliminato in modo non definitivo (ad es. "Trasferito nel cestino") e lo restituisce. |
|
Cerca un singolo account. |
|
Ottenere le impostazioni di condivisione dei dati in un account. |
|
Restituisce tutti gli account accessibili al chiamante. |
|
Aggiorna un account. |
|
Richiede un ticket per la creazione di un account. |
|
Restituisce un report personalizzato dei record di accesso ai dati. |
|
Cerca tutte le modifiche apportate a un account o ai suoi elementi secondari in base all'insieme di filtri specificato. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\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. |"]]