Google Analytics Admin V1alpha Client - Class DefaultConversionValue (0.20.0)

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
NameDescription
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.

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
TypeDescription
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
NameDescription
var float
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this