تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
إذا كان لديك حساب حالي على Merchant Center، يمكنك استخدام Google APIs
Explorer في المستندات المرجعية للتحقّق مما إذا كان حسابك جاهزًا للاستخدام مع Merchant API.
ابحث عن اسم المورد لحسابك من خلال تسلسل accounts/ و
merchantId. يمكنك العثور على merchantId في أعلى
Google Merchant Center.
في قسم بيانات الاعتماد، اختَر Google OAuth 2.0 ومفتاح
واجهة برمجة التطبيقات.
انقر على تنفيذ.
سجِّل الدخول باستخدام حساب Google المرتبط بحسابك على Google
Merchant Center عندما يُطلب منك ذلك.
إذا تم إعداد حسابك على Merchant Center بشكل صحيح، سيُقبل الطلب ويُعرَض رمز استجابة HTTP 200. إذا أنشأت حسابًا جديدًا للتو، لن تعرض الطريقة
accounts.products.list أي منتجات.
بعد ذلك، حاوِل استخدام مكتبة عملاء لطلب
الوصول إلى حسابات أخرى على Merchant Center. تتيح مكتبات العملاء تفويض
المستخدِم، ما يمنح التطبيق إذنًا بالوصول إلى data
حساب Merchant Center وإدارتها.
يمكنك أيضًا استخدام حساب
خدمة لمنح الإذن
بوصول واجهة برمجة التطبيقات إلى حسابك. حساب الخدمة هو نوع خاص من الحسابات
الذي ينتمي إلى تطبيق بدلاً من مستخدم فردي. لمزيد من
المعلومات، يُرجى الاطّلاع على نظرة عامة على حسابات الخدمة.
تاريخ التعديل الأخير: 2025-08-08 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-08-08 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eExisting merchant account holders can use the API explorer to verify their account's compatibility with the Merchant API.\u003c/p\u003e\n"],["\u003cp\u003eAccount verification involves locating your \u003ccode\u003emerchantId\u003c/code\u003e, constructing the resource name, and executing the \u003ccode\u003eaccounts.products.list\u003c/code\u003e method within the API Explorer using your credentials.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful verification is indicated by an HTTP response code \u003ccode\u003e200\u003c/code\u003e, although new accounts may not return any product data.\u003c/p\u003e\n"],["\u003cp\u003eAfter verification, users can proceed to utilize client libraries for accessing other merchant accounts or employ service accounts for authorizing API access to their own account.\u003c/p\u003e\n"]]],["To verify a merchant account for API use, locate your `merchantId` in Google Merchant Center and construct the account's resource name. In the API Explorer, use the `accounts.products.list` method, input the resource name in the `parent` field, and select Google OAuth 2.0 and API key credentials. Executing the request should return an HTTP 200 code, confirming successful setup. For new accounts, the product list will be empty. Further access can be configured via client libraries or service accounts.\n"],null,["# Verify your account's connection to Merchant API\n\nIf you have an existing Merchant Center account, you can use [Google APIs\nExplorer](https://developers.google.com/apis-explorer) in the [reference documentation](/merchant/api/reference/rest) to verify\nthat your account is ready to use with the Merchant API.\n\n1. Find the resource name of your account by concatenating `accounts/` and your `merchantId`. You can find your `merchantId` in the top of [Google Merchant Center](//merchants.google.com/).\n2. In the API Explorer for the [`accounts.products.list`](/merchant/api/reference/rest/products_v1/accounts.products/list) method, do the following:\n 1. Enter the resource name of your account in the `parent` field.\n 2. In the **Credentials** section, select **Google OAuth 2.0** and **API\n key**.\n 3. Click **Execute**.\n 4. If prompted, sign in with the Google Account associated with your Google Merchant Center account.\n\nIf your Merchant Center account is set up correctly, the request succeeds and\nreturns an HTTP response code `200`. If you just created a new account, the\n`accounts.products.list` method doesn't return any products.\n\nNext, try [using a client library](/merchant/api/client-libraries) to request\naccess to other Merchant Center accounts. Client libraries support user\nauthorization, which grants an application permission to access and manage\nMerchant Center account data.\n\nYou can also [use a service\naccount](/merchant/api/guides/authorization/access-your-account) to authorize\nAPI access to your own account. A service account is a special type of account\nthat belongs to an application instead of an individual end user. For more\ninformation, see [Service accounts overview](https://cloud.google.com/iam/docs/service-account-overview)."]]