Your first feed
On this page

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

Your first feed

This page makes one feed from start to finish: a Google Shopping feed written as a CSV file on your store, which Google Merchant Center then collects every day. It takes about ten minutes. Every screen is shown as it looks in the admin, so you can compare as you go. The screenshots were taken in Magento's sample store, which sells clothes and bags; your products and categories will be your own.

The same steps make a feed for Meta, TikTok or any other platform. Only the Type differs, and the platforms page says what changes.

Step 1. Open a new feed

  1. Open the Arlanix menu and choose Feeds:

    The Arlanix menu open, with Feeds lifted

  2. Press Add Feed:

    The Add Feed button above the grid

A form opens with six sections: General, Products, Mapping, Google categories, Channel and Schedule. The first two are open, the others are folded; click a section's title to unfold it. The steps below follow them from top to bottom.

The new feed form as it opens, with the General section empty

Step 2. General: name the feed

The General section, filled in

Fill it in like this:

Field Enter Why
Active Yes An inactive feed is kept but never runs.
Identifier google-shopping The feed's own code, used in the file's name. Lower-case letters, digits, dashes and underscores. Whatever you type is turned into that form on save.
Type Google Shopping The platform's field catalog: what the mapping is copied from, and what the rows are compared with to warn you. Google Shopping knows Google's fields, which ones it requires and what they usually come from. Generic knows nothing and lets you name any field.
Store View your store view Decides the prices, the currency, the language and the product links in the feed. One feed is one store view: a shop in two languages makes two feeds.

Step 3. Products: choose which products go in

The conditions at the top of the section choose the products, the way a catalog price rule does: If ALL of these conditions are TRUE, one condition per row. With no condition, the feed takes every product of the store view's website. A Google feed needs two:

  • Enable Product is Enabled. Disabled products are not for sale.
  • Visibility is Catalog, Search. This sends each product once, as the shopper finds it in your catalogue. A product sold in several sizes or colours goes out as one row.
  1. Press Add condition:

    The Products section, with the Add condition button lifted

  2. In the list that appears, choose Enable Product. A row Enable Product is comes in: choose Enabled at its end.

  3. Press Add condition again, choose Visibility, and at the end of its row Catalog, Search.

  4. Below the conditions, in Stock status, choose In stock. Google disapproves products nobody can buy; leaving them out is simpler than sending them as out of stock. Stock, like the price, is read as the feed is sent, so it is a setting rather than a condition.

    The Products section with the conditions Enable Product is Enabled and Visibility is Catalog, Search, and In stock chosen

In the sample store these choices take 181 of its 2,040 products. The rest of the section can wait:

  • Conditions can use any attribute, the SKU, a category or groups of conditions: see Products.
  • If your sizes or colours have different prices, such as a tablecloth that costs more in 180 × 300 than in 140 × 180, Google wants each of them as a row of its own. Finish the feed first, then follow the sizes and colours recipe, which changes this step.
  • With Multi Source Inventory, an Inventory sources field sits under Stock status. Leave it empty, and it counts stock as your storefront sells it.
  • Leave Prices for customer group and Prices with tax at their defaults.

Step 4. Mapping: copy Google's fields

Unfold Mapping. The table is empty: no field is mapped yet.

The Mapping section, empty, with Copy from and Add field

Instead of adding fields one by one, copy the whole catalog: in Copy from choose Google Shopping (under Field catalogs) and press Copy.

Copy from set to Google Shopping, with the Copy button beside it

The Mapping table after the copy: id, title, description, link, image_link, availability, price and the optional fields, each with its source

The table now has one row per Google field, with the source the catalog knows for it:

  • the seven required fields, marked Required: id from the SKU, title from the name, description from the description with HTML stripped, link from the product URL, image_link from the main image, availability from the stock status through the Google availability dictionary, and price as Google wants it, with the currency;
  • the optional fields Google can use: brand from the manufacturer attribute, condition as the fixed value new, item_group_id from the parent SKU, colour, size, material, pattern, sale price, Google category, and more.

Nothing here is saved until you save the feed. Leave the table as it is for now; the mapping page explains every column and how to change a source, add a modifier or use a dictionary.

Rows whose source says -- Choose -- (adult, age group, gender) carry nothing until you pick a source. That is fine: Google treats an empty optional field as not sent.

Check the brand row now: it reads the manufacturer attribute. If your store keeps the brand somewhere else, pick that attribute in the row's Value. If you sell your own products without a brand or barcodes, the own brand recipe shows the two rows to change.

Step 5. Google categories: say what you sell

