Google Analytics Data V1alpha Client - Class DimensionExpression (0.16.4)

Reference documentation and code samples for the Google Analytics Data V1alpha Client class DimensionExpression.

Used to express a dimension which is the result of a formula of multiple dimensions. Example usages: 1) lower_case(dimension) 2) concatenate(dimension1, symbol, dimension2).

Generated from protobuf message google.analytics.data.v1alpha.DimensionExpression

Namespace

Google \ Analytics \ Data \ V1alpha

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ lower_case Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression

Used to convert a dimension value to lower case.

↳ upper_case Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression

Used to convert a dimension value to upper case.

↳ concatenate Google\Analytics\Data\V1alpha\DimensionExpression\ConcatenateExpression

Used to combine dimension values to a single dimension. For example, dimension "country, city": concatenate(country, ", ", city).

getLowerCase

Used to convert a dimension value to lower case.

Returns
Type Description
Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression|null

hasLowerCase

setLowerCase

Used to convert a dimension value to lower case.

Parameter
Name Description
var Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression
Returns
Type Description
$this

getUpperCase

Used to convert a dimension value to upper case.

Returns
Type Description
Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression|null

hasUpperCase

setUpperCase

Used to convert a dimension value to upper case.

Parameter
Name Description
var Google\Analytics\Data\V1alpha\DimensionExpression\CaseExpression
Returns
Type Description
$this

getConcatenate

Used to combine dimension values to a single dimension.

For example, dimension "country, city": concatenate(country, ", ", city).

Returns
Type Description
Google\Analytics\Data\V1alpha\DimensionExpression\ConcatenateExpression|null

hasConcatenate

setConcatenate

Used to combine dimension values to a single dimension.

For example, dimension "country, city": concatenate(country, ", ", city).

Parameter
Name Description
var Google\Analytics\Data\V1alpha\DimensionExpression\ConcatenateExpression
Returns
Type Description
$this

getOneExpression

Returns
Type Description
string