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.
Method: inventorySources.editInventorySourceReadWriteAccessors
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Edytuje metody dostępu do odczytu/zapisu źródła zasobów reklamowych. Zwraca zaktualizowane readWriteAccessors
dla źródła zasobów reklamowych.
Żądanie HTTP
POST https://displayvideo.googleapis.com/v3/inventorySources/{inventorySourceId}:editInventorySourceReadWriteAccessors
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
inventorySourceId |
string (int64 format)
Wymagane. Identyfikator źródła zasobów reklamowych do zaktualizowania.
|
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Zapis 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 .
} |
Pola |
partnerId |
string (int64 format)
Wymagane. Kontekst partnera, w którym wprowadzana jest zmiana akcesorium.
|
Pole unii accessors_change . Zmiana dostępu do odczytu/zapisu źródła zasobów reklamowych. accessors_change może być tylko jednym z tych elementów: |
assignPartner |
boolean
Ustaw kontekst partnera jako element dostępu do odczytu/zapisu do źródła zasobów reklamowych. Spowoduje to usunięcie wszystkich innych bieżących akcesoriów reklamodawcy z dostępem do odczytu/zapisu.
|
advertisersUpdate |
object (AdvertisersUpdate )
Reklamodawcy, których chcesz dodać do listy reklamodawców mających dostęp do odczytu/zapisu do źródła zasobów reklamowych lub z niej usunąć. Ta zmiana spowoduje usunięcie istniejącego dostępu do odczytu/zapisu dla partnera.
|
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu InventorySourceAccessors
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/display-video
Więcej informacji znajdziesz w OAuth 2.0 Overview.
AdvertisersUpdate
Zaktualizuj listę reklamodawców z dostępem do odczytu i zapisu do źródła zasobów reklamowych.
Zapis JSON |
{
"addedAdvertisers": [
string
],
"removedAdvertisers": [
string
]
} |
Pola |
addedAdvertisers[] |
string (int64 format)
Reklamodawcy do dodania.
|
removedAdvertisers[] |
string (int64 format)
Reklamodawcy do usunięcia.
|
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."],[[["\u003cp\u003eEdits the read/write accessors of an inventory source, returning the updated accessors.\u003c/p\u003e\n"],["\u003cp\u003eSends a POST request to \u003ccode\u003ehttps://displayvideo.googleapis.com/v3/inventorySources/{inventorySourceId}:editInventorySourceReadWriteAccessors\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying the \u003ccode\u003einventorySourceId\u003c/code\u003e in the path parameters and details about access changes in the request body.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e for authorization.\u003c/p\u003e\n"],["\u003cp\u003eReturns an \u003ccode\u003eInventorySourceAccessors\u003c/code\u003e object upon successful completion.\u003c/p\u003e\n"]]],["This API endpoint edits read/write accessors of an inventory source via a POST request. It requires an `inventorySourceId` path parameter. The request body must specify a `partnerId` and one of two access changes. These include setting a partner as the sole accessor (`assignPartner`) or updating advertiser access lists (`advertisersUpdate`), adding/removing advertisers via their IDs. Successful operations return the updated inventory source accessors. Access requires the `https://www.googleapis.com/auth/display-video` OAuth scope.\n"],null,["# Method: inventorySources.editInventorySourceReadWriteAccessors\n\n| Display \\& Video 360 API is deprecated and will sunset on **October 7, 2025** . Migrate to [Display \\& Video 360 API v4](/display-video/api/reference/rest/v4) before sunset to avoid an interruption in service.\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/v3/inventorySources#InventorySource.FIELDS.read_write_accessors) for the inventory source.\n\n### HTTP request\n\n`POST https://displayvideo.googleapis.com/v3/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/v3/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/v3/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/v3/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](/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. |"]]