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.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eThis document outlines the process for updating an existing inventory source using the Display & Video 360 API.\u003c/p\u003e\n"],["\u003cp\u003eThe API request requires specific path and query parameters, including inventory source ID and update mask.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain an \u003ccode\u003eInventorySource\u003c/code\u003e object with the desired updates.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return the updated \u003ccode\u003eInventorySource\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThis operation needs authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e scope.\u003c/p\u003e\n"]]],["This document outlines the process for updating an existing inventory source via the Display & Video 360 API. Using a `PATCH` request to a specified URL, you must provide the inventory source's unique ID. Required query parameters include an `updateMask` to specify fields for modification and an `accessor` to identify the relevant DV360 entity (either `partnerId` or `advertiserId`). The request body must contain the updated `InventorySource` data. Upon successful update, the updated `InventorySource` is returned. The request requires authorization via the OAuth scope `https://www.googleapis.com/auth/display-video`.\n"],null,["# Method: inventorySources.patch\n\n| Display \\& Video 360 API v1 has been sunset.\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [Try it!](#try-it)\n\nUpdates an existing inventory source. Returns the updated inventory source if successful.\n\n### HTTP request\n\n`PATCH https://displayvideo.googleapis.com/v1/inventorySources/{inventorySource.inventorySourceId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `inventorySource.inventorySourceId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The unique ID of the inventory source. Assigned by the system. |\n\n### Query parameters\n\n| Parameters ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `updateMask` | `string (`[FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask)` format)` Required. The mask to control which fields to update. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n| Union parameter `accessor`. Required. Identifies which DV360 entity the request is being made within. `accessor` can be only one of the following: ||\n| `partnerId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the partner that the request is being made within. |\n| `advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the advertiser that the request is being made within. |\n\n### Request body\n\nThe request body contains an instance of [InventorySource](/display-video/api/reference/rest/v1/inventorySources#InventorySource).\n\n### Response body\n\nIf successful, the response body contains an instance of [InventorySource](/display-video/api/reference/rest/v1/inventorySources#InventorySource).\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)."]]