Google Analytics Data V1beta Client - Class DimensionExpression (0.11.2)

Reference documentation and code samples for the Google Analytics Data V1beta 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.v1beta.DimensionExpression

Namespace

Google \ Analytics \ Data \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

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

Used to convert a dimension value to lower case.

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

Used to convert a dimension value to upper case.

↳ concatenate Google\Analytics\Data\V1beta\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
TypeDescription
Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null

hasLowerCase

setLowerCase

Used to convert a dimension value to lower case.

Parameter
NameDescription
var Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression
Returns
TypeDescription
$this

getUpperCase

Used to convert a dimension value to upper case.

Returns
TypeDescription
Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null

hasUpperCase

setUpperCase

Used to convert a dimension value to upper case.

Parameter
NameDescription
var Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression
Returns
TypeDescription
$this

getConcatenate

Used to combine dimension values to a single dimension.

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

Returns
TypeDescription
Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression|null

hasConcatenate

setConcatenate

Used to combine dimension values to a single dimension.

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

Parameter
NameDescription
var Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression
Returns
TypeDescription
$this

getOneExpression

Returns
TypeDescription
string