inventorySources

POST /v4/inventorySources

Changed on

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

Request

  • Base URL
    https://displayvideo.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/display-video
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/display-video

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

advertiserId, string int64

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

partnerId, string int64

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

Request body

InventorySource required

An inventory source.

commitment, 'INVENTORY_SOURCE_COMMITMENT_UNSPECIFIED' | 'INVENTORY_SOURCE_COMMITMENT_GUARANTEED' | 'INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED'

Whether the inventory source has a guaranteed or non-guaranteed delivery.

creativeConfigs, CreativeConfig[]

The creative requirements of the inventory source. Not applicable for auction packages.

dealId, string

The ID in the exchange space that uniquely identifies the inventory source. Must be unique across buyers within each exchange but not necessarily unique across exchanges.

deliveryMethod, 'INVENTORY_SOURCE_DELIVERY_METHOD_UNSPECIFIED' | 'INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC' | 'INVENTORY_SOURCE_DELIVERY_METHOD_TAG'

The delivery method of the inventory source. * For non-guaranteed inventory sources, the only acceptable value is INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC. * For guaranteed inventory sources, acceptable values are INVENTORY_SOURCE_DELIVERY_METHOD_TAG and INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC.

displayName, string

The display name of the inventory source. Must be UTF-8 encoded with a maximum size of 240 bytes.

exchange, 'EXCHANGE_UNSPECIFIED' | 'EXCHANGE_GOOGLE_AD_MANAGER' | 'EXCHANGE_APPNEXUS' | 'EXCHANGE_BRIGHTROLL' | 'EXCHANGE_ADFORM' | 'EXCHANGE_ADMETA' | 'EXCHANGE_ADMIXER' | 'EXCHANGE_ADSMOGO' | 'EXCHANGE_ADSWIZZ' | 'EXCHANGE_BIDSWITCH' | 'EXCHANGE_BRIGHTROLL_DISPLAY' | 'EXCHANGE_CADREON' | 'EXCHANGE_DAILYMOTION' | 'EXCHANGE_FIVE' | 'EXCHANGE_FLUCT' | 'EXCHANGE_FREEWHEEL' | 'EXCHANGE_GENIEE' | 'EXCHANGE_GUMGUM' | 'EXCHANGE_IMOBILE' | 'EXCHANGE_IBILLBOARD' | 'EXCHANGE_IMPROVE_DIGITAL' | 'EXCHANGE_INDEX' | 'EXCHANGE_KARGO' | 'EXCHANGE_MICROAD' | 'EXCHANGE_MOPUB' | 'EXCHANGE_NEND' | 'EXCHANGE_ONE_BY_AOL_DISPLAY' | 'EXCHANGE_ONE_BY_AOL_MOBILE' | 'EXCHANGE_ONE_BY_AOL_VIDEO' | 'EXCHANGE_OOYALA' | 'EXCHANGE_OPENX' | 'EXCHANGE_PERMODO' | 'EXCHANGE_PLATFORMONE' | 'EXCHANGE_PLATFORMID' | 'EXCHANGE_PUBMATIC' | 'EXCHANGE_PULSEPOINT' | 'EXCHANGE_REVENUEMAX' | 'EXCHANGE_RUBICON' | 'EXCHANGE_SMARTCLIP' | 'EXCHANGE_SMARTRTB' | 'EXCHANGE_SMARTSTREAMTV' | 'EXCHANGE_SOVRN' | 'EXCHANGE_SPOTXCHANGE' | 'EXCHANGE_STROER' | 'EXCHANGE_TEADSTV' | 'EXCHANGE_TELARIA' | 'EXCHANGE_TVN' | 'EXCHANGE_UNITED' | 'EXCHANGE_YIELDLAB' | 'EXCHANGE_YIELDMO' | 'EXCHANGE_UNRULYX' | 'EXCHANGE_OPEN8' | 'EXCHANGE_TRITON' | 'EXCHANGE_TRIPLELIFT' | 'EXCHANGE_TABOOLA' | 'EXCHANGE_INMOBI' | 'EXCHANGE_SMAATO' | 'EXCHANGE_AJA' | 'EXCHANGE_SUPERSHIP' | 'EXCHANGE_NEXSTAR_DIGITAL' | 'EXCHANGE_WAZE' | 'EXCHANGE_SOUNDCAST' | 'EXCHANGE_SHARETHROUGH' | 'EXCHANGE_FYBER' | 'EXCHANGE_RED_FOR_PUBLISHERS' | 'EXCHANGE_MEDIANET' | 'EXCHANGE_TAPJOY' | 'EXCHANGE_VISTAR' | 'EXCHANGE_DAX' | 'EXCHANGE_JCD' | 'EXCHANGE_PLACE_EXCHANGE' | 'EXCHANGE_APPLOVIN' | 'EXCHANGE_CONNATIX' | 'EXCHANGE_RESET_DIGITAL' | 'EXCHANGE_HIVESTACK' | 'EXCHANGE_DRAX' | 'EXCHANGE_APPLOVIN_GBID' | 'EXCHANGE_FYBER_GBID' | 'EXCHANGE_UNITY_GBID' | 'EXCHANGE_CHARTBOOST_GBID' | 'EXCHANGE_ADMOST_GBID' | 'EXCHANGE_TOPON_GBID' | 'EXCHANGE_NETFLIX' | 'EXCHANGE_CORE' | 'EXCHANGE_COMMERCE_GRID' | 'EXCHANGE_SPOTIFY' | 'EXCHANGE_TUBI' | 'EXCHANGE_SNAP' | 'EXCHANGE_CADENT' | 'EXCHANGE_EXTE'

