Class: Google::Apis::DisplayvideoV4::YoutubeVideoDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/representations.rb

Overview

Details of a YouTube video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ YoutubeVideoDetails

Returns a new instance of YoutubeVideoDetails.



15970
15971
15972
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15970

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

Instance Attribute Details

#idString

Output only. The YouTube video ID which can be searched on YouTube webpage. Corresponds to the JSON property id

Returns:

  • (String)


15957
15958
15959
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15957

def id
  @id
end

#unavailable_reasonString

The reason why the video data is not available. Corresponds to the JSON property unavailableReason

Returns:

  • (String)


15962
15963
15964
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15962

def unavailable_reason
  @unavailable_reason
end

#video_asset_idFixnum

Required. The YouTube video asset id. This is the adAssetId of an AdAsset resource. Corresponds to the JSON property videoAssetId

Returns:

  • (Fixnum)


15968
15969
15970
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15968

def video_asset_id
  @video_asset_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15975
15976
15977
15978
15979
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 15975

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @unavailable_reason = args[:unavailable_reason] if args.key?(:unavailable_reason)
  @video_asset_id = args[:video_asset_id] if args.key?(:video_asset_id)
end