با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
از آنجایی که Content API به شما امکان تعامل برنامهریزی با Google Merchant Center را میدهد، اولین قدم برای استفاده از Content API راهاندازی و آزمایش حساب Merchant Center شماست.
برای ایجاد و آزمایش حساب Merchant Center خود، مراحل زیر را انجام دهید:
در بخش اعتبارنامه ، Google OAuth 2.0 و کلید API را انتخاب کنید.
روی Execute کلیک کنید.
در صورت درخواست، با حساب Google مرتبط با حساب Merchant Center خود وارد شوید.
اگر حساب Merchant Center شما به درستی پیکربندی شده باشد، درخواست با موفقیت انجام می شود و کد پاسخ HTTP 200 را برمی گرداند. با این حال، از آنجایی که شما به تازگی یک حساب کاربری جدید ایجاد کرده اید، ممکن است روش products.list هیچ محصولی را برنگرداند. بعداً در این راهنما، یک محصول اضافه میکنید و سپس دوباره با products.list تماس میگیرید تا تأیید کنید که عملیات موفق بوده است.
تاریخ آخرین بهروزرسانی 2025-08-13 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-13 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Merchant API beta is now available, offering a new and improved way to interact with Google Merchant Center.\u003c/p\u003e\n"],["\u003cp\u003eThis API is the future of the Content API for Shopping, providing enhanced integration capabilities.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize the Merchant API, you need a Merchant Center account; detailed setup instructions are provided if you don't already have one.\u003c/p\u003e\n"],["\u003cp\u003eYou can test your Merchant Center account and API integration using the \u003ccode\u003eproducts.list\u003c/code\u003e request with your unique Merchant Center ID.\u003c/p\u003e\n"]]],["The Merchant API beta, the new version of the Content API for Shopping, is introduced. To use it, set up a Merchant Center account: sign up, verify and claim your website URL (unless using a third-party CSS), and set US tax settings. Locate your account's unique identifier. Test the setup by executing a `products.list` request via the API Explorer, entering your account ID, and authenticating with OAuth 2.0 and API key credentials. A successful setup yields a 200 HTTP response.\n"],null,["# Set up Merchant Center\n\nSince the Content API lets you programmatically interact with Google Merchant\nCenter, the first step to using the Content API is setting up and testing your\nMerchant Center account.\n| **Note:** If you already have a Merchant Center account, skip to step 3.\n\nTo create and test your Merchant Center account, complete the following steps:\n\n1. To create a new Merchant Center account, complete the steps in [Sign up for\n Google Merchant Center](//support.google.com/merchants/answer/188493).\n2. In [Merchant Center](//merchants.google.com/), configure the following account settings:\n 1. [Verify and claim your website\n URL](//support.google.com/merchants/answer/176793). Merchant accounts with approved third-party CSSs aren't required to claim a website.\n 2. [Set up tax settings (US only)](//support.google.com/merchants/answer/160162).\n3. In Merchant Center, find the unique identifier of your account, which is the number at the top-right corner of the page, above the account email address.\n4. Run a [`products.list` request using the API\n Explorer](/shopping-content/reference/rest/v2.1/products/list?apix=true).\n\n 1. Enter your account ID in the `merchantId` field.\n\n | **Note:** All other request parameters are optional.\n 1. In the **Credentials** section, select **Google OAuth 2.0** and **API\n key**.\n 2. Click **Execute**.\n 3. If prompted, sign in with the Google Account associated with your Merchant Center account.\n\nIf your Merchant Center account is configured correctly, the request succeeds\nand returns an HTTP response code 200. However, since you just created a new\naccount, the `products.list` method might not return any products. Later in this\nguide, you will add a product and then call `products.list` again to confirm\nthat the operation succeeded."]]