Class: Google::Apis::YoutubePartnerV1::VideoAdvertisingOption

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VideoAdvertisingOption

Returns a new instance of VideoAdvertisingOption.



4034
4035
4036
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4034

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ad_breaksArray<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



3987
3988
3989
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3987

def ad_breaks
  @ad_breaks
end

#ad_formatsArray<String>

A list of ad formats that the video is allowed to show. Corresponds to the JSON property adFormats

Returns:

  • (Array<String>)


3992
3993
3994
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3992

def ad_formats
  @ad_formats
end

#auto_generated_breaksBoolean Also known as: auto_generated_breaks?

Enables this video for automatically generated midroll breaks. Corresponds to the JSON property autoGeneratedBreaks

Returns:

  • (Boolean)


3997
3998
3999
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 3997

def auto_generated_breaks
  @auto_generated_breaks
end

#break_positionArray<String>

The point at which the break occurs during the video playback. Corresponds to the JSON property breakPosition

Returns:

  • (Array<String>)


4003
4004
4005
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4003

def break_position
  @break_position
end

#idString

The ID that YouTube uses to uniquely identify the video associated with the advertising settings. Corresponds to the JSON property id

Returns:

  • (String)


4009
4010
4011
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4009

def id
  @id
end

#kindString

The type of the API resource. For this resource, the value is youtubePartner# videoAdvertisingOption. Corresponds to the JSON property kind

Returns:

  • (String)


4015
4016
4017
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4015

def kind
  @kind
end

#tp_ad_server_video_idString

A value that uniquely identifies the video to the third-party ad server. Corresponds to the JSON property tpAdServerVideoId

Returns:

  • (String)


4020
4021
4022
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4020

def tp_ad_server_video_id
  @tp_ad_server_video_id
end

#tp_targeting_urlString

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

Returns:

  • (String)


4026
4027
4028
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4026

def tp_targeting_url
  @tp_targeting_url
end

#tp_url_parametersString

A parameter string to append to the end of the request to the third-party ad server. Corresponds to the JSON property tpUrlParameters

Returns:

  • (String)


4032
4033
4034
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4032

def tp_url_parameters
  @tp_url_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 4039

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