[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eDisplay & Video 360 API v1 is sunset and this documentation details the creation of an assignment between a location and a location list.\u003c/p\u003e\n"],["\u003cp\u003eThe API utilizes an HTTP POST request to \u003ccode\u003ehttps://displayvideo.googleapis.com/v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations\u003c/code\u003e to establish this assignment.\u003c/p\u003e\n"],["\u003cp\u003eRequired path parameters include \u003ccode\u003eadvertiserId\u003c/code\u003e and \u003ccode\u003elocationListId\u003c/code\u003e, specifying the advertiser and the target location list, respectively.\u003c/p\u003e\n"],["\u003cp\u003eA successful request will return a newly created instance of \u003ccode\u003eAssignedLocation\u003c/code\u003e within the response body, confirming the assignment.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization necessitates the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope for access and manipulation.\u003c/p\u003e\n"]]],["This document details the process for creating an assignment between a location and a location list using the Display & Video 360 API. It outlines that a `POST` request must be sent to a specific URL, including `advertiserId` and `locationListId` as path parameters. The request body requires an `AssignedLocation` instance, and upon success, the response returns a new `AssignedLocation` instance. This action requires OAuth 2.0 authorization with the `display-video` scope.\n"],null,["# Method: advertisers.locationLists.assignedLocations.create\n\n| Display \\& Video 360 API v1 has been sunset.\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates an assignment between a location and a location list.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v1/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the DV360 advertiser to which the location list belongs. |\n| `locationListId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of the location list for which the assignment will be created. |\n\n### Request body\n\nThe request body contains an instance of [AssignedLocation](/display-video/api/reference/rest/v1/advertisers.locationLists.assignedLocations#AssignedLocation).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AssignedLocation](/display-video/api/reference/rest/v1/advertisers.locationLists.assignedLocations#AssignedLocation).\n\n### Authorization Scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/display-video`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]