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.


2001
2002
2003
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2001

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


1994
1995
1996
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1994

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


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