Class: Google::Apis::DisplayvideoV4::UploadAdAssetRequest

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 request message for UploadAdAsset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UploadAdAssetRequest

Returns a new instance of UploadAdAssetRequest.



14048
14049
14050
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14048

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ad_asset_typeString

Required. The type of the ad asset. Only AD_ASSET_TYPE_IMAGE is supported. Corresponds to the JSON property adAssetType

Returns:

  • (String)


14040
14041
14042
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14040

def ad_asset_type
  @ad_asset_type
end

#filenameString

Required. The filename of the ad asset, including the file extension. The filename must be UTF-8 encoded with a maximum size of 240 bytes. Corresponds to the JSON property filename

Returns:

  • (String)


14046
14047
14048
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14046

def filename
  @filename
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14053
14054
14055
14056
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 14053

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