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.
Consente di aggiornare un elemento pubblicitario esistente. Restituisce l'elemento pubblicitario aggiornato, in caso di esito positivo.
Le richieste a questo endpoint non possono essere effettuate in concomitanza con le seguenti richieste di aggiornamento dello stesso elemento pubblicitario:
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eThis endpoint updates an existing line item within Display & Video 360 and returns the updated item if the request is successful.\u003c/p\u003e\n"],["\u003cp\u003eCertain concurrent requests that modify the same line item are restricted to ensure data integrity.\u003c/p\u003e\n"],["\u003cp\u003eThe request must include a \u003ccode\u003eupdateMask\u003c/code\u003e query parameter specifying the fields to be updated and a request body containing the \u003ccode\u003eLineItem\u003c/code\u003e object with updated values.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, the response body will contain the updated \u003ccode\u003eLineItem\u003c/code\u003e object.\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"]]],[],null,["# Method: advertisers.lineItems.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 line item. Returns the updated line item if successful.\n\nRequests to this endpoint cannot be made concurrently with the following requests updating the same line item:\n\n- [lineItems.bulkEditLineItemAssignedTargetingOptions](/display-video/api/reference/rest/v1/advertisers.lineItems/bulkEditLineItemAssignedTargetingOptions#google.ads.displayvideo.v1.LineItemAssignedTargetingOptionsService.BulkEditLineItemAssignedTargetingOptions)\n- [lineItems.patch](/display-video/api/reference/rest/v1/advertisers.lineItems/patch#google.ads.displayvideo.v1.LineItemService.UpdateLineItem)\n- [assignedTargetingOptions.create](/display-video/api/reference/rest/v1/advertisers.lineItems.targetingTypes.assignedTargetingOptions/create#google.ads.displayvideo.v1.LineItemAssignedTargetingOptionsService.CreateLineItemAssignedTargetingOption)\n- [assignedTargetingOptions.delete](/display-video/api/reference/rest/v1/advertisers.lineItems.targetingTypes.assignedTargetingOptions/delete#google.ads.displayvideo.v1.LineItemAssignedTargetingOptionsService.DeleteLineItemAssignedTargetingOption)\n\n### HTTP request\n\n`PATCH https://displayvideo.googleapis.com/v1/advertisers/{lineItem.advertiserId}/lineItems/{lineItem.lineItemId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `lineItem.advertiserId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The unique ID of the advertiser the line item belongs to. |\n| `lineItem.lineItemId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The unique ID of the line item. 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\n### Request body\n\nThe request body contains an instance of [LineItem](/display-video/api/reference/rest/v1/advertisers.lineItems#LineItem).\n\n### Response body\n\nIf successful, the response body contains an instance of [LineItem](/display-video/api/reference/rest/v1/advertisers.lineItems#LineItem).\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)."]]