Uploads and creates an ad asset.
Returns the ID of the newly-created ad asset if successful.
Only supports the uploading of assets with the AdAssetType AD_ASSET_TYPE_IMAGE.
HTTP request
- Upload URI, for media upload requests:POST https://displayvideo.googleapis.com/upload/v4/advertisers/{advertiserId}/adAssets:uploadAdAsset
- Metadata URI, for metadata-only requests:POST https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/adAssets:uploadAdAsset
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| advertiserId | 
 Required. The ID of the advertiser this ad asset belongs to. | 
Request body
The request body contains data with the following structure:
| JSON representation | 
|---|
| {
  "filename": string,
  "adAssetType": enum ( | 
| Fields | |
|---|---|
| filename | 
 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. | 
| adAssetType | 
 Required. The type of the ad asset. Only  | 
Response body
A response message for adAssets.upload.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "adAsset": {
    object ( | 
| Fields | |
|---|---|
| adAsset | 
 The created ad asset. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/display-video
For more information, see the OAuth 2.0 Overview.