Google Analytics Admin V1beta Client - Class DefaultValue (0.28.1)

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

Defines a default value/currency for a key event.

Generated from protobuf message google.analytics.admin.v1beta.KeyEvent.DefaultValue

Namespace

Google \ Analytics \ Admin \ V1beta \ KeyEvent

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ numeric_valuefloat

Required. This will be used to populate the "value" parameter for all occurrences of this Key Event (specified by event_name) where that parameter is unset.

↳ currency_codestring

Required. When an occurrence of this Key Event (specified by event_name) has no set currency this currency will be applied as the default. Must be in ISO 4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more information.

getNumericValue

Required. This will be used to populate the "value" parameter for all occurrences of this Key Event (specified by event_name) where that parameter is unset.

Returns
TypeDescription
float

setNumericValue

Required. This will be used to populate the "value" parameter for all occurrences of this Key Event (specified by event_name) where that parameter is unset.

Parameter
NameDescription
varfloat
Returns
TypeDescription
$this

getCurrencyCode

Required. When an occurrence of this Key Event (specified by event_name) has no set currency this currency will be applied as the default. Must be in ISO 4217 currency code format.

See https://en.wikipedia.org/wiki/ISO_4217 for more information.

Returns
TypeDescription
string

setCurrencyCode

Required. When an occurrence of this Key Event (specified by event_name) has no set currency this currency will be applied as the default. Must be in ISO 4217 currency code format.

See https://en.wikipedia.org/wiki/ISO_4217 for more information.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this