REST Resource: accounts Stay organized with collections Save and categorize content based on your preferences.
Page Summary
An Account is a resource message representing a Google Analytics account.
Each Account has fields including name, creation and update times, display name, region code, and deleted status.
Methods available for Account include deleting, getting, listing, updating, and searching for changes.
You can also get data sharing settings, provision account tickets, and run access reports for an Account.
Resource: Account
A resource message representing a Google Analytics account.
| JSON representation |
|---|
{"name":string,"createTime":string,"updateTime":string,"displayName":string,"regionCode":string,"deleted":boolean,"gmpOrganization":string} |
| Fields | |
|---|---|
name |
Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" |
createTime |
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: |
updateTime |
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: |
displayName |
Required. Human-readable display name for this account. |
regionCode |
Country of business. Must be a Unicode CLDR region code. |
deleted |
Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested. |
gmpOrganization |
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} |
Methods | |
|---|---|
| Marks target Account as soft-deleted (ie: "trashed") and returns it. |
| Lookup for a single Account. |
| Get data sharing settings on an account. |
| Returns all accounts accessible by the caller. |
| Updates an account. |
| Requests a ticket for creating an account. |
| Returns a customized report of data access records. |
| Searches through all changes to an account or its children given the specified set of filters. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-02 UTC.