Class: Google::Apis::YoutubeV3::InvideoPromotion
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::InvideoPromotion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/representations.rb
Overview
Describes an invideo promotion campaign consisting of multiple promoted items. A campaign belongs to a single channel_id.
Instance Attribute Summary collapse
-
#default_timing ⇒ Google::Apis::YoutubeV3::InvideoTiming
Describes a temporal position of a visual widget inside a video.
-
#items ⇒ Array<Google::Apis::YoutubeV3::PromotedItem>
List of promoted items in decreasing priority.
-
#position ⇒ Google::Apis::YoutubeV3::InvideoPosition
Describes the spatial position of a visual widget inside a video.
-
#use_smart_timing ⇒ Boolean
(also: #use_smart_timing?)
Indicates whether the channel's promotional campaign uses "smart timing." This feature attempts to show promotions at a point in the video when they are more likely to be clicked and less likely to disrupt the viewing experience.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InvideoPromotion
constructor
A new instance of InvideoPromotion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InvideoPromotion
Returns a new instance of InvideoPromotion.
3589 3590 3591 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3589 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_timing ⇒ Google::Apis::YoutubeV3::InvideoTiming
Describes a temporal position of a visual widget inside a video.
Corresponds to the JSON property defaultTiming
3567 3568 3569 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3567 def default_timing @default_timing end |
#items ⇒ Array<Google::Apis::YoutubeV3::PromotedItem>
List of promoted items in decreasing priority.
Corresponds to the JSON property items
3572 3573 3574 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3572 def items @items end |
#position ⇒ Google::Apis::YoutubeV3::InvideoPosition
Describes the spatial position of a visual widget inside a video. It is a
union of various position types, out of which only will be set one.
Corresponds to the JSON property position
3578 3579 3580 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3578 def position @position end |
#use_smart_timing ⇒ Boolean Also known as: use_smart_timing?
Indicates whether the channel's promotional campaign uses "smart timing." This
feature attempts to show promotions at a point in the video when they are more
likely to be clicked and less likely to disrupt the viewing experience. This
feature also picks up a single promotion to show on each video.
Corresponds to the JSON property useSmartTiming
3586 3587 3588 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3586 def use_smart_timing @use_smart_timing end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3594 3595 3596 3597 3598 3599 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 3594 def update!(**args) @default_timing = args[:default_timing] if args.key?(:default_timing) @items = args[:items] if args.key?(:items) @position = args[:position] if args.key?(:position) @use_smart_timing = args[:use_smart_timing] if args.key?(:use_smart_timing) end |