برای دادن نقش مدیر گزارش به یک حساب، از accounts.update استفاده کنید تا قسمت reportingManager را روی true تنظیم کنید. نقش مدیر گزارش معادل نقش عملکرد و بینش در Merchant Center است.
accounts.update جایگزین کل منبع Account می شود. برای دریافت منبع کامل Account ، از accounts.get استفاده کنید، سپس همه فیلدها را در درخواست accounts.update ارائه کنید تا اطلاعات را از دست ندهید.
نمونه پرس و جو
جستار زیر، impressions ، clicks و ctr را برای همه محصولات موجود در حساب شما در یک دوره 30 روزه خاص بازیابی میکند. برای ارسال درخواست، عبارت Merchant Center Query Language زیر را به روش reports.search ارسال کنید:
SELECT
metrics.impressions,
metrics.clicks,
metrics.ctr
FROM MerchantPerformanceView
WHERE segments.date BETWEEN '2020-12-01' AND '2020-12-30'
روی Run کلیک کنید تا نمونه را در API Explorer امتحان کنید. بعد از اینکه روی Run کلیک کردید، مکاندار شناسه فروشنده را به شناسه فروشنده خود در URL درخواست بهروزرسانی کنید. می توانید پرس و جو را اصلاح کنید. جستجوی کامل باید در یک خط باقی بماند تا با کاوشگر API کار کند.
همچنین میتوانید معیارهای موجود در پرس و جو را برای گزارشهای عملکرد دقیقتر تقسیم کنید .
برای آشنایی با نحوه بازیابی و فیلتر کردن محصولات با سرویس Reports به راهنمای محصولات مراجعه کنید.
تاریخ آخرین بهروزرسانی 2024-11-13 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2024-11-13 بهوقت ساعت هماهنگ جهانی."],[[["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"]]