Class: Google::Apis::DfareportingV2_3::DeliverySchedule

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

Overview

Delivery Schedule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DeliverySchedule

Returns a new instance of DeliverySchedule



4088
4089
4090
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4088

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

Instance Attribute Details

#frequency_capGoogle::Apis::DfareportingV2_3::FrequencyCap

Frequency Cap. Corresponds to the JSON property frequencyCap



4064
4065
4066
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4064

def frequency_cap
  @frequency_cap
end

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

Returns:

  • (Boolean)


4071
4072
4073
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4071

def hard_cutoff
  @hard_cutoff
end

#impression_ratioString

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

Returns:

  • (String)


4080
4081
4082
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4080

def impression_ratio
  @impression_ratio
end

#priorityString

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

Returns:

  • (String)


4086
4087
4088
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4086

def priority
  @priority
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4093
4094
4095
4096
4097
4098
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4093

def update!(**args)
  @frequency_cap = args[:frequency_cap] if args.key?(:frequency_cap)
  @hard_cutoff = args[:hard_cutoff] if args.key?(:hard_cutoff)
  @impression_ratio = args[:impression_ratio] if args.key?(:impression_ratio)
  @priority = args[:priority] if args.key?(:priority)
end