Google Analytics Admin V1alpha Client - Class Account (0.27.0)

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class Account.

A resource message representing a Google Analytics account.

Generated from protobuf message google.analytics.admin.v1alpha.Account

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

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

↳ create_timeGoogle\Protobuf\Timestamp

Output only. Time when this account was originally created.

↳ update_timeGoogle\Protobuf\Timestamp

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

↳ display_namestring

Required. Human-readable display name for this account.

↳ region_codestring

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

↳ deletedbool

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

↳ gmp_organizationstring

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}

getName

Output only. Resource name of this account.

Format: accounts/{account} Example: "accounts/100"

Returns
TypeDescription
string

setName

Output only. Resource name of this account.

Format: accounts/{account} Example: "accounts/100"

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCreateTime

Output only. Time when this account was originally created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time when this account was originally created.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getDisplayName

Required. Human-readable display name for this account.

Returns
TypeDescription
string

setDisplayName

Required. Human-readable display name for this account.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getRegionCode

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

Returns
TypeDescription
string

setRegionCode

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDeleted

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

Returns
TypeDescription
bool

setDeleted

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

Parameter
NameDescription
varbool
Returns
TypeDescription
$this

getGmpOrganization

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}

Returns
TypeDescription
string

setGmpOrganization

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}

Parameter
NameDescription
varstring
Returns
TypeDescription
$this