Mã của loại bộ lọc được chỉ định được dùng để lọc mục hàng cần tìm nạp. Nếu bỏ qua, hệ thống sẽ trả về tất cả mục hàng.
format
string
Định dạng mục hàng sẽ được trả về. Giá trị mặc định là CSV.
Các giá trị được chấp nhận là:
"CSV"
fileSpec
string
Thông số tệp (tên cột, loại, thứ tự) mà mục hàng sẽ được trả về. Giá trị mặc định là EWF.
Các giá trị được chấp nhận là:
"EWF"
Phản hồi
Nếu thành công, phương thức này sẽ trả về nội dung phản hồi có cấu trúc như sau:
{
"lineItems": string
}
Tên tài sản
Giá trị
Mô tả
Ghi chú
lineItems
string
Các mục hàng được truy xuất ở định dạng CSV. Để biết thêm thông tin về các định dạng tệp, hãy xem phần Định dạng tệp ghi thực thể.
Hãy dùng thử!
Hãy sử dụng APIs Explorer (Trình khám phá API) bên dưới để gọi phương thức này trên dữ liệu trực tiếp và xem phản hồi.
Ngoài ra, hãy thử
độc lập
Trình khám phá.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe Line Items Settings service within the Bid Manager API is discontinued and users should transition to the DV360 API.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation details the process for retrieving line items in CSV format using the \u003ccode\u003edownloadlineitems\u003c/code\u003e method, excluding YouTube & partners line items.\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\u003eUsers can specify filters based on advertiser ID, insertion order ID, or line item ID to refine the data retrieved.\u003c/p\u003e\n"]]],["The Bid Manager API's Line Items Settings service is discontinued; users must switch to the DV360 API. To retrieve line items, send a POST request with authorization to the specified endpoint. The request body should include filter type, filter IDs, format (default CSV), and file specification (default EWF). The response will contain line items in CSV format as a string. YouTube line items are not included.\n"],null,["# Lineitems: downloadlineitems\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\nRetrieves 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/downloadlineitems\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 \"filterType\": string,\n \"filterIds\": [\n long\n ],\n \"format\": string,\n \"fileSpec\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `filterType` | `string` | Filter type used to filter line items to fetch. \u003cbr /\u003e Acceptable values are: - \"`ADVERTISER_ID`\" - \"`INSERTION_ORDER_ID`\" - \"`LINE_ITEM_ID`\" | |\n| `filterIds[]` | `list` | IDs of the specified filter type used to filter line items to fetch. If omitted, all the line items will be returned. | |\n| `format` | `string` | Format in which the line items will be returned. Default to `CSV`. \u003cbr /\u003e Acceptable values are: - \"`CSV`\" | |\n| `fileSpec` | `string` | File specification (column names, types, order) in which the line items will be returned. Default to `EWF`. \u003cbr /\u003e Acceptable values are: - \"`EWF`\" | |\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"lineItems\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `lineItems` | `string` | Retrieved line items in CSV format. For more information about file formats, see [Entity Write File Format](https://developers.google.com/bid-manager/guides/entity-write/format). | |\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.downloadlineitems)."]]