Sub topic 2
Price, sale price, and availability
This chapter assumes you know what a SKU is, can read XML, and have a product catalog with a price and stock status for each item. The feed examples use the g: namespace from Google's product data specification. Other shopping systems use similar attribute names.
Price and sale price
The price attribute is the regular price, with the currency code: 89.00 USD. Use a dot as the decimal separator and always include two decimal places. If an item is on sale, add sale_price with a lower value. Limit the sale to a date range with sale_price_effective_date, written as a start and end time separated by a slash.
<item>
<g:id>SKU-1001-BLU-M</g:id>
<g:price>99.00 USD</g:price>
<g:sale_price>89.00 USD</g:sale_price>
<g:sale_price_effective_date>2026-12-01T00:00+00:00/2026-12-07T23:59+00:00</g:sale_price_effective_date>
<g:availability>in_stock</g:availability>
</item>> Note: sale_price must be lower than price, and the price on the landing page must match the feed during the sale window.
Availability
availability accepts four values: in_stock, out_of_stock, preorder, and backorder. Update it whenever stock changes. A product that shows in_stock but cannot ship is a common cause of disapproval.
Variants and item_group_id
Each size or color is its own item with its own id. Give all variants of one product the same item_group_id, and list the varying attributes (color, size) on each item. Shopping systems use the group to show one product with choices, rather than several unrelated listings.
Shipping and return information
Shipping costs and delivery times are set in your Merchant Center account, not in each item. Return policies are also configured in the account. Keep these settings accurate, because the answer system reads them when it compares offers.
Setting up a merchant account and free listings
Create a Merchant Center account, verify your website, and claim it. Free listings let eligible products appear in shopping results without ad spend. Enable them in the account's growth settings, then confirm each product passes review.
Feed formats and submission methods
Feeds can be RSS 2.0 or Atom XML, or tab-separated text. Submit them by scheduled fetch from a URL you host, or by manual upload. Refresh the file at least daily, and refresh prices and availability more often if your stock changes quickly.
Exercise
A product costs 120.00 USD, is on sale for 95.00 USD from 2026-12-01 to 2026-12-10, and is currently out of stock. Which three attributes do you set in the feed item?
Show answer
Set price to 120.00 USD, saleprice to 95.00 USD, a salepriceeffectivedate covering 2026-12-01 to 2026-12-10, and availability to outofstock.