Google Analytics Admin V1alpha Client - Class Property (0.22.5)

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

A resource message representing a Google Analytics GA4 property.

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

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 property. Format: properties/{property_id} Example: "properties/1000"

↳ property_typeint

Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied.

↳ create_timeGoogle\Protobuf\Timestamp

Output only. Time when the entity was originally created.

↳ update_timeGoogle\Protobuf\Timestamp

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

↳ parentstring

Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"

↳ display_namestring

Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 code units.

↳ industry_categoryint

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK

↳ time_zonestring

Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"

↳ currency_codestring

The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"

↳ service_levelint

Output only. The Google Analytics service level that applies to this property.

↳ delete_timeGoogle\Protobuf\Timestamp

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

↳ expire_timeGoogle\Protobuf\Timestamp

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

↳ accountstring

Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"

getName

Output only. Resource name of this property.

Format: properties/{property_id} Example: "properties/1000"

Returns
TypeDescription
string

setName

Output only. Resource name of this property.

Format: properties/{property_id} Example: "properties/1000"

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getPropertyType

Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied.

Returns
TypeDescription
int

setPropertyType

Immutable. The property type for this Property resource. When creating a property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY" will be implied.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getCreateTime

Output only. Time when the entity was originally created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time when the entity was originally created.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

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

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getParent

Immutable. Resource name of this property's logical parent.

Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"

Returns
TypeDescription
string

setParent

Immutable. Resource name of this property's logical parent.

Note: The Property-Moving UI can be used to change the parent. Format: accounts/{account}, properties/{property} Example: "accounts/100", "properties/101"

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDisplayName

Required. Human-readable display name for this property.

The max allowed display name length is 100 UTF-16 code units.

Returns
TypeDescription
string

setDisplayName

Required. Human-readable display name for this property.

The max allowed display name length is 100 UTF-16 code units.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getIndustryCategory

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK

Returns
TypeDescription
int

setIndustryCategory

Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getTimeZone

Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes.

NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"

Returns
TypeDescription
string

setTimeZone

Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data originates. If the time zone honors DST, Analytics will automatically adjust for the changes.

NOTE: Changing the time zone only affects data going forward, and is not applied retroactively. Format: https://www.iana.org/time-zones Example: "America/Los_Angeles"

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getCurrencyCode

The currency type used in reports involving monetary values.

Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"

Returns
TypeDescription
string

setCurrencyCode

The currency type used in reports involving monetary values.

Format: https://en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getServiceLevel

Output only. The Google Analytics service level that applies to this property.

Returns
TypeDescription
int

setServiceLevel

Output only. The Google Analytics service level that applies to this property.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getDeleteTime

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasDeleteTime

clearDeleteTime

setDeleteTime

Output only. If set, the time at which this property was trashed. If not set, then this property is not currently in the trash can.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getExpireTime

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpireTime

clearExpireTime

setExpireTime

Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then this property is not currently in the trash can and is not slated to be deleted.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getAccount

Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"

Returns
TypeDescription
string

setAccount

Immutable. The resource name of the parent account Format: accounts/{account_id} Example: "accounts/123"

Parameter
NameDescription
varstring
Returns
TypeDescription
$this