Class: Google::Apis::DisplayvideoV1::Asset

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

Overview

A single asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Asset

Returns a new instance of Asset.



572
573
574
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 572

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)


562
563
564
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 562

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. Corresponds to the JSON property mediaId

Returns:

  • (Fixnum)


570
571
572
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 570

def media_id
  @media_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



577
578
579
580
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 577

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