Class: Google::Apis::Adexchangebuyer2V2beta1::InventorySizeTargeting

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

Overview

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.

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) ⇒ InventorySizeTargeting

Returns a new instance of InventorySizeTargeting.



2051
2052
2053
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2051

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

Instance Attribute Details

#excluded_inventory_sizesArray<Google::Apis::Adexchangebuyer2V2beta1::AdSize>

A list of inventory sizes to be excluded. Corresponds to the JSON property excludedInventorySizes



2044
2045
2046
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2044

def excluded_inventory_sizes
  @excluded_inventory_sizes
end

#targeted_inventory_sizesArray<Google::Apis::Adexchangebuyer2V2beta1::AdSize>

A list of inventory sizes to be included. Corresponds to the JSON property targetedInventorySizes



2049
2050
2051
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2049

def targeted_inventory_sizes
  @targeted_inventory_sizes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2056
2057
2058
2059
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2056

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