[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eDisplay & Video 360 API v2 has been sunset and this documentation details how to create an assignment between a location and a location list using the API.\u003c/p\u003e\n"],["\u003cp\u003eThis process involves making a POST request to a specified endpoint with the advertiser and location list IDs as path parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an AssignedLocation object and, if successful, the response will contain the newly created AssignedLocation object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["The provided content outlines the process for creating an assignment between a location and a location list using the Display & Video 360 API. This is achieved via a `POST` request to a specified URL, including `advertiserId` and `locationListId` as path parameters. The request body uses an `AssignedLocation` instance. Upon success, the response body returns a newly created `AssignedLocation` instance. Authorization requires the `https://www.googleapis.com/auth/display-video` OAuth scope. Note that Display & Video 360 API v2 is no longer available.\n"],null,["# Method: advertisers.locationLists.assignedLocations.create\n\n| Display \\& Video 360 API v2 has 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/v2/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/v2/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/v2/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)."]]