A partire dall'
8 settembre 2025, ogni nuovo elemento pubblicitario dovrà dichiarare se pubblicherà o meno annunci politici dell'Unione Europea (UE). I caricamenti di API Display & Video 360 e SDF che non forniscono dichiarazioni non andranno a buon fine. Consulta la nostra
pagina dei ritiri per ulteriori dettagli su come aggiornare l'integrazione per effettuare questa dichiarazione.
Method: advertisers.locationLists.assignedLocations.bulkEdit
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Consente di modificare collettivamente più assegnazioni tra località e un singolo elenco di località.
L'operazione eliminerà le località assegnate fornite in deletedAssignedLocations
e poi creerà le località assegnate fornite in createdAssignedLocations
.
Richiesta HTTP
POST https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations:bulkEdit
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
advertiserId |
string (int64 format)
Obbligatorio. L'ID dell'inserzionista DV360 a cui appartiene l'elenco di località.
|
locationListId |
string (int64 format)
Obbligatorio. L'ID dell'elenco di località a cui sono assegnate queste assegnazioni.
|
Corpo della richiesta
Il corpo della richiesta contiene dati con la seguente struttura:
Rappresentazione JSON |
{
"deletedAssignedLocations": [
string
],
"createdAssignedLocations": [
{
object (AssignedLocation )
}
]
} |
Campi |
deletedAssignedLocations[] |
string (int64 format)
Gli ID delle località assegnate da eliminare collettivamente, specificati come elenco di valori assignedLocationId .
|
createdAssignedLocations[] |
object (AssignedLocation )
Le località assegnate da creare collettivamente, specificate come elenco di risorse AssignedLocation .
|
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene dati con la seguente struttura:
Rappresentazione JSON |
{
"assignedLocations": [
{
object (AssignedLocation )
}
]
} |
Campi |
assignedLocations[] |
object (AssignedLocation )
L'elenco delle località assegnate che sono state create correttamente. Questo elenco non sarà presente se è vuoto.
|
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/display-video
Per ulteriori informazioni, consulta la sezione OAuth 2.0 Overview.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[],[],null,["# Method: advertisers.locationLists.assignedLocations.bulkEdit\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.BulkEditAssignedLocationsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nBulk edits multiple assignments between locations and a single location list.\n\nThe operation will delete the assigned locations provided in [deletedAssignedLocations](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/bulkEdit#body.request_body.FIELDS.deleted_assigned_locations) and then create the assigned locations provided in [createdAssignedLocations](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations/bulkEdit#body.request_body.FIELDS.created_assigned_locations).\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v4/advertisers/{advertiserId}/locationLists/{locationListId}/assignedLocations:bulkEdit`\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 to which these assignments are assigned. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"deletedAssignedLocations\": [ string ], \"createdAssignedLocations\": [ { object (/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation) } ] } ``` |\n\n| Fields ||\n|------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deletedAssignedLocations[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The IDs of the assigned locations to delete in bulk, specified as a list of [assignedLocationId](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation.FIELDS.assigned_location_id) values. |\n| `createdAssignedLocations[]` | `object (`[AssignedLocation](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation)`)` The assigned locations to create in bulk, specified as a list of [AssignedLocation](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation) resources. |\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"assignedLocations\": [ { object (/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation) } ] } ``` |\n\n| Fields ||\n|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `assignedLocations[]` | `object (`[AssignedLocation](/display-video/api/reference/rest/v4/advertisers.locationLists.assignedLocations#AssignedLocation)`)` The list of assigned locations that have been successfully created. This list will be absent if empty. |\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](/identity/protocols/OAuth2)."]]