Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYouTubeVideoAttributeMetadata
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYouTubeVideoAttributeMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/searchads360_v23/classes.rb,
lib/google/apis/searchads360_v23/representations.rb,
lib/google/apis/searchads360_v23/representations.rb
Overview
Metadata for a YouTube video attribute.
Instance Attribute Summary collapse
-
#comments_count ⇒ Fixnum
The total number of comments.
-
#likes_count ⇒ Fixnum
The total number of likes.
-
#publish_date ⇒ String
The date that the video was created.
-
#thumbnail_url ⇒ String
The URL of the video thumbnail, prefixed by "https://img.youtube.com/".
-
#video_properties ⇒ Array<String>
The properties of this video (such as shorts, live stream).
-
#video_url ⇒ String
The URL of the video, prefixed by "https://www.youtube.com/".
-
#views_count ⇒ Fixnum
The total number of views.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonYouTubeVideoAttributeMetadata
constructor
A new instance of GoogleAdsSearchads360V23CommonYouTubeVideoAttributeMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonYouTubeVideoAttributeMetadata
Returns a new instance of GoogleAdsSearchads360V23CommonYouTubeVideoAttributeMetadata.
13315 13316 13317 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13315 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comments_count ⇒ Fixnum
The total number of comments.
Corresponds to the JSON property commentsCount
13283 13284 13285 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13283 def comments_count @comments_count end |
#likes_count ⇒ Fixnum
The total number of likes.
Corresponds to the JSON property likesCount
13288 13289 13290 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13288 def likes_count @likes_count end |
#publish_date ⇒ String
The date that the video was created. Formatted as "yyyy-mm-dd".
Corresponds to the JSON property publishDate
13293 13294 13295 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13293 def publish_date @publish_date end |
#thumbnail_url ⇒ String
The URL of the video thumbnail, prefixed by "https://img.youtube.com/".
Corresponds to the JSON property thumbnailUrl
13298 13299 13300 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13298 def thumbnail_url @thumbnail_url end |
#video_properties ⇒ Array<String>
The properties of this video (such as shorts, live stream).
Corresponds to the JSON property videoProperties
13303 13304 13305 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13303 def video_properties @video_properties end |
#video_url ⇒ String
The URL of the video, prefixed by "https://www.youtube.com/".
Corresponds to the JSON property videoUrl
13308 13309 13310 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13308 def video_url @video_url end |
#views_count ⇒ Fixnum
The total number of views.
Corresponds to the JSON property viewsCount
13313 13314 13315 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13313 def views_count @views_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13320 13321 13322 13323 13324 13325 13326 13327 13328 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13320 def update!(**args) @comments_count = args[:comments_count] if args.key?(:comments_count) @likes_count = args[:likes_count] if args.key?(:likes_count) @publish_date = args[:publish_date] if args.key?(:publish_date) @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url) @video_properties = args[:video_properties] if args.key?(:video_properties) @video_url = args[:video_url] if args.key?(:video_url) @views_count = args[:views_count] if args.key?(:views_count) end |