Class: Google::Apis::DisplayvideoV2::Asset
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::Asset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb
Overview
A single asset.
Instance Attribute Summary collapse
-
#content ⇒ String
The asset content.
-
#media_id ⇒ Fixnum
Media ID of the uploaded asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Asset
constructor
A new instance of Asset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Asset
Returns a new instance of Asset.
626 627 628 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 626 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content ⇒ String
The asset content. For uploaded assets, the content is the serving path.
Corresponds to the JSON property content
612 613 614 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 612 def content @content end |
#media_id ⇒ Fixnum
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. On April 5, 2023, the value of this ID will be
updated. Before this date, we recommend that you stop using any cached media
IDs when creating or updating creatives, and instead upload assets immediately
before using them for creative production. After April 5, you can update
cached media IDs to the new values by retrieving them from associated creative
resources or re-uploading them.
Corresponds to the JSON property mediaId
624 625 626 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 624 def media_id @media_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
631 632 633 634 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 631 def update!(**args) @content = args[:content] if args.key?(:content) @media_id = args[:media_id] if args.key?(:media_id) end |