Untuk memberikan peran Pengelola pelaporan kepada akun, gunakan
accounts.update ke
setel kolom reportingManager ke true. Peran Pengelola pelaporan
setara dengan peran Performa dan insight di Merchant Center.
accounts.update menggantikan seluruh resource Account. Gunakan accounts.get untuk
dapatkan resource Account lengkap, lalu berikan semua kolom di
accounts.update agar Anda tidak kehilangan informasi.
Contoh kueri
Kueri berikut mengambil impressions, clicks, dan ctr untuk semua
produk di akun Anda selama periode 30 hari tertentu. Untuk membuat permintaan,
teruskan pernyataan Bahasa Kueri Merchant Center berikut ke
Metode reports.search:
SELECT
metrics.impressions,
metrics.clicks,
metrics.ctr
FROM MerchantPerformanceView
WHERE segments.date BETWEEN '2020-12-01' AND '2020-12-30'
Klik Run untuk mencoba contoh di API Explorer. Setelah Anda mengklik
Jalankan, perbarui placeholder ID penjual menjadi ID penjual Anda sendiri di
URL permintaan. Anda dapat mengubah kueri. Kueri lengkap harus tetap pada satu baris untuk
menggunakan API explorer.
Anda juga dapat menyegmentasikan
di kueri untuk laporan performa yang lebih terperinci.
Lihat Panduan produk untuk mempelajari caranya
untuk mengambil dan memfilter produk dengan layanan Reports.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-09-20 UTC."],[[["The `Reports` service allows you to retrieve performance metrics, such as impressions, clicks, and click-through rate (CTR), for your account."],["To access this service, you must have the Reporting manager role (equivalent to the Performance and insights role in Merchant Center), which can be assigned using the `accounts.update` method."],["A comprehensive list of available metrics can be found in the `metrics` documentation, and you can use Merchant Center Query Language to create customized reports."],["For more detailed analysis, you can segment your metrics and further explore report functionalities through the provided guides on segmentation and products."]]],["The `Reports` service retrieves performance metrics, requiring the Reporting manager role. This role is enabled by setting `reportingManager` to `true` using `accounts.update`. To retain data, use `accounts.get` beforehand. `reports.search` uses Merchant Center Query Language, as demonstrated in a sample query that fetches `impressions`, `clicks`, and `ctr` for a given date range, and allows to run it in the API Explorer. Additionally, metrics can be segmented for detailed reports.\n"]]