Class: Google::Apis::DisplayvideoV3::TargetFrequency

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

Overview

Setting that controls the average number of times the ads will show to the same person over a certain period of time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetFrequency

Returns a new instance of TargetFrequency.



11651
11652
11653
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 11651

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

Instance Attribute Details

#target_countFixnum

The target number of times, on average, the ads will be shown to the same person in the timespan dictated by time_unit and time_unit_count. Corresponds to the JSON property targetCount

Returns:

  • (Fixnum)


11636
11637
11638
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 11636

def target_count
  @target_count
end

#time_unitString

The unit of time in which the target frequency will be applied. The following time unit is applicable: * TIME_UNIT_WEEKS Corresponds to the JSON property timeUnit

Returns:

  • (String)


11642
11643
11644
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 11642

def time_unit
  @time_unit
end

#time_unit_countFixnum

The number of time_unit the target frequency will last. The following restrictions apply based on the value of time_unit: * TIME_UNIT_WEEKS - must be 1 Corresponds to the JSON property timeUnitCount

Returns:

  • (Fixnum)


11649
11650
11651
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 11649

def time_unit_count
  @time_unit_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11656
11657
11658
11659
11660
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 11656

def update!(**args)
  @target_count = args[:target_count] if args.key?(:target_count)
  @time_unit = args[:time_unit] if args.key?(:time_unit)
  @time_unit_count = args[:time_unit_count] if args.key?(:time_unit_count)
end