Class: Google::Apis::ContentV2_1::AttributionSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AttributionSettings

Returns a new instance of AttributionSettings.



2404
2405
2406
# File 'lib/google/apis/content_v2_1/classes.rb', line 2404

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

Instance Attribute Details

#attribution_lookback_window_in_daysFixnum

Required. Lookback windows (in days) used for attribution in this source. Supported values are 7, 30, 40. Corresponds to the JSON property attributionLookbackWindowInDays

Returns:

  • (Fixnum)


2390
2391
2392
# File 'lib/google/apis/content_v2_1/classes.rb', line 2390

def attribution_lookback_window_in_days
  @attribution_lookback_window_in_days
end

#attribution_modelString

Required. Attribution model. Corresponds to the JSON property attributionModel

Returns:

  • (String)


2395
2396
2397
# File 'lib/google/apis/content_v2_1/classes.rb', line 2395

def attribution_model
  @attribution_model
end

#conversion_typeArray<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



2402
2403
2404
# File 'lib/google/apis/content_v2_1/classes.rb', line 2402

def conversion_type
  @conversion_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2409
2410
2411
2412
2413
# File 'lib/google/apis/content_v2_1/classes.rb', line 2409

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