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.



34671
34672
34673
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34671

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)


34648
34649
34650
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34648

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)


34653
34654
34655
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34653

def duration_millis
  @duration_millis
end

#idString

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

Returns:

  • (String)


34658
34659
34660
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34658

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)


34664
34665
34666
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34664

def resource_name
  @resource_name
end

#titleString

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

Returns:

  • (String)


34669
34670
34671
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34669

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34676
34677
34678
34679
34680
34681
34682
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34676

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