Reports: get
نظرسنجی برای وضعیت درخواست گزارش. اکنون آن را امتحان کنید .
پاسخ وضعیت گزارش را نشان می دهد:
- اگر گزارش آماده دانلود باشد، پاسخ حاوی
isReportReady: true
. پاسخ همچنین حاوی اطلاعاتی مانند تعداد فایل های گزارش است. - اگر گزارش همچنان در حال کار است، پاسخ حاوی
isReportReady: false
است. - اگر DoubleClick Search نتواند گزارش را تکمیل کند، پاسخ حاوی کد خطا 410 Gone و یکی از دلایل مستند شده در Response Codes است .
درخواست کنید
درخواست HTTP
GET https://www.googleapis.com/doubleclicksearch/v2/reports/reportId
پارامترها
نام پارامتر | ارزش | توضیحات |
---|
پارامترهای مسیر |
reportId | string | شناسه درخواست گزارش در حال نظرسنجی. |
مجوز
این درخواست به مجوز با محدوده زیر نیاز دارد:
دامنه |
---|
https://www.googleapis.com/auth/doubleclicksearch |
برای اطلاعات بیشتر، به صفحه احراز هویت و مجوز مراجعه کنید.
درخواست بدن
با این روش بدنه درخواستی ارائه نکنید.
پاسخ
در صورت موفقیت آمیز بودن، این روش یک منبع Reports را در بدنه پاسخ باز می گرداند.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-08 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-08 بهوقت ساعت هماهنگ جهانی."],[[["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"]]