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.



13375
13376
13377
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13375

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

Instance Attribute Details

#comments_countFixnum

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

Returns:

  • (Fixnum)


13343
13344
13345
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13343

def comments_count
  @comments_count
end

#likes_countFixnum

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

Returns:

  • (Fixnum)


13348
13349
13350
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13348

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)


13353
13354
13355
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13353

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)


13358
13359
13360
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13358

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>)


13363
13364
13365
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13363

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)


13368
13369
13370
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13368

def video_url
  @video_url
end

#views_countFixnum

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

Returns:

  • (Fixnum)


13373
13374
13375
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13373

def views_count
  @views_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13380
13381
13382
13383
13384
13385
13386
13387
13388
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13380

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