API access to Merchant Center

The Content API for Shopping and the Merchant API allow you to interact directly with Merchant Center, vastly increasing the efficiency of managing large or complex Merchant Center accounts.They both enable programmatic access to complex account structures, product data management, insights, and other capabilities to power organic and Shopping ads experiences on Google, while being a complementary interface to the Merchant Center platform.


Debug API errors

Errors with your API requests can prevent your store from reaching online customers. To diagnose and fix errors with your API requests, access the “API Diagnostics" tab, which allows you to:

  • View all the successful and failed API requests for a given time period
  • Determine the number of successful and failed requests per API service and method
  • Review examples of failed requests
Note: The API can be used even when the API Diagnostics as an add-on isn't enabled. Learn more about activating add-ons in Merchant Center.

API Diagnostics

Errors from your API requests may prevent your products from showing on Google. Follow the directions below to review these errors:

  1. In your Merchant Center account, navigate to the "Settings and tools" icon Tools and setting menu icon [Gear].
  2. In the dropdown, click the API Diagnostics tab.
  3. From here, you can monitor, diagnose, and fix errors with your API requests. You can also determine which methods cause critical errors across API versions.
Note: You first need to activate the API diagnostics Add-on in Merchant Center to be able to access those insights. Learn more about activating add-ons in Merchant Center.

Review API requests

There are two main parts of the API diagnostics tab:

  • A timeline graph that shows the number of successful and failed API requests for a specific time period
  • A table that shows the total API requests and the number of failed API requests within that total
Note: The timestamps on the graph are based on the time zone specified in your account settings.

To review API requests:

  1. In your Merchant Center account, click the Settings and tools icon Tools and setting menu icon [Gear], then select API Diagnostics.
  2. Use the "Time period" filter to specify the time period.
  3. Use the filter bar on top of the page to specify the API service request (for example, products with the "Insert" method) that you want to review. Both the table and the timeline update to show the specific API service request.

View failed API requests

When the table displays the results for your selected data range, you can browse through the listed services and methods to quickly determine the causes of the failed API requests. By default, the errors are listed by service name, but you can change the sort order by selecting a column header.

To view the failed requests:

  1. View the error in the 'Errors/impacted API diagnostics example. Click Show more to view more details of your error messages.
  2. Use the error messages as guidelines to fix your API requests.

Need more support?

To get help integrating directly with Content API for shopping, please complete this form.

Was this helpful?

How can we improve it?
Search
Clear search
Close search
Main menu
8206224771168184482
true
Search Help Center
true
true
true
true
true
71525
false
false
false
false