Method: advertisers.lineItems.duplicate
复制订单项。如果成功,则返回所创建的订单项的 ID。
您无法使用 API 创建或更新 YouTube 及合作伙伴订单项。
此方法通常会出现较高的延迟时间。我们建议您延长默认超时时间,以免出错。
HTTP 请求
POST https://displayvideo.googleapis.com/v3/advertisers/{advertiserId}/lineItems/{lineItemId}:duplicate
网址采用 gRPC 转码语法。
路径参数
参数 |
advertiserId |
string (int64 format)
必需。此订单项所属广告客户的 ID。
|
lineItemId |
string (int64 format)
必需。要复制的订单项的 ID。
|
请求正文
请求正文中包含结构如下的数据:
JSON 表示法 |
{
"targetDisplayName": string
} |
字段 |
targetDisplayName |
string
新订单项的显示名称。 必须采用 UTF-8 编码,大小不得超过 240 字节。
|
响应正文
JSON 表示法 |
{
"duplicateLineItemId": string
} |
字段 |
duplicateLineItemId |
string (int64 format)
所创建订单项的 ID。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/display-video
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-25。
[null,null,["最后更新时间 (UTC):2025-02-25。"],[[["Duplicates an existing line item within a specified advertiser, returning the ID of the new line item."],["The API request requires the advertiser ID and the ID of the line item to be duplicated."],["You can specify a display name for the new line item in the request body."],["This method may experience high latency, so increasing your default timeout is recommended."],["YouTube & Partners line items cannot be duplicated using this API."]]],["This content describes how to duplicate a line item via an API, excluding YouTube & Partners line items. The HTTP request uses a `POST` method with `advertiserId` and `lineItemId` as required path parameters. The request body requires a `targetDisplayName` for the new line item. Successful responses return a JSON with a `duplicateLineItemId` field. The API call requires OAuth scope authorization and regularly experiences high latency, recommending increased timeouts.\n"]]