Class: Google::Apis::MerchantapiConversionsV1beta::AttributionSettings
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiConversionsV1beta::AttributionSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_conversions_v1beta/classes.rb,
lib/google/apis/merchantapi_conversions_v1beta/representations.rb,
lib/google/apis/merchantapi_conversions_v1beta/representations.rb
Overview
Represents attribution settings for conversion sources receiving pre- attribution data.
Instance Attribute Summary collapse
-
#attribution_lookback_window_days ⇒ Fixnum
Required.
-
#attribution_model ⇒ String
Required.
-
#conversion_type ⇒ Array<Google::Apis::MerchantapiConversionsV1beta::ConversionType>
Immutable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttributionSettings
constructor
A new instance of AttributionSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AttributionSettings
Returns a new instance of AttributionSettings.
48 49 50 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 48 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribution_lookback_window_days ⇒ Fixnum
Required. Lookback windows (in days) used for attribution in this source.
Supported values are 7, 30, 40.
Corresponds to the JSON property attributionLookbackWindowDays
34 35 36 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 34 def attribution_lookback_window_days @attribution_lookback_window_days end |
#attribution_model ⇒ String
Required. Attribution model.
Corresponds to the JSON property attributionModel
39 40 41 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 39 def attribution_model @attribution_model end |
#conversion_type ⇒ Array<Google::Apis::MerchantapiConversionsV1beta::ConversionType>
Immutable. Unordered list. List of different conversion types a conversion
event can be classified as. A standard "purchase" type will be automatically
created if this list is empty at creation time.
Corresponds to the JSON property conversionType
46 47 48 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 46 def conversion_type @conversion_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
53 54 55 56 57 |
# File 'lib/google/apis/merchantapi_conversions_v1beta/classes.rb', line 53 def update!(**args) @attribution_lookback_window_days = args[:attribution_lookback_window_days] if args.key?(:attribution_lookback_window_days) @attribution_model = args[:attribution_model] if args.key?(:attribution_model) @conversion_type = args[:conversion_type] if args.key?(:conversion_type) end |