Reference documentation and code samples for the Google Analytics Admin V1alpha Client class DefaultValue.
Defines a default value/currency for a key event.
Generated from protobuf message google.analytics.admin.v1alpha.KeyEvent.DefaultValue
Namespace
Google \ Analytics \ Admin \ V1alpha \ KeyEventMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ numeric_value |
float
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_code |
string
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |