Method: inventorySources.create

  • Display & Video 360 API v2 has been sunset and this documentation details creating a new inventory source using the API.

  • To create an inventory source, send a POST request to the specified endpoint with the required parameters in the request body.

  • The request must include authorization with the https://www.googleapis.com/auth/display-video scope.

  • Upon successful creation, the API returns the newly created inventory source object in the response body.

Creates a new inventory source. Returns the newly created inventory source if successful.

HTTP request

POST https://displayvideo.googleapis.com/v2/inventorySources

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters

Union parameter accessor. Required.

Identifies which DV360 entity the request is being made within. accessor can be only one of the following:

partnerId

string (int64 format)

The ID of the partner that the request is being made within.

advertiserId

string (int64 format)

The ID of the advertiser that the request is being made within.

Request body

The request body contains an instance of InventorySource.

Response body

If successful, the response body contains a newly created instance of InventorySource.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.