Od
8 września 2025 r. każdy nowy element zamówienia będzie musiał deklarować, czy będzie wyświetlać reklamy polityczne w Unii Europejskiej (UE). Przesyłanie plików SDF i wywoływanie interfejsu Display & Video 360 API bez deklaracji zakończy się niepowodzeniem. Więcej informacji o tym, jak zaktualizować integrację, aby złożyć to oświadczenie, znajdziesz na naszej
stronie dotyczącej wycofania.
REST Resource: advertisers.locationLists.assignedLocations
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: AssignedLocation
Przypisanie listy lokalizacji do odpowiedniej opcji kierowania.
Zapis JSON |
{
"name": string,
"assignedLocationId": string,
"targetingOptionId": string
} |
Pola |
name |
string
Tylko dane wyjściowe. Nazwa zasobu przypisanej lokalizacji.
|
assignedLocationId |
string (int64 format)
Tylko dane wyjściowe. Unikalny identyfikator przypisanej lokalizacji. Identyfikator jest unikalny tylko w ramach listy lokalizacji. Można go użyć ponownie w innych kontekstach.
|
targetingOptionId |
string
Wymagane. Identyfikator opcji kierowania przypisanej do listy lokalizacji.
|
Metody |
|
Edytowanie zbiorcze wielu przypisań między lokalizacjami i jedną listą lokalizacji. |
|
Tworzy powiązanie między lokalizacją a listą lokalizacji. |
|
Usuwa powiązanie między lokalizacją a listą lokalizacji. |
|
Wyświetla listę lokalizacji przypisanych do listy lokalizacji. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["The Display & Video 360 API v4, currently in beta, features the `AssignedLocation` resource, which manages assignments between location lists and targeting options. Key information includes the resource's name, unique assigned location ID, and the associated targeting option ID. The API supports actions to manage these assignments, including `bulkEdit`, `create`, `delete`, and `list` operations for manipulating location assignments within a location list.\n"],null,["# REST Resource: advertisers.locationLists.assignedLocations\n\n- [Resource: AssignedLocation](#AssignedLocation)\n - [JSON representation](#AssignedLocation.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AssignedLocation\n--------------------------\n\nAn assignment between a location list and a relevant targeting option.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"assignedLocationId\": string, \"targetingOptionId\": string } ``` |\n\n| Fields ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Output only. The resource name of the assigned location. |\n| `assignedLocationId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` 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. |\n| `targetingOptionId` | `string` Required. The ID of the targeting option assigned to the location list. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------|\n| ### [bulkEdit](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/bulkEdit) | Bulk edits multiple assignments between locations and a single location list. |\n| ### [create](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/create) | Creates an assignment between a location and a location list. |\n| ### [delete](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/delete) | Deletes the assignment between a location and a location list. |\n| ### [list](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/list) | Lists locations assigned to a location list. |"]]