AI-generated Key Takeaways
-
Display & Video 360 API v1 is sunset and this document outlines the process for uploading assets using the v1 API.
-
Assets such as images, ZIP files, and videos can be uploaded, with size limits of 10 MB, 200 MB, and 1 GB respectively.
-
The upload process utilizes a multipart media upload and requires specifying the advertiser ID and filename.
-
A successful upload returns the ID of the newly created asset.
-
Authorization is necessary using the
https://www.googleapis.com/auth/display-video
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/v1/advertisers/{advertiserId}/assets
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
advertiserId |
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 |
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
If successful, the response body contains data with the following structure:
A response message for assets.upload
.
JSON representation |
---|
{
"asset": {
object ( |
Fields | |
---|---|
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.