Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1beta/classes.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb,
lib/google/apis/analyticsadmin_v1beta/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) ⇒ GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue
constructor
A new instance of GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue
Returns a new instance of GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue.
978 979 980 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 978 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
970 971 972 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 970 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
976 977 978 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 976 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
983 984 985 986 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 983 def update!(**args) @currency_code = args[:currency_code] if args.key?(:currency_code) @value = args[:value] if args.key?(:value) end |