تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
في ما يلي نموذج طلب بحث موجَّه إلى MerchantPerformanceView يعرض ملف تجاري يعرض
أداء حسابك على مدار آخر 30 يومًا، مقسّمًا حسب program و
offer_id. يمكنك تجربة هذا المثال السريع للتعرّف على خدمة Reports.
انقر على تشغيل لتجربة العيّنة في مستكشف واجهة برمجة التطبيقات. بعد النقر على
تشغيل، عدِّل العنصر النائب "معرّف التاجر" إلى معرّف التاجر الخاص بك في
عنوان URL للطلب. يمكنك تعديل الطلب. يجب أن يظلّ الطلب الكامل على سطر واحد لكي تتمكّن من
العمل مع مستكشف واجهة برمجة التطبيقات.
عنوان URL لطلب HTTP
يتألّف الطلب من طلب POST عبر بروتوكول HTTP إلى خادم Content API for Shopping على
عنوان URL التالي:
في ما يلي مثال كامل يعرض تعريف التقرير أعلاه مضمّنًا في
طلب HTTP POST:
POST/v2.1/merchantId/reports/searchHTTP/1.1Host:shoppingcontent.googleapis.comUser-Agent:curlContent-Type:application/jsonAccept:application/jsonAuthorization:Bearer access tokenParameters:{"query":"SELECT segments.program, segments.offer_id, metrics.impressions, metrics.clicks, metrics.ctr FROM MerchantPerformanceView WHERE segments.date BETWEEN '2020-11-01' AND '2020-11-30'"}
تاريخ التعديل الأخير: 2025-06-19 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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"]],["تاريخ التعديل الأخير: 2025-06-19 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of the platform."],["You can use the Merchant API to retrieve performance data, such as impressions, clicks, and CTR, segmented by program and offer ID."],["A sample query is provided to demonstrate how to retrieve performance data for the last 30 days using the `MerchantPerformanceView`."],["It's recommended to use one of the client libraries instead of directly making HTTP requests to the Content API for Shopping."]]],["The beta version of the Merchant API, the new Content API for Shopping, is introduced. To use the `Reports` service, users with the Reporting manager role can query the `MerchantPerformanceView` for account performance. A sample query using Merchant Center Query Language is provided to retrieve data on `program`, `offer_id`, `impressions`, `clicks`, and `ctr` between '2020-11-01' and '2020-11-30'. Users can run the sample via the API Explorer, updating the merchant ID and modifying the query.\n"]]