以 CSV 格式上傳委刊項。不支援 YouTube 與合作夥伴委刊項。 立即試用。
要求
HTTP 要求
POST https://www.googleapis.com/doubleclickbidmanager/v1/lineitems/uploadlineitems
授權
此要求需要以下範圍的授權:
範圍 |
---|
https://www.googleapis.com/auth/doubleclickbidmanager |
詳情請參閱驗證和授權頁面。
要求主體
在要求內容中,請按照下列結構提供資料:
{ "lineItems": string, "format": string, "dryRun": boolean }
資源名稱 | 值 | 說明 | Notes |
---|---|---|---|
lineItems |
string |
要上傳的 CSV 委刊項。如要進一步瞭解檔案格式,請參閱「實體寫入檔案格式」。 | |
format |
string |
委刊項所屬的格式。預設值為 CSV 。可接受的值如下:
|
|
dryRun |
boolean |
設定 true 即可在不實際保留委刊項的情況下,取得上傳狀態。 |
回應
如果成功的話,這個方法會傳回回應內文,其結構如下:
{ "uploadStatus": { "errors": [ string ], "rowStatus": [ { "rowNumber": integer, "entityId": long, "entityName": string, "changed": boolean, "persisted": boolean, "errors": [ string ] } ] } }
屬性名稱 | 值 | 說明 | Notes |
---|---|---|---|
uploadStatus |
nested object |
上傳狀態。 | |
uploadStatus.errors[] |
list |
無法完成上傳的原因。 | |
uploadStatus.rowStatus[] |
list |
每列的上傳狀態。 | |
uploadStatus.rowStatus[].rowNumber |
integer |
列號。 | |
uploadStatus.rowStatus[].entityId |
long |
實體 ID。 | |
uploadStatus.rowStatus[].entityName |
string |
實體名稱。 | |
uploadStatus.rowStatus[].changed |
boolean |
上傳實體是否因上傳而變更。 | |
uploadStatus.rowStatus[].persisted |
boolean |
實體是否持續存在。 | |
uploadStatus.rowStatus[].errors[] |
list |
無法上傳實體的原因。 |
試試看!
使用 APIs Explorer 針對即時資料呼叫這個方法,並查看回應。或者,您也可以試試看獨立的 Explorer。