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。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-25 (世界標準時間)。
[null,null,["上次更新時間: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"]]