Method: advertisers.insertionOrders.delete
Xoá đơn đặt hàng quảng cáo. Trả về mã lỗi NOT_FOUND
nếu đơn đặt hàng quảng cáo không tồn tại. Trước tiên, bạn phải lưu trữ thứ tự chèn, tức là đặt entityStatus
thành ENTITY_STATUS_ARCHIVED
để có thể xoá thứ tự đó.
Yêu cầu HTTP
DELETE https://displayvideo.googleapis.com/v3/advertisers/{advertiserId}/insertionOrders/{insertionOrderId}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
advertiserId |
string (int64 format)
Mã của nhà quảng cáo sở hữu đơn đặt hàng quảng cáo này.
|
insertionOrderId |
string (int64 format)
Mã của đơn đặt hàng quảng cáo cần xoá.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ là một đối tượng JSON trống.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/display-video
Để biết thêm thông tin, hãy xem OAuth 2.0 Overview.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-02-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]