This article explains how to create a tab-delimited product data source with a spreadsheet program. If you prefer to work with a text-editing program, you can skip these steps; however, make sure that you follow the format requirements below.
If you're using Google Sheets, see Set up your product data in Google Sheets for specific instructions on creating a product data source with Google Sheets. For instructions on creating an XML data source instead, see RSS 2.0 specification and Atom 1.0 specification.
Example product data source files
You can reference our tab delimited (.txt) example file as you're creating your product data source.How to create your product data source
Step 1 of 5: Open your spreadsheet program
Using a spreadsheet program such as Microsoft Excel makes it easy to create a product data source and convert it to the proper format.
Step 2 of 5: Create a header row
On the first row of the spreadsheet, enter the names of the attributes that describe your products, each in its own column. You can list your products to Shopping ads or free listings using highly structured information with the help of two types of attributes:
- Required attributes
- Recommended attributes
Any products that are missing required attributes will not process successfully. Products missing recommended attributes will still process successfully. It's strongly suggested that you include information about those attributes as well to increase the chances that your products will be included in relevant results. Refer to the table below for an example header row and refer to the product data specification for all the required attributes for your target country:
A | B | C | D | E | F | G | H | |
1 | ID [id] |
Title [title] |
Description [description] |
Price [price] |
Condition [condition] |
Link [link] |
Availability [availability] |
Image link [image_link] |
2 | ||||||||
3 |
Step 3 of 5: Enter your item information
In the rows below the header row, enter information about your products for the attributes that you've chosen. Each product should be listed in a separate row and its information divided into the appropriate columns. (e.g. a product's description should be in the same column as the 'description' header). You may leave a cell empty if there is no value for an attribute.
A | B | C | D | E | F | G | H | |
1 | ID [id] |
Title [title] |
Description [description] |
Price [price] |
Condition [condition] |
Link [link] |
Availability [availability] |
Image link [image_link] |
2 | 123-uk | Toy Bear | A yellow teddy bear | 12 | new |
http://example1.com | in_stock |
http://example.com/image1.jpg |
3 | 1246 | Blender | 12-speed, black blender | 24.99 | used |
http://example2.com | in_stock |
http://example.com/image2.jpg |
Step 4 of 5: Convert your spreadsheet
Most spreadsheet programs allow you to export data into a tab-delimited file. Either of the options below will create a file with a name ending in the .txt extension. This is the file that you should submit to Google Merchant Center.
- For Microsoft Excel: Save the spreadsheet as tab-delimited text (.txt) by using the Save file as command in the File menu and specifying the format type. In the Save as type drop-down box, select the Text (tab delimited)(*.txt) option.
- For Google Sheets: You can easily upload your Google spreadsheet and set an ongoing scheduled upload directly in Merchant Center. Alternatively, you can download your file using the following steps: Open the File menu, click Download as and then select Tab-separated values (.tsv, current sheet). Select the Save as command from your browser's File menu to save as a .txt text file.
If you've already registered a product data source in your Merchant Center account, use the same file name as you specified during the setup process.
Step 5 of 5: Submit your product data source
Check that your file meets our format requirements below and submit it to us.
Format requirements
- The file must be tab-delimited plain text.
- The first line of the file is the header; it must contain attribute names, separated by tabs.
- One product per line; separate each attribute in that line with a tab.
- Do not include trailing tabs at the end of lines.
- Do not include tabs or line breaks in the attributes themselves.
- For group attributes such as tax
[tax]
and delivery[shipping]
, use colon-separated sub-attributes. Learn how to set up tax settings.- Note that when a colon (:) doesn't indicate a separate sub-attribute value, the value should be surrounded by quotes (").
- For repeated attributes such as product highlight
[product_highlight]
and product type[product_type]
, provide each value separated by a comma.- Note that when a comma (,) doesn't indicate a separate value, the value should be surrounded by quotes (").
- Note that not all attributes support multiple values; for example, you may only provide one ID
[id]
or description[description]
value. Learn more about product data specification.