Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Dado que la Content API te permite interactuar de forma programática con Google Merchant Center, el primer paso para usarla es configurar y probar tu cuenta de Merchant Center.
Para crear y probar tu cuenta de Merchant Center, completa los siguientes pasos:
En Merchant Center, busca el identificador único de tu cuenta, que es el número que aparece en la esquina superior derecha de la página, sobre la dirección de correo electrónico de la cuenta.
En la sección Credenciales, selecciona Google OAuth 2.0 y Clave de API.
Haz clic en Ejecutar.
Si es necesario, accede con la Cuenta de Google asociada a tu cuenta de Merchant Center.
Si tu cuenta de Merchant Center está configurada correctamente, la solicitud se realizará con éxito y devolverá un código de respuesta HTTP 200. Sin embargo, como acabas de crear una cuenta nueva, es posible que el método products.list no devuelva ningún producto. Más adelante en esta guía, agregarás un producto y, luego, volverás a llamar a products.list para confirmar que la operación se realizó correctamente.
[null,null,["Última actualización: 2025-08-13 (UTC)"],[[["\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."]]