Class: Google::Apis::DisplayvideoV2::TargetFrequency
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::TargetFrequency
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/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
-
#target_count ⇒ Fixnum
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.
-
#time_unit ⇒ String
The unit of time in which the target frequency will be applied.
-
#time_unit_count ⇒ Fixnum
The number of time_unit the target frequency will last.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TargetFrequency
constructor
A new instance of TargetFrequency.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TargetFrequency
Returns a new instance of TargetFrequency.
10937 10938 10939 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10937 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target_count ⇒ Fixnum
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
10922 10923 10924 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10922 def target_count @target_count end |
#time_unit ⇒ String
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
10928 10929 10930 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10928 def time_unit @time_unit end |
#time_unit_count ⇒ Fixnum
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
10935 10936 10937 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10935 def time_unit_count @time_unit_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10942 10943 10944 10945 10946 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 10942 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 |