class Google::Apis::YoutubePartnerV1::VideoAdvertisingOption

Attributes

ad_breaks[RW]

A list of times when YouTube can show an in-stream advertisement during playback of the video. Corresponds to the JSON property `adBreaks` @return [Array<Google::Apis::YoutubePartnerV1::AdBreak>]

ad_formats[RW]

A list of ad formats that the video is allowed to show. Corresponds to the JSON property `adFormats` @return [Array<String>]

auto_generated_breaks[RW]

Enables this video for automatically generated midroll breaks. Corresponds to the JSON property `autoGeneratedBreaks` @return [Boolean]

auto_generated_breaks?[RW]

Enables this video for automatically generated midroll breaks. Corresponds to the JSON property `autoGeneratedBreaks` @return [Boolean]

break_position[RW]

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

id[RW]

The ID that YouTube uses to uniquely identify the video associated with the advertising settings. Corresponds to the JSON property `id` @return [String]

kind[RW]

The type of the API resource. For this resource, the value is youtubePartner# videoAdvertisingOption. Corresponds to the JSON property `kind` @return [String]

tp_ad_server_video_id[RW]

A value that uniquely identifies the video to the third-party ad server. Corresponds to the JSON property `tpAdServerVideoId` @return [String]

tp_targeting_url[RW]

The base URL for a third-party ad server from which YouTube can retrieve in- stream ads for the video. Corresponds to the JSON property `tpTargetingUrl` @return [String]

tp_url_parameters[RW]

A parameter string to append to the end of the request to the third-party ad server. Corresponds to the JSON property `tpUrlParameters` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/youtube_partner_v1/classes.rb, line 4456
def update!(**args)
  @ad_breaks = args[:ad_breaks] if args.key?(:ad_breaks)
  @ad_formats = args[:ad_formats] if args.key?(:ad_formats)
  @auto_generated_breaks = args[:auto_generated_breaks] if args.key?(:auto_generated_breaks)
  @break_position = args[:break_position] if args.key?(:break_position)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @tp_ad_server_video_id = args[:tp_ad_server_video_id] if args.key?(:tp_ad_server_video_id)
  @tp_targeting_url = args[:tp_targeting_url] if args.key?(:tp_targeting_url)
  @tp_url_parameters = args[:tp_url_parameters] if args.key?(:tp_url_parameters)
end