---
title: "POST /v4/advertisers/{advertiserId}/locationLists/{locationListsId}/assignedLocations:bulkEdit"
method: POST
path: "/v4/advertisers/{advertiserId}/locationLists/{locationListsId}/assignedLocations:bulkEdit"
tags: ["advertisers"]
---

# POST /v4/advertisers/{advertiserId}/locationLists/{locationListsId}/assignedLocations:bulkEdit

`POST /v4/advertisers/{advertiserId}/locationLists/{locationListsId}/assignedLocations:bulkEdit`

## Request

- Base URL: `https://displayvideo.googleapis.com`
- URL: `https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/locationLists/{locationListsId}/assignedLocations:bulkEdit`
- 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`
- TypeScript: <https://skmtc.dev/google/apis/displayvideo/docs/v4/advertisers/:advertiserId/locationLists/:locationListsId/assignedLocations:bulkEdit/post.ts> (a function with typed inputs; its response is checked against the schema)

Bulk edits multiple assignments between locations and a single location list. The operation will delete the assigned locations provided in deletedAssignedLocations and then create the assigned locations provided in createdAssignedLocations.

## Path parameters

- `locationListsId` string, required
- `advertiserId` string, int64, required

## Request body

- BulkEditAssignedLocationsRequest: Request message for AssignedLocationService.BulkEditAssignedLocations.
  - `createdAssignedLocations` AssignedLocation[]: The assigned locations to create in bulk, specified as a list of AssignedLocation resources.
    - `assignedLocationId` string, int64: Output only. The unique ID of the assigned location. The ID is only unique within a location list. It may be reused in other contexts.
    - `name` string: Output only. The resource name of the assigned location.
    - `targetingOptionId` string: Required. The ID of the targeting option assigned to the location list.
  - `deletedAssignedLocations` string[]: The IDs of the assigned locations to delete in bulk, specified as a list of assignedLocationId values.

## Response `200`

Successful response

- BulkEditAssignedLocationsResponse
  - `assignedLocations` AssignedLocation[]: The list of assigned locations that have been successfully created. This list will be absent if empty.
    - `assignedLocationId` string, int64: Output only. The unique ID of the assigned location. The ID is only unique within a location list. It may be reused in other contexts.
    - `name` string: Output only. The resource name of the assigned location.
    - `targetingOptionId` string: Required. The ID of the targeting option assigned to the location list.

---

[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/d80b56b6703a?raw)
