Class: Google::Apis::DisplayvideoV3::AdGroupInventoryControl

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

Overview

The inventory control of the ad group.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdGroupInventoryControl

Returns a new instance of AdGroupInventoryControl.



341
342
343
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 341

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

Instance Attribute Details

#ad_group_inventory_strategyString

The inventory strategy. Corresponds to the JSON property adGroupInventoryStrategy

Returns:

  • (String)


334
335
336
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 334

def ad_group_inventory_strategy
  @ad_group_inventory_strategy
end

#selected_inventoriesGoogle::Apis::DisplayvideoV3::SelectedInventories

The inventory control of the ad group. Corresponds to the JSON property selectedInventories



339
340
341
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 339

def selected_inventories
  @selected_inventories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



346
347
348
349
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 346

def update!(**args)
  @ad_group_inventory_strategy = args[:ad_group_inventory_strategy] if args.key?(:ad_group_inventory_strategy)
  @selected_inventories = args[:selected_inventories] if args.key?(:selected_inventories)
end