Class: Google::Apis::DfareportingV2_1::DeliverySchedule
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_1::DeliverySchedule
- Includes:
- Core::Hashable
- Defined in:
- generated/google/apis/dfareporting_v2_1/classes.rb,
generated/google/apis/dfareporting_v2_1/representations.rb,
generated/google/apis/dfareporting_v2_1/representations.rb
Overview
Delivery Schedule.
Instance Attribute Summary collapse
-
#frequency_cap ⇒ Google::Apis::DfareportingV2_1::FrequencyCap
Frequency Cap.
-
#hard_cutoff ⇒ Boolean
(also: #hard_cutoff?)
Whether or not hard cutoff is enabled.
-
#impression_ratio ⇒ String
Impression ratio for this ad.
-
#priority ⇒ String
Serving priority of an ad, with respect to other ads.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeliverySchedule
constructor
A new instance of DeliverySchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DeliverySchedule
Returns a new instance of DeliverySchedule
4036 4037 4038 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4036 def initialize(**args) update!(**args) end |
Instance Attribute Details
#frequency_cap ⇒ Google::Apis::DfareportingV2_1::FrequencyCap
Frequency Cap.
Corresponds to the JSON property frequencyCap
4012 4013 4014 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4012 def frequency_cap @frequency_cap end |
#hard_cutoff ⇒ Boolean Also known as: hard_cutoff?
Whether or not hard cutoff is enabled. If true, the ad will not serve after
the end date and time. Otherwise the ad will continue to be served until it
has reached its delivery goals.
Corresponds to the JSON property hardCutoff
4019 4020 4021 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4019 def hard_cutoff @hard_cutoff end |
#impression_ratio ⇒ String
Impression ratio for this ad. This ratio determines how often each ad is
served relative to the others. For example, if ad A has an impression ratio of
1 and ad B has an impression ratio of 3, then DCM will serve ad B three times
as often as ad A. Must be between 1 and 10.
Corresponds to the JSON property impressionRatio
4028 4029 4030 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4028 def impression_ratio @impression_ratio end |
#priority ⇒ String
Serving priority of an ad, with respect to other ads. The lower the priority
number, the greater the priority with which it is served.
Corresponds to the JSON property priority
4034 4035 4036 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4034 def priority @priority end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4041 4042 4043 4044 4045 4046 |
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 4041 def update!(**args) @frequency_cap = args[:frequency_cap] unless args[:frequency_cap].nil? @hard_cutoff = args[:hard_cutoff] unless args[:hard_cutoff].nil? @impression_ratio = args[:impression_ratio] unless args[:impression_ratio].nil? @priority = args[:priority] unless args[:priority].nil? end |