---
title: "POST /v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources"
method: POST
path: "/v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources"
tags: ["inventorySourceGroups"]
---

# POST /v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources

`POST /v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/inventorySourceGroups/{inventorySourceGroupsId}/assignedInventorySources`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/display-video`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/display-video`

Creates an assignment between an inventory source and an inventory source group.

## Path parameters

- `inventorySourceGroupsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `advertiserId` string, int64
- `partnerId` string, int64

## Request body

- AssignedInventorySource: An assignment between a targetable inventory source and an inventory source group.
  - `assignedInventorySourceId` string, int64: Output only. The unique ID of the assigned inventory source. The ID is only unique within a given inventory source group. It may be reused in other contexts.
  - `inventorySourceId` string: Required. The ID of the inventory source entity being targeted.
  - `name` string: Output only. The resource name of the assigned inventory source.

## Response `200`

Successful response

- AssignedInventorySource: An assignment between a targetable inventory source and an inventory source group.
  - `assignedInventorySourceId` string, int64: Output only. The unique ID of the assigned inventory source. The ID is only unique within a given inventory source group. It may be reused in other contexts.
  - `inventorySourceId` string: Required. The ID of the inventory source entity being targeted.
  - `name` string: Output only. The resource name of the assigned inventory source.

---

[API](https://skmtc.dev/google/apis/displayvideo.md) - [All operations](https://skmtc.dev/google/apis/displayvideo/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/displayvideo/revisions/c4f5eaed2791?raw)
