Class: Google::Apis::YoutubePartnerV1::VideoAdvertisingOption
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::VideoAdvertisingOption
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_partner_v1/classes.rb,
generated/google/apis/youtube_partner_v1/representations.rb,
generated/google/apis/youtube_partner_v1/representations.rb
Instance Attribute Summary collapse
-
#ad_breaks ⇒ Array<Google::Apis::YoutubePartnerV1::AdBreak>
A list of times when YouTube can show an in-stream advertisement during playback of the video.
-
#ad_formats ⇒ Array<String>
A list of ad formats that the video is allowed to show.
-
#auto_generated_breaks ⇒ Boolean
(also: #auto_generated_breaks?)
Enables this video for automatically generated midroll breaks.
-
#break_position ⇒ Array<String>
The point at which the break occurs during the video playback.
-
#id ⇒ String
The ID that YouTube uses to uniquely identify the video associated with the advertising settings.
-
#kind ⇒ String
The type of the API resource.
-
#tp_ad_server_video_id ⇒ String
A value that uniquely identifies the video to the third-party ad server.
-
#tp_targeting_url ⇒ String
The base URL for a third-party ad server from which YouTube can retrieve in- stream ads for the video.
-
#tp_url_parameters ⇒ String
A parameter string to append to the end of the request to the third-party ad server.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoAdvertisingOption
constructor
A new instance of VideoAdvertisingOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VideoAdvertisingOption
Returns a new instance of VideoAdvertisingOption
3837 3838 3839 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3837 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_breaks ⇒ Array<Google::Apis::YoutubePartnerV1::AdBreak>
A list of times when YouTube can show an in-stream advertisement during
playback of the video.
Corresponds to the JSON property adBreaks
3790 3791 3792 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3790 def ad_breaks @ad_breaks end |
#ad_formats ⇒ Array<String>
A list of ad formats that the video is allowed to show.
Corresponds to the JSON property adFormats
3795 3796 3797 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3795 def ad_formats @ad_formats end |
#auto_generated_breaks ⇒ Boolean Also known as: auto_generated_breaks?
Enables this video for automatically generated midroll breaks.
Corresponds to the JSON property autoGeneratedBreaks
3800 3801 3802 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3800 def auto_generated_breaks @auto_generated_breaks end |
#break_position ⇒ Array<String>
The point at which the break occurs during the video playback.
Corresponds to the JSON property breakPosition
3806 3807 3808 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3806 def break_position @break_position end |
#id ⇒ String
The ID that YouTube uses to uniquely identify the video associated with the
advertising settings.
Corresponds to the JSON property id
3812 3813 3814 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3812 def id @id end |
#kind ⇒ String
The type of the API resource. For this resource, the value is youtubePartner#
videoAdvertisingOption.
Corresponds to the JSON property kind
3818 3819 3820 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3818 def kind @kind end |
#tp_ad_server_video_id ⇒ String
A value that uniquely identifies the video to the third-party ad server.
Corresponds to the JSON property tpAdServerVideoId
3823 3824 3825 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3823 def tp_ad_server_video_id @tp_ad_server_video_id end |
#tp_targeting_url ⇒ 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
3829 3830 3831 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3829 def tp_targeting_url @tp_targeting_url end |
#tp_url_parameters ⇒ String
A parameter string to append to the end of the request to the third-party ad
server.
Corresponds to the JSON property tpUrlParameters
3835 3836 3837 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3835 def tp_url_parameters @tp_url_parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3842 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 |