Google sorts every product into its own list of categories, such as Home & Garden > Linens & Bedding > Table Linens > Tablecloths. This section gives each product a Google category from the Magento category it is in.

  1. Unfold Google categories. Leave Taxonomy locale empty for Google's en-US list, or enter the feed's language, such as de-DE.

  2. Click Default Google category, type a word, such as clothing or tablecloth, and pick the line from Google's list. Products whose own categories have no assignment get this one. In a shop that sells one kind of thing, this field is enough.

    The Default Google category field searching Google's list for "Clothing"

  3. To give a Magento category its own Google category, press Assign a category. Pick the Magento category on the left and Google's on the right, with the same search. Assigning Table linen covers every category under it, until a deeper one has its own.

    The Google categories section: a default category and one Magento category assigned

Assign what you can now; the Google categories page explains the rest. A product with no category is still accepted, but placed less well.

Step 6. Channel: where the feed goes

Unfold Channel.

The Channel section: Channel File, Format CSV, File name google-shopping.csv, URL, and Allow an empty feed off

  • Channel: File, which publishes the feed on your store, at an address you give Merchant Center once. It is the simplest choice and needs no Google account connected to Magento. The fields below it are the ones the chosen channel needs; the other channels are in Choose how a feed reaches Google.
  • Format: CSV. Google Merchant Center reads CSV, TSV and XML. The other two, JSON and JSON Lines (NDJSON), are for programs of your own; Merchant Center does not read them.
  • File name: google-shopping.csv. Left empty, the identifier and the format decide it, which gives the same name here.
  • URL is filled in by the module when the feed is saved: this is where the file will be served from. You will give this address to Merchant Center.
  • Allow an empty feed: leave it off. Then a run in which every product is left out keeps the published file instead of replacing it with an empty one; see An empty feed is never published.

Step 7. Schedule: when it runs

Unfold Schedule. Choose Every day, hour 03, minute 00.

The Schedule section: every day at 03:00, with the next ten runs listed

Next runs shows the next ten times, in the admin's time zone, so a mistake is visible at once. The other choices are every hour, every few hours, every week on a weekday, every month on a day, and Never for a feed you only run by hand.

A schedule needs the Magento cron. Most stores already run it; if yours did not, your developer set it up when installing the module.

Step 8. Save

  1. Press Save at the top right:

    The Save button above the feed form

  2. The page reloads with a green message, and two buttons appear next to Save: Run history and Preview:

    The saved feed: "Feed "google-shopping" saved." and the Run history and Preview buttons

If the message is red instead, the feed is not saved. The form comes back as you typed it, with the message at the top saying what is wrong:

A second feed refused: "Another feed already uses the identifier "google-shopping"." above the form, and the Identifier field

The usual causes are an identifier another feed already has, as here, and two mapping rows writing the same field. Correct it and press Save again.

Step 9. Run it once

The feed will run on its schedule, but you want to see it now.

  1. Go back to Arlanix → Feeds, open Select at the end of the row and press Generate:

    The row's Select menu open, with Generate lifted; the feed is never delivered yet

  2. A green message says the feed is queued: its file is generated in the background, usually within a minute.

    The grid after Generate: "Feed "google-shopping" is queued."

  3. A minute or two later, reload the page. The row shows the run:

    The grid after the run: Health with the time under it, and the file google-shopping.csv with its size

  • Health says OK when every product is in the feed, with the time the file was published under it. 3 left out means three products have nothing in a field the mapping marks Required: Why?, after the time, says which field and what to do. Health lists every status.
  • File is a link to the file, with its size. Click it to download the CSV.

If the row still says Never delivered after five minutes, or a yellow message at the top of the page says the feed cron has not run, the Magento cron that runs the feeds is not running. That is for your developer: send them When feeds never run. Warnings above the feed pages explains this message and the other one the feed pages show.

Step 10. Look at the result

The file is at the URL shown in the Channel section, https://your-store/media/arlanix/feeds/google-shopping.csv. The first lines look like this:

id,title,description,link,image_link,availability,price,brand,condition,…
24-MB01,Joust Duffle Bag,"The sporty Joust Duffle Bag can't be beat …",https://your-store/joust-duffle-bag.html,https://your-store/media/catalog/product/m/b/mb01-blue-0.jpg,in_stock,34.00 USD,,new,…

Why? in the Health column says what a run left out, and Preview on the feed form shows any product's row without opening the file. Both are on the Run and check a feed page.

Step 11. Give the file to Merchant Center

In Merchant Center go to Products → Data sources → Add product source → Add products from a file → Enter a link to your file, paste the URL and choose when Google should fetch it. Pick a time after the feed's own schedule, for example 04:00 for a feed that runs at 03:00, so Google always fetches a fresh file.

Done. From here on the feed runs every night, and Google picks it up every morning.