Class: Google::Apis::DisplayvideoV4::VideoAdInventoryControl
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV4::VideoAdInventoryControl
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/representations.rb
Overview
The video ad inventory control used in certain YouTube line item types.
Instance Attribute Summary collapse
-
#allow_in_feed ⇒ Boolean
(also: #allow_in_feed?)
Optional.
-
#allow_in_stream ⇒ Boolean
(also: #allow_in_stream?)
Optional.
-
#allow_non_skippable_in_stream ⇒ Boolean
(also: #allow_non_skippable_in_stream?)
Optional.
-
#allow_shorts ⇒ Boolean
(also: #allow_shorts?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoAdInventoryControl
constructor
A new instance of VideoAdInventoryControl.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VideoAdInventoryControl
Returns a new instance of VideoAdInventoryControl.
14227 14228 14229 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14227 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_in_feed ⇒ Boolean Also known as: allow_in_feed?
Optional. Whether ads can serve as in-feed format.
Corresponds to the JSON property allowInFeed
14206 14207 14208 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14206 def allow_in_feed @allow_in_feed end |
#allow_in_stream ⇒ Boolean Also known as: allow_in_stream?
Optional. Whether ads can serve as in-stream format.
Corresponds to the JSON property allowInStream
14212 14213 14214 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14212 def allow_in_stream @allow_in_stream end |
#allow_non_skippable_in_stream ⇒ Boolean 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
14218 14219 14220 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14218 def allow_non_skippable_in_stream @allow_non_skippable_in_stream end |
#allow_shorts ⇒ Boolean Also known as: allow_shorts?
Optional. Whether ads can serve as shorts format.
Corresponds to the JSON property allowShorts
14224 14225 14226 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14224 def allow_shorts @allow_shorts end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14232 14233 14234 14235 14236 14237 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14232 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 |