Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonYouTubeVideoAttributeMetadata

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

Instance Method Summary collapse

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_countFixnum

The total number of comments. Corresponds to the JSON property commentsCount

Returns:

  • (Fixnum)


13217
13218
13219
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13217

def comments_count
  @comments_count
end

#likes_countFixnum

The total number of likes. Corresponds to the JSON property likesCount

Returns:

  • (Fixnum)


13222
13223
13224
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13222

def likes_count
  @likes_count
end

#publish_dateString

The date that the video was created. Formatted as "yyyy-mm-dd". Corresponds to the JSON property publishDate

Returns:

  • (String)


13227
13228
13229
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13227

def publish_date
  @publish_date
end

#thumbnail_urlString

The URL of the video thumbnail, prefixed by "https://img.youtube.com/". Corresponds to the JSON property thumbnailUrl

Returns:

  • (String)


13232
13233
13234
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13232

def thumbnail_url
  @thumbnail_url
end

#video_propertiesArray<String>

The properties of this video (such as shorts, live stream). Corresponds to the JSON property videoProperties

Returns:

  • (Array<String>)


13237
13238
13239
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13237

def video_properties
  @video_properties
end

#video_urlString

The URL of the video, prefixed by "https://www.youtube.com/". Corresponds to the JSON property videoUrl

Returns:

  • (String)


13242
13243
13244
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13242

def video_url
  @video_url
end

#views_countFixnum

The total number of views. Corresponds to the JSON property viewsCount

Returns:

  • (Fixnum)


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