This page explains how you can create a Merchant Center account and upload a sample product using Merchant API.
Before you begin
Enable Merchant API in your Google Cloud project. You will need it for authentication.
Do I have a Google Cloud project?
If you use the API integration in Apps Script using the Shopping Content Service, it creates a default Google Cloud project and enables the Merchant API service automatically. However, you still need to complete a one-time Developer registration before using Merchant API. For more information, see Using Merchant API Service in Apps Script.
Otherwise, if you don't have a Google Cloud project, you can Create a Google Cloud project.
Step 1. Create a Merchant Center account
To use Merchant API, you must have a Merchant Center account. To create one, see Get started with Merchant Center. If you already have a Merchant Center account with "Admin" rights, you can use that.
Step 2. Set up authentication for Merchant API
The best way to set up authentication depends on the environment in which you plan to work:
- If you're a third-party provider, have your app request access to your clients' Merchant Center accounts using OAuth 2.0. For the details see Access client accounts. To register, you will need to get an OAuth token for your Google Account.
- If you're developing an in-house app that needs access to only your Merchant Center account, see Access your account instead.
Step 3: Decide how to interact with Merchant API.
There are two approaches for interacting with Merchant API:
Direct API calls
Make raw requests to the API endpoints directly, typically over HTTP(S). You manually handle forming the request body, setting headers (including authentication), and parsing the response.
Direct API calls guideClient libraries
Use prebuilt libraries that encapsulate the low-level details of making requests and handling responses. They handle authentication, request/response serialization, and other boilerplate code.
Client libraries guide