Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue
- 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
-
#currency_code ⇒ String
When a conversion event for this event_name has no set currency, this currency will be applied as the default.
-
#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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue
constructor
A new instance of GoogleAnalyticsAdminV1alphaConversionEventDefaultConversionValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_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.
Corresponds to the JSON property currencyCode
2295 2296 2297 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2295 def currency_code @currency_code end |
#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.
Corresponds to the JSON property value
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 |