Google accounts
On this page

This page is for version 1.0. Read the current version.

Google accounts

A feed whose channel is Google Merchant Center (API) sends your products straight into Merchant Center, without a file. For that, you connect your Merchant Center account to the store once, under Arlanix → Google Accounts, and every such feed uses the connection. A feed published as a file needs none: Choose how a feed reaches Google compares the channels.

What you need

Make the key

  1. In the Google Cloud console (opens in a new tab), open the project picker at the top and choose the project the key belongs in. With no project yet, 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

    The console does not switch to the new project: it stays on the one that was open. Once Google has made the new one, in a few seconds, open the picker again and choose it. The steps below work on the project the picker shows.

  2. With that project chosen in the picker, turn on the Merchant API. 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

    The API's page then shows it as Enabled. Without it, Google refuses the connection with Merchant API has not been used in project … before or it is disabled:

    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

    Give the account a name, such as Product Feed; its ID and email address follow from the name. Permissions and Principals with access are optional: skip them, and press Create and close:

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

    The list shows the account with its email address, such as [email protected]. Copy the address: in step 5 you add it to Merchant Center as a user, and until then the key opens nothing there:

    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

    The browser downloads the key file, named after the project, such as arlanix-docs-d3f1e98c7ec7.json. Google keeps no copy: a lost key cannot be downloaded again, only replaced by a new one.

    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 address you copied in step 3, the one ending in .iam.gserviceaccount.com, and press Next. The key file holds it too, as 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 Accounts:

    The Arlanix menu open, with Google Accounts 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: your own name for the account, such as Main store. The grid and the feeds show it. If you leave it empty, the name is Merchant followed by the account id.
    • Developer email: the Google account of the person Google writes to about the Merchant API, usually yours. Google stops the Merchant API for a Merchant Center account where no one has the API developer role, so the module gives this person that role when it connects. If they are not a user of your Merchant Center account yet, Google invites them, and the role is theirs once they accept. It cannot be the service account's email.
    • Service account key: press Choose a key file and choose the key file you downloaded, such as arlanix-docs-d3f1e98c7ec7.json. The form then shows the service account's email address, the one you added to Merchant Center.
  4. Press Save:

    The Save button above the account form

    Saving asks Google whether it accepts the account, which takes a few seconds. Right after you add the service account to Merchant Center, or with a new key, it can take up to 15 seconds: Google applies the change some seconds after accepting it, and saving waits.

When it is connected

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

The account form after the save: "Google account "Main store" saved and connected." at the top, and Test Connection lifted

When Google had to invite the developer, a second message says so: Google sent … an invitation to Merchant Center. Ask them to accept it.

The grid shows the account as Connected. In place of Connect the form offers Test Connection, which asks Google again and gives the developer the role again if someone took it away. Save & Close, under the arrow beside Save, saves the same way and goes back to the grid. To send a feed through it, see Point a feed at it.

When Google does not accept it

The account is saved, but not connected, and the grid shows it as Failed with the reason. The form comes back with Google account "…" saved, but Google did not accept it: and Google's reason at the top, and the reason again under Connect:

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

  1. Fix the cause. Most often, the service account has not been added to your Merchant Center account (Make the key, step 5), or the Merchant API is not turned on (step 2). For any other message, send it to your developer.
  2. When the cause is fixed, press Connect on the account's form. Google's answer shows under the button.

When Google takes longer than half a minute to apply a new key, the reason says … is not registered with the merchant account: press Connect again in a few minutes.

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 account you connected. + connects a new one.
    • Feed label: your own name for this set of products, such as main or clearance. Use up to 20 letters, digits, dashes and underscores, with no spaces. Google upper-cases it. Together with the language, the label decides which products this data source owns.
    • Content language: the language of the titles and descriptions.
    • Target countries: where these products are sold. Leave it empty to use the countries the Merchant Center account is set up for.
    • Supplemental data source: leave it off for a feed that sends its own products, which is the usual case. Turn it on for a feed that only adds fields to the products of another feed.
    • Primary feed: shown when Supplemental data source is on. Choose the feed whose products this one adds fields to. The list offers only feeds whose data source exists: save that feed first, switched on.

    Feed label, Content language and Supplemental data source are fixed once the data source exists: Google does not change them, and a save with another value is refused.

  3. Save the feed.

Saving a switched-on feed creates its data source in Merchant Center. The form says Registered with Merchant Center as and the source's id, and so does Data source in the Channel section:

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

A switched-off feed is registered when a save switches it on. From then on its products go to Google as they change: Merchant API feeds explains how, and what happens when Google refuses a product.

When Merchant Center does not take it

The feed is saved without a data source, and the form says Feed saved, but Merchant Center did not take its data source: and Google's reason. Fix the cause, then save the feed again; its next run tries as well. Most often the account is not connected: see When Google does not accept it. For any other reason, send the message to your developer.

Change it later

What changed What happens
Target countries, or the feed's Identifier, which names the data source in Merchant Center Saving the feed updates the data source.
The feed's Google account, or that account's Merchant Center account id Saving the feed creates a data source in the new account and sends every product to it. 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. For other values, make a new feed.

While the feed is being sent, saving it leaves the data source to the run, and the form says The feed is running: its data source in Merchant Center is brought up to date after the run.

When the data source is deleted in Merchant Center

The feed's next run stops with The data source … was deleted in Merchant Center, so nothing is sent until the feed is saved: …, and the feed is not run again. The grid's Schedule column says waits for the feed to be saved, and Data source in the Channel section says the source was deleted.

  • To send the feed again, save it, switched on. That creates a new data source and sends every product to it.
  • To stop sending, switch the feed off. Nothing is sent, and nothing is created in Merchant Center.

Change or delete the account

Open the account with Edit in its row's Select menu, under Arlanix → Google Accounts.

  • To replace the key, press Choose a key file, choose the new file and save. Left empty, the field keeps the stored key.
  • Saving another account id or key connects the account again; renaming it does not. While you change the account id or the key, the form hides Connect and says Save to connect: the button works on the account as saved, not on what is typed.

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

The grid then says Google account "Main store" deleted. The key itself keeps working in Google until you delete it there, on the service account's Keys tab. An account that feeds still send through cannot be deleted: Troubleshooting has the message and what to do.