Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue

Returns a new instance of GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue.



2303
2304
2305
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2303

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#currency_codeString

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. Corresponds to the JSON property currencyCode

Returns:

  • (String)


2295
2296
2297
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2295

def currency_code
  @currency_code
end

#valueFloat

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

Returns:

  • (Float)


2301
2302
2303
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2301

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2308
2309
2310
2311
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2308

def update!(**args)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @value = args[:value] if args.key?(:value)
end