Class: Google::Apis::Adexchangebuyer2V2beta1::InventorySizeTargeting
- Inherits:
-
Object
- Object
- Google::Apis::Adexchangebuyer2V2beta1::InventorySizeTargeting
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adexchangebuyer2_v2beta1/classes.rb,
lib/google/apis/adexchangebuyer2_v2beta1/representations.rb,
lib/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.
Constructor Details
#initialize(**args) ⇒ InventorySizeTargeting
Returns a new instance of InventorySizeTargeting.
2025 2026 2027 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2025 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
2018 2019 2020 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2018 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
2023 2024 2025 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2023 def targeted_inventory_sizes @targeted_inventory_sizes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2030 2031 2032 2033 |
# File 'lib/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2030 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 |