בקטע Credentials בוחרים באפשרות Google OAuth 2.0 ובאפשרות API key.
לוחצים על Execute.
אם תתבקשו לעשות זאת, היכנסו לחשבון Google שמשויך לחשבון Google Merchant Center.
אם חשבון Merchant Center מוגדר בצורה נכונה, הבקשה תאושר ותוחזר עם קוד תגובה מסוג HTTP 200. אם יצרתם חשבון חדש, השיטה accounts.products.list לא תחזיר מוצרים.
בשלב הבא, נסו להשתמש בספריית לקוח כדי לבקש גישה לחשבונות Merchant Center אחרים. ספריות הלקוח תומכות באימות משתמשים, שמעניק לאפליקציה הרשאה לגשת לנתונים בחשבון Merchant Center ולנהל אותם.
אפשר גם להשתמש בחשבון שירות כדי לאשר גישה ל-API לחשבון שלכם. חשבון שירות הוא סוג מיוחד של חשבון ששייך לאפליקציה ולא למשתמש קצה ספציפי. למידע נוסף, קראו את המאמר סקירה כללית על חשבונות שירות.
[[["התוכן קל להבנה","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 (שעון UTC)."],[[["\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,[]]