Google Merchant accounts
On this page

Google Merchant accounts

Connect a Merchant Center account to send products through the API. The connection can serve multiple feeds. File and SFTP feeds do not need it: see Google delivery options.

What you need

Make the key

  1. In the Google Cloud console (opens in a new tab), choose a project in the top picker. To create one, press New project:

    The project picker open, with the picker button and New project lifted

    Give the project a name, such as Arlanix Docs, leave Parent resource as it is, and press Create:

    The New Project form: the project name, the project ID made from it, the parent resource, and Create

    After creation, select the new project in the picker. The console does not switch to it automatically.

  2. Open APIs & Services → Library, search for merchant api and open Merchant API:

    The API Library searched for merchant api, with the chosen project Arlanix Docs, the search and the Merchant API card lifted

    Press Enable:

    The Merchant API page, with Enable lifted

    Check that its status is Enabled:

    The Merchant API's details, with its status Enabled lifted

  3. Open IAM & Admin → Service accounts, with the project chosen, and press Create service account:

    The project's service accounts, with the project, the Service Accounts item and Create service account lifted

    Enter a name such as Product Feed. Skip the optional Permissions and Principals with access, then press Create and close:

    The Create service account form: the name, the ID with the email address, the description, and Create and close

    Copy the service account's email address for step 5:

    The service accounts list, with the new account lifted

  4. Open the account, choose the Keys tab, then Add key → Create new key:

    The service account's Keys tab, with the Add key menu open

    Leave Key type at JSON and press Create:

    Create private key, with JSON chosen

    Keep the downloaded JSON file. It cannot be downloaded again; a lost key must be replaced.

    Private key saved to your computer, naming the file

  5. In Merchant Center (opens in a new tab), open Settings → Access and services, and on its People and access tab press Add person under People:

    People and access in Merchant Center, with Access and services, the People and access tab and Add person lifted

    Paste the service account's email from step 3, ending in .iam.gserviceaccount.com, and press Next. It is also the key file's client_email:

    Enter email address, holding the service account's address

    Tick Admin and press Add user. A user with less than Admin access cannot manage the account:

    Add person: the service account's address, Admin ticked, and Add user lifted

    The service account is listed among the people, Verified:

    People and access, listing the service account with Admin, Standard and Performance and insights

Connect the account

  1. Open the Arlanix menu and choose Google Merchant Account under Integrations:

    The Arlanix menu open, with Google Merchant Account lifted

  2. Press Connect an account:

    The Connect an account button above the grid

  3. Fill in the form:

    The account form filled in: account id, name, developer email and the key file

    • Merchant Center account id: your account id, such as 123456789.
    • Name: a label such as Main store. If empty, it becomes Merchant followed by the account id.
    • Developer email: a person's Google account for Merchant API contact. For a production account, connecting asks Google to grant the API developer role. If Google invites the person, they must accept. Do not use the service account's email.
    • Service account key: press Choose a key file and select the downloaded JSON. Check that the displayed email matches the service account added to Merchant Center.
  4. Press Save:

    The Save button above the account form

    Saving registers the Cloud project if needed and checks access. The module allows up to 15 seconds for retries while Google applies access changes.

When it is connected

The form says Google account "…" saved and connected.:

The connected account form: the developer invitation, the saved and connected message, and Test Connection

If a message says Google invited the developer, ask them to accept the invitation.

The grid shows Connected. Test Connection checks access again. For a production account, it also checks the developer role and requests it if needed. Save & Close, under the arrow beside Save, returns to the grid. Next, choose the account in a feed.

When Google does not accept it

The account is saved as Failed. The form shows Google's reason. If Test Connection failed on an account that was connected, reopen the form to see Connect.

The account form after a save Google did not accept: the message at the top, and the reason under Connect

  1. Check that the Merchant API is enabled and the service account is an Admin in Merchant Center: Make the key, steps 2 and 5. Send other errors to your developer.
  2. If you changed the account form, press Save. If you fixed access in Google, press Connect.

If the message says … is not registered with the merchant account, check the account id and access. If you just added the service account, wait a few minutes before pressing Connect again.

Point a feed at it

  1. Open the feed, unfold Channel, and set Channel to Google Merchant Center (API).

  2. Fill in the fields:

    The Channel section for the API: Google Merchant Center (API), the Main store account, feed label main, content language en — English, Target countries empty and Supplemental data source off

    • Google account: the connected account. Use + to connect another.
    • Feed label: a label such as main or clearance. Use up to 20 letters (A–Z), digits, dashes and underscores, without spaces. The feed saves it in uppercase. The label and language identify the data source's products.
    • Content language: the language of the titles and descriptions.
    • Target countries: for a primary source, choose where these products are sold. Leave it empty to use the account's settings.
    • Supplemental data source: leave off for a primary feed. Turn on only to add fields to another feed's products.
    • Primary feed: appears for supplemental sources. Choose a registered primary feed with the same Google account, feed label and content language. If the primary feed has no data source yet, save it with Active on first.

    While the feed has a registered data source in this account, Feed label, Content language and Supplemental data source are fixed. Create another feed if you need different values.

  3. Save the feed.

Saving an active feed creates its data source. The source ID appears in the confirmation and under Channel → Data source:

The feed form after the save: "Feed "google-shopping" saved." and "Registered with Merchant Center as accounts/…/dataSources/…" at the top

Inactive feeds register when you activate and save them. Products then sync automatically: see Merchant API feeds.

When Merchant Center does not take it

The feed is saved, but the form shows Feed saved, but Merchant Center did not take its data source: and the reason. Check the account connection, fix the cause and save again. The next run also retries registration. Send other errors to your developer.

Change it later

What changed What happens
Target countries on a primary source, or the feed's Identifier Saving the active feed updates the data source. Its name is Magento: followed by the identifier.
The feed's Google account, or that account's Merchant Center account id Saving the active feed registers a source in the new account. The next deliveries send all its eligible rows. The old account's data source keeps its products: delete it in Merchant Center if they should no longer show.
Feed label, Content language or Supplemental data source The save is refused while the data source is registered in this Merchant Center account. For other values in that account, make a new feed.

If you save during delivery, a message says the data source update is deferred. The next delivery updates it before comparing products, even if no rows changed.

If you change the Merchant Center account id on the Google account's form, the feed needs a new data source there. You can choose its feed label, language and primary or supplemental type again; the old data source stays in the previous Merchant Center account.

When the data source is deleted in Merchant Center

Once the feed detects the deletion, delivery stops. Schedule says waits for the feed to be saved, and Channel → Data source says the source was deleted.

  • To send the feed again, save it, switched on. That recreates the data source. The next deliveries send all eligible rows again.
  • To stop sending, switch the feed off. Nothing is sent, and nothing is created in Merchant Center.

Change or delete the account

Go to Arlanix → Integrations → Google Merchant Account and choose Select → Edit.

  • To replace the key, press Choose a key file, choose the new file and save. Left empty, the field keeps the stored key.
  • If you change the account id, developer email or key, save to check the connection again. Until then, the form shows Save to connect. Renaming a connected account keeps its connection.

To delete the account, click Select in its row, then Delete. It asks first, naming the account: click OK.

Delete account: Delete "Main store"? The row goes, credentials and all, with Cancel and OK

Deleting the account here does not revoke its Google key. Remove that separately on the service account's Keys tab. Accounts still used by feeds cannot be deleted: Troubleshooting.