Method: inventorySourceGroups.assignedInventorySources.bulkEdit

批量修改广告资源来源与单个广告资源来源组之间的多项分配关系。

此操作将删除“BulkEditAssignedInventorySourcesRequest.deleted_assigned_inventory_sources”中提供的已分配广告资源来源,然后创建“BulkEditAssignedInventorySourcesRequest.created_assigned_inventory_sources”中提供的已分配广告资源来源。

HTTP 请求

POST https://displayvideo.googleapis.com/v2/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。

父级合作伙伴无权访问这些已分配的广告资源来源。

响应正文

AssignmentInventorySourceService.BulkEdit 的响应消息。

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "assignedInventorySources": [
    {
      object (AssignedInventorySource)
    }
  ]
}
字段
assignedInventorySources[]

object (AssignedInventorySource)

已成功创建的已分配广告资源来源的列表。

如果为空,则不存在此列表。

授权范围

需要以下 OAuth 作用域:

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

有关详情,请参阅 OAuth 2.0 概览