Method: inventorySourceGroups.assignedInventorySources.bulkEdit

大量編輯廣告空間來源與單一廣告空間來源群組之間的多項指派項目。

這項作業會刪除「BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sources」提供的指派廣告空間來源,然後建立「BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sources」提供的指派廣告空間來源。

HTTP 要求

POST https://displayvideo.googleapis.com/v1/inventorySourceGroups/{inventorySourceGroupId}/assignedInventorySources:bulkEdit

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
inventorySourceGroupId

string (int64 format)

必要欄位。指派作業的目標廣告空間來源群組 ID。

要求主體

要求主體的資料會採用以下結構:

JSON 表示法
{
  "deletedAssignedInventorySources": [
    string
  ],
  "createdAssignedInventorySources": [
    {
      object (AssignedInventorySource)
    }
  ],

  // Union field owner can be only one of the following:
  "partnerId": string,
  "advertiserId": string
  // End of list of possible types for union field owner.
}
欄位
deletedAssignedInventorySources[]

string (int64 format)

要大量刪除的已指派廣告空間來源 ID,以 assigned_inventory_source_ids 清單的形式指定。

createdAssignedInventorySources[]

object (AssignedInventorySource)

要大量建立的已指派廣告空間來源,以 AssignedInventorySources 清單的形式指定。

聯集欄位 owner。必要欄位。指出擁有上層廣告空間來源群組的 DV360 實體。可以是合作夥伴或廣告客戶。owner 只能是下列其中一項:
partnerId

string (int64 format)

擁有廣告空間來源群組的合作夥伴 ID。

只有這個夥伴具備這些指定廣告空間來源的寫入權限。

advertiserId

string (int64 format)

擁有上層廣告空間來源群組的廣告客戶 ID。

上層夥伴無法存取這些已指派的廣告空間來源。

回應主體

如果成功,回應主體即會包含具有以下結構的資料:

AssignInventorySourceService.BulkEdit 的回應訊息。

JSON 表示法
{
  "assignedInventorySources": [
    {
      object (AssignedInventorySource)
    }
  ]
}
欄位
assignedInventorySources[]

object (AssignedInventorySource)

成功建立的已指派廣告空間來源清單。

如果留空,這份清單將不會顯示。

授權範圍

需要下列 OAuth 範圍:

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

詳情請參閱 OAuth 2.0 總覽