class Google::Apis::YoutubePartnerV1::AdBreak

Attributes

midroll_seconds[RW]

The time of the ad break specified as the number of seconds after the start of the video when the break occurs. Corresponds to the JSON property `midrollSeconds` @return [Fixnum]

position[RW]

The point at which the break occurs during the video playback. Corresponds to the JSON property `position` @return [String]

slot[RW]

A list of ad slots that occur in an ad break. Ad slots let you specify the number of ads that should run in each break. Corresponds to the JSON property `slot` @return [Array<Google::Apis::YoutubePartnerV1::AdSlot>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_partner_v1/classes.rb, line 46
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_partner_v1/classes.rb, line 51
def update!(**args)
  @midroll_seconds = args[:midroll_seconds] if args.key?(:midroll_seconds)
  @position = args[:position] if args.key?(:position)
  @slot = args[:slot] if args.key?(:slot)
end