A partir de 8 de setembro de 2025, todos os novos itens de linha precisarão declarar se vão veicular anúncios políticos da União Europeia (UE). As APIs do Display & Video 360 e os uploads de SDF que não fornecem declarações vão falhar. Consulte nossa página de suspensões de uso para mais detalhes sobre como atualizar sua integração e fazer essa declaração.
[null,null,["Última atualização 2025-07-26 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 request requires specifying the inventory source ID and the fields to be updated using a field mask.\u003c/p\u003e\n"],["\u003cp\u003eThe request must be made within the context of a specific partner or advertiser, indicated by their respective IDs.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful execution results in a response containing the updated inventory source object.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is necessary using the \u003ccode\u003ehttps://www.googleapis.com/auth/display-video\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: inventorySources.patch\n\n| Display \\& Video 360 API v2 has 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/v2/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://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` 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/v2/inventorySources#InventorySource).\n\n### Response body\n\nIf successful, the response body contains an instance of [InventorySource](/display-video/api/reference/rest/v2/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)."]]