Reports: get
แบบสํารวจสําหรับสถานะของคําขอรายงาน
ลองใช้เลย
คำตอบจะระบุสถานะของรายงาน ดังนี้
- หากรายงานพร้อมให้ดาวน์โหลดแล้ว การตอบกลับจะมีข้อความ
isReportReady: true
นอกจากนี้ การตอบกลับยังมีข้อมูล เช่น จำนวนไฟล์รายงาน
- หากรายงานยังอยู่ระหว่างการพัฒนา การตอบกลับจะมีข้อความ
isReportReady: false
- หาก DoubleClick Search ไม่สามารถจัดทำรายงานให้เสร็จสมบูรณ์ได้ การตอบกลับจะมีรหัสข้อผิดพลาด 410 Gone และหนึ่งในเหตุผลที่ระบุไว้ใน
โค้ดตอบกลับ
ส่งคำขอ
คำขอ HTTP
GET https://www.googleapis.com/doubleclicksearch/v2/reports/reportId
พารามิเตอร์
ชื่อพารามิเตอร์ |
ค่า |
คำอธิบาย |
พารามิเตอร์เส้นทาง |
reportId |
string |
รหัสของคำขอรายงานที่กำลังสำรวจ
|
การให้สิทธิ์
คำขอนี้ต้องได้รับการให้สิทธิ์ตามขอบเขตต่อไปนี้
ขอบเขต |
https://www.googleapis.com/auth/doubleclicksearch |
สำหรับข้อมูลเพิ่มเติม โปรดดูที่หน้าการตรวจสอบสิทธิ์และการให้สิทธิ์
เนื้อหาของคำขอ
โปรดอย่าให้เนื้อหาคำขอตามวิธีนี้
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-20 UTC
[null,null,["อัปเดตล่าสุด 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"]]