Class: Google::Apis::Adexchangebuyer2V2beta1::InventorySizeTargeting
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::InventorySizeTargeting
- 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 more...
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
-
#excluded_inventory_sizes ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::AdSize>
A list of inventory sizes to be excluded.
-
#targeted_inventory_sizes ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::AdSize>
A list of inventory sizes to be included.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InventorySizeTargeting
constructor
A new instance of InventorySizeTargeting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InventorySizeTargeting
Returns a new instance of InventorySizeTargeting.
2001 2002 2003 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2001 def initialize(**args) update!(**args) end |
Instance Attribute Details
#excluded_inventory_sizes ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::AdSize>
A list of inventory sizes to be excluded.
Corresponds to the JSON property excludedInventorySizes
1994 1995 1996 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1994 def excluded_inventory_sizes @excluded_inventory_sizes end |
#targeted_inventory_sizes ⇒ Array<Google::Apis::Adexchangebuyer2V2beta1::AdSize>
A list of inventory sizes to be included.
Corresponds to the JSON property targetedInventorySizes
1999 2000 2001 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1999 def targeted_inventory_sizes @targeted_inventory_sizes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2006 2007 2008 2009 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2006 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 |