Method: advertisers.adAssets.upload

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

string (int64 format)

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 (AdAssetType)
}
Fields
filename

string

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

enum (AdAssetType)

Required. The type of the ad asset.

Only AD_ASSET_TYPE_IMAGE is supported.

Response body

A response message for adAssets.upload.

If successful, the response body contains data with the following structure:

JSON representation
{
  "adAsset": {
    object (AdAsset)
  }
}
Fields
adAsset

object (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.