class Google::Apis::YoutubeV3::InvideoPromotion

Describes an invideo promotion campaign consisting of multiple promoted items. A campaign belongs to a single channel_id.

Attributes

default_timing[RW]

Describes a temporal position of a visual widget inside a video. Corresponds to the JSON property `defaultTiming` @return [Google::Apis::YoutubeV3::InvideoTiming]

items[RW]

List of promoted items in decreasing priority. Corresponds to the JSON property `items` @return [Array<Google::Apis::YoutubeV3::PromotedItem>]

position[RW]

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` @return [Google::Apis::YoutubeV3::InvideoPosition]

use_smart_timing[RW]

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` @return [Boolean]

use_smart_timing?[RW]

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` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 3571
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_v3/classes.rb, line 3576
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