Reports: get
Cuộc thăm dò ý kiến về trạng thái của yêu cầu báo cáo.
Thử ngay.
Phản hồi cho biết trạng thái của báo cáo:
- Nếu báo cáo đã sẵn sàng để tải xuống, phản hồi sẽ chứa
isReportReady: true
. Phản hồi cũng chứa thông tin như số lượng tệp báo cáo.
- Nếu báo cáo vẫn đang được xử lý, thì phản hồi sẽ chứa
isReportReady: false
.
- Nếu DoubleClick Search không thể hoàn tất báo cáo, thì phản hồi sẽ chứa mã lỗi 410 Không tồn tại và một trong các lý do được nêu trong
Mã phản hồi.
Yêu cầu
Yêu cầu HTTP
GET https://www.googleapis.com/doubleclicksearch/v2/reports/reportId
Tham số
Tên thông số |
Giá trị |
Mô tả |
Tham số đường dẫn |
reportId |
string |
Mã của yêu cầu báo cáo đang được thăm dò ý kiến.
|
Ủy quyền
Yêu cầu này cần được cho phép có phạm vi sau:
Phạm vi |
https://www.googleapis.com/auth/doubleclicksearch |
Để biết thêm thông tin, hãy xem trang xác thực và uỷ quyền.
Nội dung yêu cầu
Đừng cung cấp nội dung yêu cầu bằng phương thức này.
Phản hồi
Nếu thành công, phương thức này sẽ trả về một tài nguyên Báo cáo trong nội dung phản hồi.
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: 2024-08-20 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-20 UTC."],[[["Polls for the status of a report request to determine if it's ready for download, still processing, or if an error occurred."],["The response includes an `isReportReady` flag indicating the report status and, if ready, provides details like the number of report files."],["Uses a GET request to the specified endpoint, including the report ID as a path parameter, to retrieve the report status."],["Requires authorization with the `https://www.googleapis.com/auth/doubleclicksearch` scope for access."],["A successful response returns a Reports resource containing information about the requested report."]]],["This outlines polling a report request's status via a GET request to `https://www.googleapis.com/doubleclicksearch/v2/reports/reportId`, requiring authorization. The `reportId` path parameter identifies the report. A successful response indicates `isReportReady: true` if ready, including file information, or `isReportReady: false` if in progress. A 410 Gone error code signifies report failure. The method returns a Reports resource and doesn't use a request body.\n"]]