Search
Clear search
Close search
Google apps
Main menu

Atom 1.0 specification

This document provides guidelines for the creation of an XML product data feed in the Atom 1.0 format. We've linked standard attributes to their respective sections in the official Atom 1.0 specification to assist you in finding additional information about the components from our examples. Although we provide examples of Atom 1.0 files, we provide minimal details about Atom 1.0 itself. If you are interested in learning more about this standard, we suggest looking over this specification at http://www.ietf.org/rfc/rfc4287.txt.

To download a Atom 1.0 example file, please click here.

 

Section 1: Atom 1.0

Based on the Atom 1.0 specification, there are five pre-defined elements at the entry level - title, id, link, summary, and updated. Although these elements are optional in the Atom 1.0 standard, product data feeds require them.

Product data feeds also require additional elements such as price and condition. To include more detailed information about an item, we've extended Atom 1.0 by adding the Google Merchant Center namespace. Defining the Google Merchant Center namespace allows you to use additional elements, called "attributes", and increases the amount of information you can provide about each item in a feed.

Below is an example of a basic Atom 1.0 document containing a single item:

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlns:g="http://base.google.com/ns/1.0">
<title>The name of your data feed</title> <link href="http://www.example.com" rel="alternate" type="text/html" /> <updated>2006-06-11T18:30:02Z</updated> <author> <name>Google</name> </author> <id>tag:example.com,2006-06-11:/support/products</id> <entry> <title>Red wool sweater</title> <id>1a</id> <link href="http://www.example.com/item1-info-page.html" /> <summary>Comfortable and soft, this sweater will keep you warm on those cold winter nights.</summary> <updated>2005-10-13T18:30:02Z</updated>
<g:image_link>http://www.google.com/images/google_sm.gif</g:image_link> <g:price>25</g:price> <g:condition>new</g:condition>
</entry> </feed>

The two major additions in this example are the addition of the namespace declaration and the inclusion of three attributes (image_link, price, and condition).

Google Merchant Center Namespace Declaration

The following namespace declaration is required in order to use attributes defined only in the Google Merchant Center namespace.

xmlns:g="http://base.google.com/ns/1.0"

In addition to declaring the Google Merchant Center namespace, you must also include a prefix within every attribute tag. We add this prefix to attributes to distinguish attributes defined in our namespace from elements defined in Atom 1.0. The prefix selected for this namespace declaration is "g":

<g:image_link>http://www.google.com/images/google_sm.gif</g:image_link>

Attributes in the Google Merchant Center namespace must include this prefix or the attributes, and any values they contain, will be ignored.

Attributes

You can use as many relevant attributes as are specific to your items. Supplying additional information about your items by using these attributes will greatly increase your items' chances of showing up in results. In addition, many attributes defined in the Google Merchant Center namespace can be used more than once within a single item. This enables you to add more available information about an item in your feed.

 

Section 2: Important Checklist

Before you submit your feed, we highly recommend running through the following list to help ensure your file is properly formatted:

  1. Your filename must end with the .xml extension.
  2. The feed filename you register in your Google Merchant Center account must match the name you assign to your file.
  3. Remember to include namespace declarations. These values should match exactly as shown.
    1. Google Merchant Center namespace:  xmlns:g="http://base.google.com/ns/1.0".
    2. Custom attributes namespace: xmlns:[prefix]="http://base.google.com/cns/1.0", where [prefix] is replaced by the prefix you've included in your file. 
  4. Verify the prefix included in the Google Merchant Center and Custom Google Merchant Center attribute tags matches the prefix defined in the namespace declaration.
  5. Remove attributes that do not contain any values.
 

Section 3: Final note

The sample entry included in this document was simplified to allow for clearer focus on the basics of constructing a Google Merchant Center XML data feed. While we accept feeds containing other elements defined in the Atom 1.0 standard or in your own namespace, any information these elements contain will be ignored during processing and will not appear in your listings. At this time we will only process data contained in the default Atom 1.0 elements and in attributes within the Google Merchant Center and Custom Google Merchant Center namespaces.

Was this article helpful?
How can we improve it?
Policy changes

For past and upcoming policy changes, visit Merchant Center Announcements.