Class: Google::Apis::DisplayvideoV3::VideoAdInventoryControl

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 video ad inventory control used in certain YouTube line item types.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoAdInventoryControl

Returns a new instance of VideoAdInventoryControl.



13176
13177
13178
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 13176

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

Instance Attribute Details

#allow_in_feedBoolean Also known as: allow_in_feed?

Optional. Whether ads can serve as in-feed format. Corresponds to the JSON property allowInFeed

Returns:

  • (Boolean)


13155
13156
13157
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 13155

def allow_in_feed
  @allow_in_feed
end

#allow_in_streamBoolean Also known as: allow_in_stream?

Optional. Whether ads can serve as in-stream format. Corresponds to the JSON property allowInStream

Returns:

  • (Boolean)


13161
13162
13163
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 13161

def allow_in_stream
  @allow_in_stream
end

#allow_non_skippable_in_streamBoolean Also known as: allow_non_skippable_in_stream?

Optional. Indicates whether ads can serve as non-skippable in-stream format. Corresponds to the JSON property allowNonSkippableInStream

Returns:

  • (Boolean)


13167
13168
13169
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 13167

def allow_non_skippable_in_stream
  @allow_non_skippable_in_stream
end

#allow_shortsBoolean Also known as: allow_shorts?

Optional. Whether ads can serve as shorts format. Corresponds to the JSON property allowShorts

Returns:

  • (Boolean)


13173
13174
13175
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 13173

def allow_shorts
  @allow_shorts
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13181
13182
13183
13184
13185
13186
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 13181

def update!(**args)
  @allow_in_feed = args[:allow_in_feed] if args.key?(:allow_in_feed)
  @allow_in_stream = args[:allow_in_stream] if args.key?(:allow_in_stream)
  @allow_non_skippable_in_stream = args[:allow_non_skippable_in_stream] if args.key?(:allow_non_skippable_in_stream)
  @allow_shorts = args[:allow_shorts] if args.key?(:allow_shorts)
end