Google Analytics Admin V1beta Client - Class CustomDimension (0.8.2)

Reference documentation and code samples for the Google Analytics Admin V1beta Client class CustomDimension.

A definition for a CustomDimension.

Generated from protobuf message google.analytics.admin.v1beta.CustomDimension

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Output only. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension}

↳ parameter_namestring

Required. Immutable. Tagging parameter name for this custom dimension. If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions.

↳ display_namestring

Required. Display name for this custom dimension as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.

↳ descriptionstring

Optional. Description for this custom dimension. Max length of 150 characters.

↳ scopeint

Required. Immutable. The scope of this dimension.

↳ disallow_ads_personalizationbool

Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization. This is currently only supported by user-scoped custom dimensions.

getName

Output only. Resource name for this CustomDimension resource.

Format: properties/{property}/customDimensions/{customDimension}

Returns
TypeDescription
string

setName

Output only. Resource name for this CustomDimension resource.

Format: properties/{property}/customDimensions/{customDimension}

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getParameterName

Required. Immutable. Tagging parameter name for this custom dimension.

If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions.

Returns
TypeDescription
string

setParameterName

Required. Immutable. Tagging parameter name for this custom dimension.

If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDisplayName

Required. Display name for this custom dimension as shown in the Analytics UI.

Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.

Returns
TypeDescription
string

setDisplayName

Required. Display name for this custom dimension as shown in the Analytics UI.

Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDescription

Optional. Description for this custom dimension. Max length of 150 characters.

Returns
TypeDescription
string

setDescription

Optional. Description for this custom dimension. Max length of 150 characters.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getScope

Required. Immutable. The scope of this dimension.

Returns
TypeDescription
int

setScope

Required. Immutable. The scope of this dimension.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getDisallowAdsPersonalization

Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization.

This is currently only supported by user-scoped custom dimensions.

Returns
TypeDescription
bool

setDisallowAdsPersonalization

Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization.

This is currently only supported by user-scoped custom dimensions.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this