Sub topic 10
Feed Formats and Submission Methods
This chapter assumes you understand SKUs, product attributes, and the purpose of a merchant account. You should also be able to read simple XML, JSON, and tab-separated values (TSV).
A product feed is a machine-readable file that describes the products in your catalog. A shopping platform imports the file, validates its attributes, and uses the accepted records for listings, product comparisons, and shopping answers. The feed is one source of truth, but it works best when it agrees with the product page and merchant account settings.
Choosing a feed format
Common formats represent the same product model in different ways:
| Format | Strength | Common use |
|---|---|---|
| XML | Supports namespaces and nested structures | RSS or Google-style product feeds |
| TSV or CSV | Easy to generate from spreadsheets and databases | Scheduled catalog exports |
| JSON | Natural for APIs and application pipelines | Custom integrations and internal tooling |
For a Google Merchant Center-style feed, XML commonly uses the g: namespace for product attributes:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>Example Store</title>
<link>https://www.example.com</link>
<description>Product feed</description>
<item>
<g:id>SKU-1001-BLU-M</g:id>
<g:title>Acme Trail Runner Jacket - Blue, Medium</g:title>
<g:description>Water-resistant running jacket with a packable hood.</g:description>
<g:link>https://www.example.com/p/jacket?color=blue&size=m</g:link>
<g:image_link>https://www.example.com/img/jacket-blue.jpg</g:image_link>
<g:price>89.00 USD</g:price>
<g:availability>in_stock</g:availability>
<g:condition>new</g:condition>
</item>
</channel>
</rss>A TSV export would use one row per product and one column per attribute:
id title description link image_link price availability condition
SKU-1001-BLU-M Acme Trail Runner Jacket - Blue, Medium Water-resistant jacket https://www.example.com/p/jacket?color=blue&size=m https://www.example.com/img/jacket-blue.jpg 89.00 USD in_stock newThe format does not fix incorrect data. A valid XML document can still contain the wrong price, a broken URL, or a value that violates the platform's rules.
Submission methods
Choose a submission method based on how often your catalog changes and how much control your team needs.
- Upload a file manually for a small catalog or a one-time test.
- Use a scheduled fetch when you can publish a stable file at a public URL. The merchant platform retrieves it on a schedule.
- Use an API when inventory, pricing, or availability changes frequently and your system can authenticate and handle errors.
- Use a spreadsheet or partner connector when a commerce platform already generates and maintains the feed.
A scheduled fetch is simple and repeatable. An API can provide fresher updates, but it requires retry handling, authentication, logging, and monitoring. Manual uploads have the lowest setup cost but create the highest risk of stale data.
Set a refresh schedule
The schedule should match the fastest-changing important attribute. If stock changes hourly, a weekly feed is unsafe even if titles and descriptions rarely change. Update price and availability at least as often as your sales system can support, and send a complete catalog refresh often enough to remove discontinued items.
Track each submission with:
- Generation time and source-system version
- Number of products exported
- Number of products accepted and rejected
- Last successful fetch or API response
- Changes in price, availability, and identifiers
Exercise
A catalog has 20,000 products. Prices and stock change several times each day, and the store can publish a feed URL every hour. Which method is a practical starting point, and what must you monitor?
Show answer
Use a scheduled fetch of the hourly feed. Monitor successful fetches, file size and product counts, price and availability changes, validation errors, and platform diagnostics.