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
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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InventorySizeTargeting
Returns a new instance of InventorySizeTargeting
2042 2043 2044 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2042 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
2035 2036 2037 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2035 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
2040 2041 2042 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2040 def targeted_inventory_sizes @targeted_inventory_sizes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2047 2048 2049 2050 |
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2047 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 |