Class: Google::Apis::DisplayvideoV3::Asset

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/representations.rb

Overview

A single asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Asset

Returns a new instance of Asset.



1081
1082
1083
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1081

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

Instance Attribute Details

#contentString

The asset content. For uploaded assets, the content is the serving path. Corresponds to the JSON property content

Returns:

  • (String)


1070
1071
1072
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1070

def content
  @content
end

#media_idFixnum

Media ID of the uploaded asset. This is a unique identifier for the asset. This ID can be passed to other API calls, e.g. CreateCreative to associate the asset with a creative. The Media ID space updated on April 5, 2023. Update media IDs cached before April 5, 2023 by retrieving the new media ID from associated creative resources or re-uploading the asset. Corresponds to the JSON property mediaId

Returns:

  • (Fixnum)


1079
1080
1081
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1079

def media_id
  @media_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1086
1087
1088
1089
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1086

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @media_id = args[:media_id] if args.key?(:media_id)
end