Class: Google::Apis::ContentV2_1::AttributionSettings
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AttributionSettings
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Represents attribution settings for conversion sources receiving pre- attribution data.
Instance Attribute Summary collapse
-
#attribution_lookback_window_in_days ⇒ Fixnum
Required.
-
#attribution_model ⇒ String
Corresponds to the JSON property
attributionModel. -
#conversion_type ⇒ Array<Google::Apis::ContentV2_1::AttributionSettingsConversionType>
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.
2452 2453 2454 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2452 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribution_lookback_window_in_days ⇒ Fixnum
Required. Lookback windows (in days) used for attribution in this source.
Supported values are 7, 30, 40.
Corresponds to the JSON property attributionLookbackWindowInDays
2438 2439 2440 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2438 def attribution_lookback_window_in_days @attribution_lookback_window_in_days end |
#attribution_model ⇒ String
Corresponds to the JSON property attributionModel
2443 2444 2445 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2443 def attribution_model @attribution_model end |
#conversion_type ⇒ Array<Google::Apis::ContentV2_1::AttributionSettingsConversionType>
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
2450 2451 2452 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2450 def conversion_type @conversion_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2457 2458 2459 2460 2461 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2457 def update!(**args) @attribution_lookback_window_in_days = args[:attribution_lookback_window_in_days] if args.key?(:attribution_lookback_window_in_days) @attribution_model = args[:attribution_model] if args.key?(:attribution_model) @conversion_type = args[:conversion_type] if args.key?(:conversion_type) end |