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.
Modifica le funzioni di accesso in lettura/scrittura di un'origine dell'inventario. Restituisce il valore readWriteAccessors aggiornato per l'origine dell'inventario.
Richiesta HTTP
POST https://displayvideo.googleapis.com/v2/inventorySources/{inventorySourceId}:editInventorySourceReadWriteAccessors
Obbligatorio. L'ID dell'origine dell'inventario da aggiornare.
Corpo della richiesta
Il corpo della richiesta contiene dati con la seguente struttura:
Rappresentazione JSON
{"partnerId": string,// Union field accessors_change can be only one of the following:"assignPartner": boolean,"advertisersUpdate": {object (AdvertisersUpdate)}// End of list of possible types for union field accessors_change.}
Obbligatorio. Il contesto partner da cui viene apportata la modifica delle funzioni di accesso.
Campo unione accessors_change. La modifica delle funzioni di accesso in lettura/scrittura dell'origine dell'inventario. accessors_change può essere solo uno dei seguenti:
assignPartner
boolean
Imposta il contesto partner come funzione di accesso in lettura/scrittura dell'origine dell'inventario. Verranno rimosse tutte le altre funzioni di accesso inserzionista in lettura/scrittura correnti.
Gli inserzionisti da aggiungere o da rimuovere dall'elenco degli inserzionisti che hanno accesso in lettura/scrittura all'origine dell'inventario. Questa modifica rimuoverà la funzione di accesso in lettura/scrittura del partner esistente.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di InventorySourceAccessors.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eDisplay & Video 360 API v2 has been sunset and this documentation details the editInventorySourceReadWriteAccessors endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThis endpoint edits the read/write accessors of an inventory source, allowing the setting of partner context or specific advertisers as accessors.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires specification of the partner ID making the change and details of the access change, such as adding or removing advertisers or assigning partner access.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses will contain the updated InventorySourceAccessors for the modified inventory source.\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 how to edit read/write accessors for an inventory source using the Display & Video 360 API. Key actions involve sending a POST request to a specific URL with the `inventorySourceId`. The request body must include a `partnerId` and define the `accessors_change`, either assigning partner access via a boolean or updating advertisers with read/write privileges via an `AdvertisersUpdate` object. Successful requests return an updated `InventorySourceAccessors`. The API method requires OAuth scope authorization.\n"],null,["# Method: inventorySources.editInventorySourceReadWriteAccessors\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 - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [AdvertisersUpdate](#AdvertisersUpdate)\n - [JSON representation](#AdvertisersUpdate.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nEdits read/write accessors of an inventory source. Returns the updated [readWriteAccessors](/display-video/api/reference/rest/v2/inventorySources#InventorySource.FIELDS.read_write_accessors) for the inventory source.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v2/inventorySources/{inventorySourceId}:editInventorySourceReadWriteAccessors`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `inventorySourceId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The ID of inventory source to update. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"partnerId\": string, // Union field `accessors_change` can be only one of the following: \"assignPartner\": boolean, \"advertisersUpdate\": { object (/display-video/api/reference/rest/v2/inventorySources/editInventorySourceReadWriteAccessors#AdvertisersUpdate) } // End of list of possible types for union field `accessors_change`. } ``` |\n\n| Fields ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `partnerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Required. The partner context by which the accessors change is being made. |\n| Union field `accessors_change`. The change to the read/write accessors of the inventory source. `accessors_change` can be only one of the following: ||\n| `assignPartner` | `boolean` Set the partner context as read/write accessor of the inventory source. This will remove all other current read/write advertiser accessors. |\n| `advertisersUpdate` | `object (`[AdvertisersUpdate](/display-video/api/reference/rest/v2/inventorySources/editInventorySourceReadWriteAccessors#AdvertisersUpdate)`)` The advertisers to add or remove from the list of advertisers that have read/write access to the inventory source. This change will remove an existing partner read/write accessor. |\n\n### Response body\n\nIf successful, the response body contains an instance of [InventorySourceAccessors](/display-video/api/reference/rest/v2/inventorySources#InventorySourceAccessors).\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).\n\nAdvertisersUpdate\n-----------------\n\nUpdate to the list of advertisers with read/write access to the inventory source.\n\n| JSON representation |\n|------------------------------------------------------------------------------|\n| ``` { \"addedAdvertisers\": [ string ], \"removedAdvertisers\": [ string ] } ``` |\n\n| Fields ||\n|------------------------|----------------------------------------------------------------------------------------------------------------|\n| `addedAdvertisers[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The advertisers to add. |\n| `removedAdvertisers[]` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The advertisers to remove. |"]]