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.



111
112
113
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 111

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

#synthetic_content_attestation_statusString

Optional. Whether the asset contains synthetic content or was created using AI. Corresponds to the JSON property syntheticContentAttestationStatus

Returns:

  • (String)


104
105
106
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 104

def synthetic_content_attestation_status
  @synthetic_content_attestation_status
end

#youtube_video_assetGoogle::Apis::DisplayvideoV4::YoutubeVideoAsset

Data for a YouTube video ad asset. Corresponds to the JSON property youtubeVideoAsset



109
110
111
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 109

def youtube_video_asset
  @youtube_video_asset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



116
117
118
119
120
121
122
123
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 116

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)
  @synthetic_content_attestation_status = args[:synthetic_content_attestation_status] if args.key?(:synthetic_content_attestation_status)
  @youtube_video_asset = args[:youtube_video_asset] if args.key?(:youtube_video_asset)
end