لاختبار الرمز الذي يستخدم Content API for Shopping، نقترح إنشاء حساب Merchant Center
منفصل مخصّص للاختبار فقط. يتيح لك ذلك إجراء
كلّ من الاختبارات اليدوية والمبرمَجة للرمز الذي يستخدِم Content API for Shopping
بدون التأثير في الخلاصات النشطة أو حملات Shopping.
إعداد بيئة الاختبار
أنشِئ حسابًا جديدًا على Google ليتم ربطه بحساب Merchant Center. سجّل الدخول إلى حساب Google الجديد واستخدمه لتنفيذ الخطوات التالية.
اتّبِع الخطوات الواردة في مقالة البدء لإعداد حساب جديد على Merchant Center. لست بحاجة إلى التحقّق من عنوان URL
لموقع الإلكتروني للحساب التجريبي.
أنشئ بيانات اعتماد مناسبة للرمز البرمجي الذي تخطّط لاختباره. بالنسبة إلى رمز الاختبار، نقترح عليك استخدام مسار حساب الخدمة الموضّح في دليل حسابات الخدمة من أجل إطار عمل الاختبار لتجنُّب الاضطرار إلى التعامل مع طلب الإذن ورموز الدخول والرموز المميزة الخاصة بالتحديث.
من خلال حساب Merchant Center الجديد وبيانات الاعتماد، من المفترَض أن تكون جاهزًا لاختبار الرمز باستخدام Content API for Shopping. إذا كنت لا تزال مبتدئًا في استخدام Content API، يمكنك الاطّلاع على دليل البدء للتعرّف على كيفية استخدام بيئة الاختبار
مع مكتبة عملاء Python، أو الانتقال إلى صفحة "العينات والمكتبات" حيث يمكنك العثور على أمثلة على الرموز البرمجية
التي يمكنك من خلالها اختبار بيئة الاختبار الجديدة.
سيستمرّ فحص صحة البيانات في واجهة برمجة التطبيقات، ما يقدّم ملاحظات بشأن الأخطاء الشائعة، مثل عدم توفّر الحقول المطلوبة، ولكن لن يتم إجراء عمليات التحقّق من جودة البيانات، لأنّه سيتم تلقائيًا رفض أي منتجات يتم تحميلها.
تاريخ التعديل الأخير: 2024-11-08 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-08 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The Merchant API is the new version of the Content API for Shopping and represents the future of the platform."],["Developers are encouraged to create a separate Merchant Center account solely for testing the API to avoid impacting live data."],["Setting up a test environment involves creating a new Google account, Merchant Center account, and developer project with the Content API enabled."],["While data quality checks aren't performed on test accounts, the API still conducts validation checks to provide feedback on errors."],["Testing accounts will eventually be suspended due to invalid product information, which is expected and won't affect Content API testing."]]],["The Merchant API beta, the new version of the Content API for Shopping, is introduced. To test this API, create a separate Merchant Center test account. This includes creating a new Google account, setting up a new Merchant Center account without website validation, and creating a new developer project to enable the Content API. Generate credentials, ideally using service accounts, for testing. Note that the test account will likely be suspended for invalid products, but this will not impact the API testing.\n"]]