Method: media.upload

  • Display & Video 360 API v1 has been sunset and this documentation pertains to media uploads using the current API.

  • Media uploads are facilitated through the /upload/media/{resourceName=**}?upload_type=media endpoint using a POST request.

  • The request body should contain a Media object as defined in the API reference, and a successful response will return the same.

  • Authorization requires specific OAuth scopes like https://www.googleapis.com/auth/display-video or https://www.googleapis.com/auth/doubleclickbidmanager.

Uploads media. Upload is supported on the URI /upload/media/{resourceName=**}?upload_type=media.

Note: Upload requests will not be successful without including upload_type=media query string.

HTTP request

  • Upload URI, for media upload requests:
    POST https://displayvideo.googleapis.com/upload/media/{resourceName=**}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
resourceName

string

Name of the media that is being downloaded. See ReadRequest.resource_name.

Request body

The request body contains an instance of Media.

Response body

If successful, the response body contains an instance of Media.

Authorization Scopes

Requires one of the following OAuth scopes:

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

For more information, see the OAuth 2.0 Overview.