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 \ V1betaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null |
hasLowerCase
setLowerCase
Used to convert a dimension value to lower case.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression
|
Returns | |
---|---|
Type | Description |
$this |
getUpperCase
Used to convert a dimension value to upper case.
Returns | |
---|---|
Type | Description |
Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null |
hasUpperCase
setUpperCase
Used to convert a dimension value to upper case.
Parameter | |
---|---|
Name | Description |
var |
Google\Analytics\Data\V1beta\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\V1beta\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\V1beta\DimensionExpression\ConcatenateExpression
|
Returns | |
---|---|
Type | Description |
$this |
getOneExpression
Returns | |
---|---|
Type | Description |
string |