The exchange to which the inventory source belongs.

guaranteedOrderId, string

Immutable. The ID of the guaranteed order that this inventory source belongs to. Only applicable when commitment is INVENTORY_SOURCE_COMMITMENT_GUARANTEED.

inventorySourceId, string int64

Output only. The unique ID of the inventory source. Assigned by the system.

inventorySourceProductType, 'INVENTORY_SOURCE_PRODUCT_TYPE_UNSPECIFIED' | 'PREFERRED_DEAL' | 'PRIVATE_AUCTION' | 'PROGRAMMATIC_GUARANTEED' | 'TAG_GUARANTEED' | 'YOUTUBE_RESERVE' | 'INSTANT_RESERVE' | 'GUARANTEED_PACKAGE' | 'PROGRAMMATIC_TV' | 'AUCTION_PACKAGE'

Output only. The product type of the inventory source, denoting the way through which it sells inventory.

inventorySourceType, 'INVENTORY_SOURCE_TYPE_UNSPECIFIED' | 'INVENTORY_SOURCE_TYPE_PRIVATE' | 'INVENTORY_SOURCE_TYPE_AUCTION_PACKAGE'

Denotes the type of the inventory source.

name, string

Output only. The resource name of the inventory source.

publisherName, string

The publisher/seller name of the inventory source.

rateDetails, RateDetails

The rate related settings of the inventory source.

readAdvertiserIds, string[]

Output only. The IDs of advertisers with read-only access to the inventory source.

readPartnerIds, string[]

Output only. The IDs of partners with read-only access to the inventory source. All advertisers of partners in this field inherit read-only access to the inventory source.

readWriteAccessors, InventorySourceAccessors

The partner or advertisers with access to the inventory source.

status, InventorySourceStatus

The status related settings of the inventory source.

timeRange, TimeRange

A time range.

updateTime, string google-datetime

Output only. The timestamp when the inventory source was last updated. Assigned by the system.

Response

Successful response

InventorySource required

An inventory source.

commitment, 'INVENTORY_SOURCE_COMMITMENT_UNSPECIFIED' | 'INVENTORY_SOURCE_COMMITMENT_GUARANTEED' | 'INVENTORY_SOURCE_COMMITMENT_NON_GUARANTEED'

Whether the inventory source has a guaranteed or non-guaranteed delivery.

creativeConfigs, CreativeConfig[]

The creative requirements of the inventory source. Not applicable for auction packages.

dealId, string

The ID in the exchange space that uniquely identifies the inventory source. Must be unique across buyers within each exchange but not necessarily unique across exchanges.

deliveryMethod, 'INVENTORY_SOURCE_DELIVERY_METHOD_UNSPECIFIED' | 'INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC' | 'INVENTORY_SOURCE_DELIVERY_METHOD_TAG'

The delivery method of the inventory source. * For non-guaranteed inventory sources, the only acceptable value is INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC. * For guaranteed inventory sources, acceptable values are INVENTORY_SOURCE_DELIVERY_METHOD_TAG and INVENTORY_SOURCE_DELIVERY_METHOD_PROGRAMMATIC.

displayName, string

The display name of the inventory source. Must be UTF-8 encoded with a maximum size of 240 bytes.

