Reports: get
Polling untuk mengetahui status permintaan laporan.
Coba sekarang.
Respons akan menunjukkan status laporan:
- Jika laporan siap didownload, responsnya akan berisi
isReportReady: true
. Respons juga berisi informasi seperti jumlah file laporan.
- Jika laporan masih dikerjakan, responsnya akan berisi
isReportReady: false
.
- Jika DoubleClick Search tidak dapat menyelesaikan laporan, responsnya berisi kode error 410 Gone dan salah satu alasan yang didokumentasikan di
Kode Respons.
Permintaan
Permintaan HTTP
GET https://www.googleapis.com/doubleclicksearch/v2/reports/reportId
Parameter
Nama parameter |
Nilai |
Deskripsi |
Parameter jalur |
reportId |
string |
ID permintaan laporan yang sedang di-polling.
|
Otorisasi
Permintaan ini memerlukan otorisasi dengan cakupan berikut:
Cakupan |
https://www.googleapis.com/auth/doubleclicksearch |
Untuk mengetahui informasi selengkapnya, lihat halaman autentikasi dan otorisasi.
Isi permintaan
Jangan berikan isi permintaan dengan metode ini.
Respons
Jika berhasil, metode ini akan menampilkan Resource laporan dalam isi respons.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-20 UTC.
[null,null,["Terakhir diperbarui pada 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"]]