Google Analytics Admin V1alpha Client - Class DefaultConversionValue (0.22.5)

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class DefaultConversionValue.

Defines a default value/currency for a conversion event. Both value and currency must be provided.

Generated from protobuf message google.analytics.admin.v1alpha.ConversionEvent.DefaultConversionValue

Namespace

Google \ Analytics \ Admin \ V1alpha \ ConversionEvent

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ value float

This value will be used to populate the value for all conversions of the specified event_name where the event "value" parameter is unset.

↳ currency_code string

When a conversion event for this 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.

getValue

This value will be used to populate the value for all conversions of the specified event_name where the event "value" parameter is unset.

Returns
Type Description
float

hasValue

clearValue

setValue

This value will be used to populate the value for all conversions of the specified event_name where the event "value" parameter is unset.

Parameter
Name Description
var float
Returns
Type Description
$this

getCurrencyCode

When a conversion event for this 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

hasCurrencyCode

clearCurrencyCode

setCurrencyCode

When a conversion event for this 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