Skip to main content
Connecting Google Merchant Center sends your Fluid products to your Merchant Center account, where Google Shopping listings and Shopping ads use them. Fluid sends the product data and reads back Google’s review of each product. Buyers check out on your Fluid storefront, so there are no Google orders to import. Setup takes a person in a browser for one step: approving Fluid’s access in Google.

Before you start

  • A Google Merchant Center account with your storefront’s website verified and claimed, and a person who can sign in to it as an admin.
  • The Merchant Center account isn’t connected to another Fluid company. One account connects to one company.
  • A Fluid API token for the company, or your own sign-in with fluid login. It needs company admin access: Company settings permission to connect and disconnect, and Products permission to choose and fix products.
  • Install and sign in to the CLI:
Every fluid channels command prints JSON. Failures print a JSON error on stderr and exit with a non-zero code.

Steps

In a terminal, fluid channels walk google takes you through these steps one question at a time: it opens the sign-in link, checks the connection, lets you search for the products to send, and asks before each change.
1

Start the connection

This prints the Google Merchant Center sign-in url and, with --open, opens it in your browser. Nothing changes in Fluid until someone approves it in the next step. Without --open, send the url to the person who will approve it. The link works once and expires after 10 minutes; run connect again for a new one.
2

Approve Fluid in Google

Sign in with the Google account that administers Merchant Center and approve the access Fluid asks for. Fluid connects the first Merchant Center account that Google account can reach.Google Merchant Center then sends the browser back to Fluid admin. The address ends in connect=ok when the connection saved, or connect=error&reason=... when it didn’t. Whatever the page shows, check the result from the CLI:
The step is done when connection.status is connected. connection.account names the Merchant Center account Fluid connected.
3

Choose the products

This changes live configuration: it sends products to Google Merchant Center. Decide first between the whole catalog and selected products; see Whole catalog or selected products.
To send only some products, name them instead:
The output’s added counts the products sent. Each one starts as a draft and publishes in the background.
4

Check the sync

listings.byStatus counts the listings in each state and listings.issues counts the ones that need you. Publishing and Google Merchant Center’s review take from minutes to a few days. Check again later, backing off between checks, rather than in a loop.
5

Fix rejected products

Each issue has an action and a hint that says what to fix. Fix the product in Fluid, then:
  • For action: retry, retry every failed publish at once. This changes live configuration: fluid channels issues google --retry --yes.
  • For action: fix_and_relist, remove the product and add it again so the corrected version is sent: fluid channels catalog google --remove 4127 --yes, then --add 4127 --yes.
  • For action: resolve_on_channel, Google Merchant Center took the listing down. Check the reason in Google Merchant Center.
The step is done when count is 0.

Whole catalog or selected products

Fluid lists the products you send, one listing per product. There’s no setting that keeps the whole catalog in step with Google Merchant Center on its own, so the choice is about which products you send now and how you add new ones later. Start with a few products if you haven’t sold on Google Merchant Center before. You’ll see what Google Merchant Center rejects before you send everything. Each product needs, before it’s sent:
  • A SKU on every active variant, unique across the products you list on Google.
  • At least one active variant.
  • A title, description, price, and image. A product with no image of its own is sent with your company’s fallback image, which Google’s review may disapprove.
A product missing one of these fails to publish and shows up in fluid channels issues google. Google reviews each product. review shows Google’s status, and auditStatus is approved once Google approves it or audit_failed if Google disapproves it. Edits you make in Fluid after a product is sent, including price changes, aren’t sent to Google. Remove the product and add it again to send the current version. Fluid sends every product as in stock, whatever its inventory. To take products off Google Merchant Center, use --remove with product IDs, or --remove-all for every listed product. Removing a product deletes it from Merchant Center.

What the status means

Troubleshooting

  • connect fails with 422. Fluid couldn’t start the connection, usually because the channel isn’t set up for your company yet. Contact Fluid support.
  • The address after approving ends in connect=error. The reason says why. invalid_state means the link was used twice or expired: run connect again for a new one.
  • The reason is no_accounts. The Google account you approved with can’t reach a Merchant Center account. Sign in with one that administers Merchant Center and run connect again.
  • The reason is account_already_connected. Another Fluid company already holds this Merchant Center account. Disconnect it there first.
  • A command fails with 404. The company has no Google Merchant Center connection. Run step 1.
  • A command fails with 403. Your token lacks the permission that command needs: Company settings for the connection, Products for products.
  • Adding or removing products fails with 422. The connection isn’t active. Check connection.status and reconnect if it isn’t connected.

Disconnect

Both commands change live configuration. Disconnecting doesn’t take your products off Google Merchant Center: they stay listed and stop syncing, and you can’t remove them through Fluid until you reconnect. Remove them first, as above, unless you want them to stay. Fluid forgets its tokens and stops syncing. Google keeps the access you granted until you remove Fluid in your Google account’s security settings. The output’s stillListed counts the products left on Google Merchant Center.

Use the API directly

The CLI calls these company operations, all authenticated with a Bearer token:
  1. Start the Google Merchant Center connect flow, which returns the sign-in url.
  2. Get the company’s Google Merchant Center connection.
  3. Publish Fluid products to the connected Merchant Center.
  4. List the company’s Google Shopping listings.
  5. Retry a failed Google Shopping listing publish.
  6. Unpublish a Google Shopping listing.
  7. Disconnect the company’s Google Merchant Center connection.
For the whole catalog, the CLI reads your active products from Fluid’s product list and sends their IDs to the publish operation in batches of 50. Retrying only works on a listing whose publish failed.