Class: Google::Apis::DisplayvideoV1::LookbackWindow

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/google/apis/displayvideo_v1/representations.rb

Overview

Specifies how many days into the past to look when determining whether to record a conversion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LookbackWindow

Returns a new instance of LookbackWindow.



6275
6276
6277
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 6275

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

Instance Attribute Details

#click_daysFixnum

Lookback window, in days, from the last time a given user clicked on one of your ads. Corresponds to the JSON property clickDays

Returns:

  • (Fixnum)


6267
6268
6269
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 6267

def click_days
  @click_days
end

#impression_daysFixnum

Lookback window, in days, from the last time a given user viewed one of your ads. Corresponds to the JSON property impressionDays

Returns:

  • (Fixnum)


6273
6274
6275
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 6273

def impression_days
  @impression_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6280
6281
6282
6283
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 6280

def update!(**args)
  @click_days = args[:click_days] if args.key?(:click_days)
  @impression_days = args[:impression_days] if args.key?(:impression_days)
end