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.



34569
34570
34571
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34569

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)


34546
34547
34548
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34546

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)


34551
34552
34553
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34551

def duration_millis
  @duration_millis
end

#idString

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

Returns:

  • (String)


34556
34557
34558
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34556

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)


34562
34563
34564
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34562

def resource_name
  @resource_name
end

#titleString

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

Returns:

  • (String)


34567
34568
34569
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34567

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34574
34575
34576
34577
34578
34579
34580
# File 'lib/google/apis/searchads360_v23/classes.rb', line 34574

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