Class: Google::Apis::DisplayvideoV4::AdAsset
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV4::AdAsset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/representations.rb
Overview
A single ad asset.
Instance Attribute Summary collapse
-
#ad_asset_id ⇒ Fixnum
Output only.
-
#ad_asset_type ⇒ String
Required.
-
#entity_status ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#youtube_video_asset ⇒ Google::Apis::DisplayvideoV4::YoutubeVideoAsset
Data for a YouTube video ad asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdAsset
constructor
A new instance of AdAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdAsset
Returns a new instance of AdAsset.
106 107 108 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 106 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ad_asset_id ⇒ Fixnum
Output only. The ID of the ad asset. Referred to as the asset ID when assigned
to an ad.
Corresponds to the JSON property adAssetId
84 85 86 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 84 def ad_asset_id @ad_asset_id end |
#ad_asset_type ⇒ String
Required. The type of the ad asset.
Corresponds to the JSON property adAssetType
89 90 91 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 89 def ad_asset_type @ad_asset_type end |
#entity_status ⇒ String
Output only. The entity status of the ad asset.
Corresponds to the JSON property entityStatus
94 95 96 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 94 def entity_status @entity_status end |
#name ⇒ String
Identifier. The resource name of the ad asset.
Corresponds to the JSON property name
99 100 101 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 99 def name @name end |
#youtube_video_asset ⇒ Google::Apis::DisplayvideoV4::YoutubeVideoAsset
Data for a YouTube video ad asset.
Corresponds to the JSON property youtubeVideoAsset
104 105 106 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 104 def youtube_video_asset @youtube_video_asset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
111 112 113 114 115 116 117 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 111 def update!(**args) @ad_asset_id = args[:ad_asset_id] if args.key?(:ad_asset_id) @ad_asset_type = args[:ad_asset_type] if args.key?(:ad_asset_type) @entity_status = args[:entity_status] if args.key?(:entity_status) @name = args[:name] if args.key?(:name) @youtube_video_asset = args[:youtube_video_asset] if args.key?(:youtube_video_asset) end |