Class: Google::Apis::DisplayvideoV4::AdAsset

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_idFixnum

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

Returns:

  • (Fixnum)


84
85
86
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 84

def ad_asset_id
  @ad_asset_id
end

#ad_asset_typeString

Required. The type of the ad asset. Corresponds to the JSON property adAssetType

Returns:

  • (String)


89
90
91
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 89

def ad_asset_type
  @ad_asset_type
end

#entity_statusString

Output only. The entity status of the ad asset. Corresponds to the JSON property entityStatus

Returns:

  • (String)


94
95
96
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 94

def entity_status
  @entity_status
end

#nameString

Identifier. The resource name of the ad asset. Corresponds to the JSON property name

Returns:

  • (String)


99
100
101
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 99

def name
  @name
end

#youtube_video_assetGoogle::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