Éléments de campagne à importer dans un fichier CSV. Pour en savoir plus sur les formats de fichiers, consultez la page Entity Write File Format (Format des fichiers d'écriture d'entités).
format
string
Format des éléments de campagne. Valeur par défaut : CSV
Les valeurs possibles sont les suivantes:
<ph type="x-smartling-placeholder">
</ph>
"CSV"
dryRun
boolean
Définissez la valeur sur true pour obtenir l'état de l'importation sans conserver les éléments de campagne.
Réponse
Si la requête aboutit, cette méthode renvoie un corps de réponse présentant la structure suivante :
Raisons pour lesquelles l'importation ne peut pas être effectuée.
uploadStatus.rowStatus[]
list
État de l'importation par ligne.
uploadStatus.rowStatus[].rowNumber
integer
Numéro de ligne.
uploadStatus.rowStatus[].entityId
long
ID d'entité.
uploadStatus.rowStatus[].entityName
string
Nom de l'entité.
uploadStatus.rowStatus[].changed
boolean
Indique si l'entité stockée est modifiée à la suite de l'importation.
uploadStatus.rowStatus[].persisted
boolean
Indique si l'entité est persistante.
uploadStatus.rowStatus[].errors[]
list
Raisons pour lesquelles l'entité ne peut pas être importée.
Essayer
Utilisez l'explorateur d'API ci-dessous pour appeler cette méthode sur des données en direct, puis observez la réponse.
Vous pouvez également essayer
autonome
un navigateur Web.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 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)."]]