Elementi pubblicitari da caricare in formato CSV. Per ulteriori informazioni sui formati file, consulta l'articolo sul formato di file di scrittura entità.
format
string
Formato degli elementi pubblicitari. Il valore predefinito è CSV.
I valori accettati sono:
"CSV"
dryRun
boolean
Imposta true per ottenere lo stato di caricamento senza mantenere effettivamente gli elementi pubblicitari.
Risposta
In caso di esito positivo, questo metodo restituisce un corpo della risposta con la seguente struttura:
Motivi per cui il caricamento non può essere completato.
uploadStatus.rowStatus[]
list
Stato di caricamento per riga.
uploadStatus.rowStatus[].rowNumber
integer
Numero riga.
uploadStatus.rowStatus[].entityId
long
ID entità.
uploadStatus.rowStatus[].entityName
string
Nome entità.
uploadStatus.rowStatus[].changed
boolean
Se l'entità archiviata viene modificata dopo il caricamento.
uploadStatus.rowStatus[].persisted
boolean
Indica se l'entità è persistente.
uploadStatus.rowStatus[].errors[]
list
Motivi per cui non è possibile caricare l'entità.
Prova
Usa Explorer API in basso per chiamare questo metodo sui dati in tempo reale e visualizzare la risposta.
In alternativa, prova la
autonomo
Spazio di esplorazione.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eThe Line Items Settings service in Bid Manager API is discontinued and users should transition to the DV360 API.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation details the process for uploading line items in CSV format using the \u003ccode\u003euploadlineitems\u003c/code\u003e endpoint in the Bid Manager API, though YouTube & partners line items are not supported.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/doubleclickbidmanager\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides options to perform a dry run to check upload status without persisting data and returns detailed upload status including errors and per-row information.\u003c/p\u003e\n"]]],["The Bid Manager API's Line Items Settings service is discontinued; users must switch to the DV360 API. The `uploadlineitems` method allows uploading line items in CSV format, excluding YouTube & partners line items. It accepts a request body with `lineItems` (CSV data), `format` (defaulting to CSV), and `dryRun` (boolean for testing). The response details upload status, including errors and per-row information like row number, entity details, and persistence status. Authorization via `https://www.googleapis.com/auth/doubleclickbidmanager` is required.\n"],null,["# Lineitems: uploadlineitems\n\nThe Line Items Settings service of the Bid Manager API has been sunset. Users must migrate to the [DV360 API](/display-video/api/reference/rest). \n| **Note:** Requires [authorization](#auth).\n\nUploads line items in CSV format. YouTube \\& partners line items are not supported.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/doubleclickbidmanager/v1.1/lineitems/uploadlineitems\n```\n\n### Authorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|---------------------------------------------------------|\n| `https://www.googleapis.com/auth/doubleclickbidmanager` |\n\nFor more information, see the [authentication and authorization](/bid-manager/how-tos/authorizing) page.\n\n### Request body\n\nIn the request body, supply data with the following structure:\n\n```text\n{\n \"lineItems\": string,\n \"format\": string,\n \"dryRun\": boolean\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `lineItems` | `string` | Line items in CSV to upload. For more information about file formats, see [Entity Write File Format](/bid-manager/guides/entity-write/format). | |\n| `format` | `string` | Format the line items are in. Default to `CSV`. \u003cbr /\u003e Acceptable values are: - \"`CSV`\" | |\n| `dryRun` | `boolean` | Set to `true` to get upload status without actually persisting the line items. | |\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```gdscript\n{\n \"uploadStatus\": {\n \"errors\": [\n string\n ],\n \"rowStatus\": [\n {\n \"rowNumber\": integer,\n \"entityId\": long,\n \"entityName\": string,\n \"changed\": boolean,\n \"persisted\": boolean,\n \"errors\": [\n string\n ]\n }\n ]\n }\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------------------------------|-----------------|-------------------------------------------------------------|-------|\n| `uploadStatus` | `nested object` | Status of upload. | |\n| uploadStatus.`errors[]` | `list` | Reasons why upload can't be completed. | |\n| uploadStatus.`rowStatus[]` | `list` | Per-row upload status. | |\n| uploadStatus.rowStatus[].`rowNumber` | `integer` | Row number. | |\n| uploadStatus.rowStatus[].`entityId` | `long` | Entity Id. | |\n| uploadStatus.rowStatus[].`entityName` | `string` | Entity name. | |\n| uploadStatus.rowStatus[].`changed` | `boolean` | Whether the stored entity is changed as a result of upload. | |\n| uploadStatus.rowStatus[].`persisted` | `boolean` | Whether the entity is persisted. | |\n| uploadStatus.rowStatus[].`errors[]` | `list` | Reasons why the entity can't be uploaded. | |\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response.\nAlternatively, try the\n[standalone\nExplorer](https://developers.google.com/apis-explorer/#p/doubleclickbidmanager/v1.1/doubleclickbidmanager.lineitems.uploadlineitems)."]]