Method: advertisers.insertionOrders.delete
ลบใบสั่งซื้อการใส่โฆษณา แสดงผลรหัสข้อผิดพลาด NOT_FOUND
หากไม่มีใบสั่งซื้อการใส่โฆษณา คุณควรเก็บคำสั่งซื้อการแทรกก่อน เช่น ตั้งค่า entityStatus
เป็น ENTITY_STATUS_ARCHIVED
เพื่อที่จะลบคำสั่งซื้อได้
คำขอ HTTP
DELETE https://displayvideo.googleapis.com/v3/advertisers/{advertiserId}/insertionOrders/{insertionOrderId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
advertiserId |
string (int64 format)
รหัสของผู้ลงโฆษณาที่เป็นเจ้าของใบสั่งซื้อการใส่โฆษณานี้
|
insertionOrderId |
string (int64 format)
รหัสของใบสั่งซื้อการใส่โฆษณาที่จะลบ
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะเป็นออบเจ็กต์ JSON ว่าง
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/display-video
ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-02-25 UTC
[null,null,["อัปเดตล่าสุด 2025-02-25 UTC"],[[["Deletes an existing insertion order that has been archived (`ENTITY_STATUS_ARCHIVED`)."],["Requires providing the advertiser ID and the insertion order ID in the request path."],["Uses an HTTP DELETE request with an empty request body to perform the deletion."],["Returns an empty response body upon successful deletion and a `NOT_FOUND` error if the insertion order doesn't exist."],["Needs authorization with the `https://www.googleapis.com/auth/display-video` scope."]]],["To delete an insertion order, send a `DELETE` HTTP request to the specified URL, including the `advertiserId` and `insertionOrderId` as path parameters. The insertion order must be archived beforehand by setting its `entityStatus` to `ENTITY_STATUS_ARCHIVED`. The request body should be empty. A successful deletion returns an empty JSON object. The required authorization scope is `https://www.googleapis.com/auth/display-video`. A `NOT_FOUND` error is returned if the insertion order is not found.\n"]]