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.
13249 13250 13251 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13249 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comments_count ⇒ Fixnum
The total number of comments.
Corresponds to the JSON property commentsCount
13217 13218 13219 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13217 def comments_count @comments_count end |
#likes_count ⇒ Fixnum
The total number of likes.
Corresponds to the JSON property likesCount
13222 13223 13224 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13222 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
13227 13228 13229 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13227 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
13232 13233 13234 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13232 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
13237 13238 13239 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13237 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
13242 13243 13244 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13242 def video_url @video_url end |
#views_count ⇒ Fixnum
The total number of views.
Corresponds to the JSON property viewsCount
13247 13248 13249 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13247 def views_count @views_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13254 13255 13256 13257 13258 13259 13260 13261 13262 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13254 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 |