class Google::Apis::DfareportingV2_1::Pricing

Pricing Information

Attributes

cap_cost_type[RW]

Cap cost type of this inventory item. Corresponds to the JSON property `capCostType` @return [String]

end_date[RW]

End date of this inventory item. Corresponds to the JSON property `endDate` @return [Date]

flights[RW]

Flights of this inventory item. A flight (a.k.a. pricing period) represents the inventory item pricing information for a specific period of time. Corresponds to the JSON property `flights` @return [Array<Google::Apis::DfareportingV2_1::Flight>]

group_type[RW]

Group type of this inventory item if it represents a placement group. Is null otherwise. There are two type of placement groups: PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items that acts as a single pricing point for a group of tags. PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that not only acts as a single pricing point, but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned inventory items to be marked as primary. Corresponds to the JSON property `groupType` @return [String]

pricing_type[RW]

Pricing type of this inventory item. Corresponds to the JSON property `pricingType` @return [String]

start_date[RW]

Start date of this inventory item. Corresponds to the JSON property `startDate` @return [Date]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 8102
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dfareporting_v2_1/classes.rb, line 8107
def update!(**args)
  @cap_cost_type = args[:cap_cost_type] unless args[:cap_cost_type].nil?
  @end_date = args[:end_date] unless args[:end_date].nil?
  @flights = args[:flights] unless args[:flights].nil?
  @group_type = args[:group_type] unless args[:group_type].nil?
  @pricing_type = args[:pricing_type] unless args[:pricing_type].nil?
  @start_date = args[:start_date] unless args[:start_date].nil?
end