exchange, 'EXCHANGE_UNSPECIFIED' | 'EXCHANGE_GOOGLE_AD_MANAGER' | 'EXCHANGE_APPNEXUS' | 'EXCHANGE_BRIGHTROLL' | 'EXCHANGE_ADFORM' | 'EXCHANGE_ADMETA' | 'EXCHANGE_ADMIXER' | 'EXCHANGE_ADSMOGO' | 'EXCHANGE_ADSWIZZ' | 'EXCHANGE_BIDSWITCH' | 'EXCHANGE_BRIGHTROLL_DISPLAY' | 'EXCHANGE_CADREON' | 'EXCHANGE_DAILYMOTION' | 'EXCHANGE_FIVE' | 'EXCHANGE_FLUCT' | 'EXCHANGE_FREEWHEEL' | 'EXCHANGE_GENIEE' | 'EXCHANGE_GUMGUM' | 'EXCHANGE_IMOBILE' | 'EXCHANGE_IBILLBOARD' | 'EXCHANGE_IMPROVE_DIGITAL' | 'EXCHANGE_INDEX' | 'EXCHANGE_KARGO' | 'EXCHANGE_MICROAD' | 'EXCHANGE_MOPUB' | 'EXCHANGE_NEND' | 'EXCHANGE_ONE_BY_AOL_DISPLAY' | 'EXCHANGE_ONE_BY_AOL_MOBILE' | 'EXCHANGE_ONE_BY_AOL_VIDEO' | 'EXCHANGE_OOYALA' | 'EXCHANGE_OPENX' | 'EXCHANGE_PERMODO' | 'EXCHANGE_PLATFORMONE' | 'EXCHANGE_PLATFORMID' | 'EXCHANGE_PUBMATIC' | 'EXCHANGE_PULSEPOINT' | 'EXCHANGE_REVENUEMAX' | 'EXCHANGE_RUBICON' | 'EXCHANGE_SMARTCLIP' | 'EXCHANGE_SMARTRTB' | 'EXCHANGE_SMARTSTREAMTV' | 'EXCHANGE_SOVRN' | 'EXCHANGE_SPOTXCHANGE' | 'EXCHANGE_STROER' | 'EXCHANGE_TEADSTV' | 'EXCHANGE_TELARIA' | 'EXCHANGE_TVN' | 'EXCHANGE_UNITED' | 'EXCHANGE_YIELDLAB' | 'EXCHANGE_YIELDMO' | 'EXCHANGE_UNRULYX' | 'EXCHANGE_OPEN8' | 'EXCHANGE_TRITON' | 'EXCHANGE_TRIPLELIFT' | 'EXCHANGE_TABOOLA' | 'EXCHANGE_INMOBI' | 'EXCHANGE_SMAATO' | 'EXCHANGE_AJA' | 'EXCHANGE_SUPERSHIP' | 'EXCHANGE_NEXSTAR_DIGITAL' | 'EXCHANGE_WAZE' | 'EXCHANGE_SOUNDCAST' | 'EXCHANGE_SHARETHROUGH' | 'EXCHANGE_FYBER' | 'EXCHANGE_RED_FOR_PUBLISHERS' | 'EXCHANGE_MEDIANET' | 'EXCHANGE_TAPJOY' | 'EXCHANGE_VISTAR' | 'EXCHANGE_DAX' | 'EXCHANGE_JCD' | 'EXCHANGE_PLACE_EXCHANGE' | 'EXCHANGE_APPLOVIN' | 'EXCHANGE_CONNATIX' | 'EXCHANGE_RESET_DIGITAL' | 'EXCHANGE_HIVESTACK' | 'EXCHANGE_DRAX' | 'EXCHANGE_APPLOVIN_GBID' | 'EXCHANGE_FYBER_GBID' | 'EXCHANGE_UNITY_GBID' | 'EXCHANGE_CHARTBOOST_GBID' | 'EXCHANGE_ADMOST_GBID' | 'EXCHANGE_TOPON_GBID' | 'EXCHANGE_NETFLIX' | 'EXCHANGE_CORE' | 'EXCHANGE_COMMERCE_GRID' | 'EXCHANGE_SPOTIFY' | 'EXCHANGE_TUBI' | 'EXCHANGE_SNAP' | 'EXCHANGE_CADENT' | 'EXCHANGE_EXTE'

The exchange to which the inventory source belongs.

guaranteedOrderId, string

Immutable. The ID of the guaranteed order that this inventory source belongs to. Only applicable when commitment is INVENTORY_SOURCE_COMMITMENT_GUARANTEED.

inventorySourceId, string int64

Output only. The unique ID of the inventory source. Assigned by the system.

inventorySourceProductType, 'INVENTORY_SOURCE_PRODUCT_TYPE_UNSPECIFIED' | 'PREFERRED_DEAL' | 'PRIVATE_AUCTION' | 'PROGRAMMATIC_GUARANTEED' | 'TAG_GUARANTEED' | 'YOUTUBE_RESERVE' | 'INSTANT_RESERVE' | 'GUARANTEED_PACKAGE' | 'PROGRAMMATIC_TV' | 'AUCTION_PACKAGE'

Output only. The product type of the inventory source, denoting the way through which it sells inventory.

inventorySourceType, 'INVENTORY_SOURCE_TYPE_UNSPECIFIED' | 'INVENTORY_SOURCE_TYPE_PRIVATE' | 'INVENTORY_SOURCE_TYPE_AUCTION_PACKAGE'

Denotes the type of the inventory source.

name, string

Output only. The resource name of the inventory source.

publisherName, string

The publisher/seller name of the inventory source.

rateDetails, RateDetails

The rate related settings of the inventory source.

readAdvertiserIds, string[]

Output only. The IDs of advertisers with read-only access to the inventory source.

readPartnerIds, string[]

Output only. The IDs of partners with read-only access to the inventory source. All advertisers of partners in this field inherit read-only access to the inventory source.

readWriteAccessors, InventorySourceAccessors

The partner or advertisers with access to the inventory source.

status, InventorySourceStatus

The status related settings of the inventory source.

timeRange, TimeRange

A time range.

updateTime, string google-datetime

Output only. The timestamp when the inventory source was last updated. Assigned by the system.

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status