Method: advertisers.assets.upload

  • Display & Video 360 API v3 has sunset, and users should use v4 instead.

  • This method uploads an asset and returns its ID upon success, with file size limits of 10MB for images, 200MB for ZIPs, and 1GB for videos.

  • This method must be used within the multipart media upload process.

  • The upload uses a POST request to the specified URI, requiring an advertiser ID as a path parameter and a filename in the request body.

  • A successful response body contains the uploaded asset object, and the method requires the https://www.googleapis.com/auth/display-video authorization scope.

Uploads an asset. Returns the ID of the newly uploaded asset if successful. The asset file size should be no more than 10 MB for images, 200 MB for ZIP files, and 1 GB for videos.

Must be used within the multipart media upload process. Examples using provided client libraries can be found in our Creating Creatives guide.

HTTP request

  • Upload URI, for media upload requests:
    POST https://displayvideo.googleapis.com/upload/v3/advertisers/{advertiserId}/assets

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
advertiserId

string (int64 format)

Required. The ID of the advertiser this asset belongs to.

Request body

The request body contains data with the following structure:

JSON representation
{
  "filename": string
}
Fields
filename

string

Required. The filename of the asset, including the file extension.

The filename must be UTF-8 encoded with a maximum size of 240 bytes.

Response body

A response message for assets.upload.

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

JSON representation
{
  "asset": {
    object (Asset)
  }
}
Fields
asset

object (Asset)

The uploaded asset, if successful.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/display-video

For more information, see the OAuth 2.0 Overview.