class Google::Apis::Adexchangebuyer2V2beta1::InventorySizeTargeting

Represents the size of an ad unit that can be targeted on an ad request. It only applies to Private Auction, AdX Preferred Deals and Auction Packages. This targeting does not apply to Programmatic Guaranteed and Preferred Deals in Ad Manager.

Attributes

excluded_inventory_sizes[RW]

A list of inventory sizes to be excluded. Corresponds to the JSON property `excludedInventorySizes` @return [Array<Google::Apis::Adexchangebuyer2V2beta1::AdSize>]

targeted_inventory_sizes[RW]

A list of inventory sizes to be included. Corresponds to the JSON property `targetedInventorySizes` @return [Array<Google::Apis::Adexchangebuyer2V2beta1::AdSize>]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer2_v2beta1/classes.rb, line 2027
def update!(**args)
  @excluded_inventory_sizes = args[:excluded_inventory_sizes] if args.key?(:excluded_inventory_sizes)
  @targeted_inventory_sizes = args[:targeted_inventory_sizes] if args.key?(:targeted_inventory_sizes)
end