REST Resource: accounts

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

string

Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100"

createTime

string (Timestamp format)

Output only. Time when this account was originally created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. Time when account payload fields were last updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

displayName

string

Required. Human-readable display name for this account.

regionCode

string

Country of business. Must be a Unicode CLDR region code.

deleted

boolean

Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List results unless specifically requested.

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}

Methods

delete

Marks target Account as soft-deleted (ie: "trashed") and returns it.

get

Lookup for a single Account.

getDataSharingSettings

Get data sharing settings on an account.

list

Returns all accounts accessible by the caller.

patch

Updates an account.

provisionAccountTicket

Requests a ticket for creating an account.

runAccessReport

Returns a customized report of data access records.

searchChangeHistoryEvents

Searches through all changes to an account or its children given the specified set of filters.