class Google::Apis::YoutubePartnerV1::VideoAdvertisingOption
Attributes
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>]
A list of ad formats that the video is allowed to show. Corresponds to the JSON property `adFormats` @return [Array<String>]
Enables this video for automatically generated midroll breaks. Corresponds to the JSON property `autoGeneratedBreaks` @return [Boolean]
Enables this video for automatically generated midroll breaks. Corresponds to the JSON property `autoGeneratedBreaks` @return [Boolean]
The point at which the break occurs during the video playback. Corresponds to the JSON property `breakPosition` @return [Array<String>]
The ID that YouTube uses to uniquely identify the video associated with the advertising settings. Corresponds to the JSON property `id` @return [String]
The type of the API resource. For this resource, the value is youtubePartner# videoAdvertisingOption. Corresponds to the JSON property `kind` @return [String]
A value that uniquely identifies the video to the third-party ad server. Corresponds to the JSON property `tpAdServerVideoId` @return [String]
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]
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
# File lib/google/apis/youtube_partner_v1/classes.rb, line 4451 def initialize(**args) update!(**args) end
Public Instance Methods
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