Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesVideo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesVideo

Returns a new instance of GoogleAdsSearchads360V23ResourcesVideo.



34743
34744
34745
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34743

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

Instance Attribute Details

#channel_idString

Output only. The owner channel id of the video. Corresponds to the JSON property channelId

Returns:

  • (String)


34720
34721
34722
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34720

def channel_id
  @channel_id
end

#duration_millisFixnum

Output only. The duration of the video in milliseconds. Corresponds to the JSON property durationMillis

Returns:

  • (Fixnum)


34725
34726
34727
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34725

def duration_millis
  @duration_millis
end

#idString

Output only. The ID of the video. Corresponds to the JSON property id

Returns:

  • (String)


34730
34731
34732
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34730

def id
  @id
end

#resource_nameString

Output only. The resource name of the video. Video resource names have the form: customers/customer_id/videos/video_id` Corresponds to the JSON propertyresourceName`

Returns:

  • (String)


34736
34737
34738
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34736

def resource_name
  @resource_name
end

#titleString

Output only. The title of the video. Corresponds to the JSON property title

Returns:

  • (String)


34741
34742
34743
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34741

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34748
34749
34750
34751
34752
34753
34754
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34748

def update!(**args)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
  @id = args[:id] if args.key?(:id)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
  @title = args[:title] if args.key?(:title)
end