Google Merchant Center Feed Validator
Operator: Abdulla Al Fahad. How tools are built and checked
Merchant Center disapproves a product for reasons that are visible in the feed text: a price without a currency code, an availability of In Stock instead of in_stock, a GTIN that fails its check digit, a sale price that is not lower than the price.
This validator reads the feed, applies the attribute rules Google publishes, and lists every problem by row and column before you upload again.
It reads tab-delimited text, CSV, XLSX and RSS or Atom XML feeds, tolerates headers written as Image Link or g:image_link, and writes a fixed feed that repairs the mechanical problems and a report with every finding.
Key features
- Required-column and required-value checks, id uniqueness and length, and duplicate-title variant hints
- Price and sale price parsing: number, one space, ISO 4217 code; sale below price, same currency, date range order
- GTIN check digits for UPC, EAN, ISBN-13 and GTIN-14, restricted prefixes, lost leading zeros, UPC-E and ISBN-10 conversion
- URL checks for link, mobile link and images: scheme, spaces, length, placeholder file names and extensions
- Apparel rules by target country, colour, size, gender and age group values, and variant groups with identical attributes
- Shipping, tax, weight, label and destination syntax
- A fixed feed (tab or comma) and a problem report CSV with the suggested value for each fix
Which Merchant Center attributes are checked, what each limit is and what the fixed feed changes
Required attributes are id, title, description, link, image_link, availability and price for every product, plus brand for new products except books, movies and music, and condition when the product is used or refurbished. Limits checked include id 50 characters, title 150, description 5,000, URLs 2,000, brand 70, mpn 70, custom labels 100 and additional images 10.
Values are checked against the allowed lists: availability in_stock, out_of_stock, preorder or backorder; condition new, refurbished or used; gender male, female or unisex; age_group newborn, infant, toddler, kids or adult; yes or no for adult, is_bundle and identifier_exists.
GTINs are validated with the GS1 check digit, must be 8, 12, 13 or 14 digits, and are refused when they start with the reserved GS1 prefixes 02, 04, 2 or 98 and 99. UPC-E must be sent as 12-digit UPC-A and ISBN-10 as ISBN-13.
How it works
Headers are normalised to attribute names (lower case, spaces to underscores, g: removed) and each row is checked on its own, then the whole feed is checked for repeats: duplicate ids, variants in one item_group_id with the same colour, size, material and pattern, and products with the same title but different colour or size and no item_group_id.
The fixed feed applies only repairs with one clear answer: trimmed cells, availability, condition, gender, age group and yes/no spelled as Merchant Center writes them, prices rewritten as 15.00 USD, spaces in URLs encoded, GTINs stripped of spaces and padded where the padded number validates. It never invents or recalculates a GTIN, and titles are cut only if you tick that option. The tab-delimited upload file writes cells as they are, with no spreadsheet-guard apostrophe that Merchant Center would read as text, and a cell starting with = + - or @ gets a formula-start warning; the CSV copy for spreadsheets adds the apostrophe and is not meant for upload.
When to run it
- A shop owner whose Shopping ads show 'Invalid value [price]' on 300 products and who finds that a plugin writes 12,50 EUR with a decimal comma.
- A feed manager checking a 20,000-row export before a seasonal upload, filtering the report to errors in the gtin column.
- An agency auditing a client's apparel feed for the United Kingdom, where colour, gender and age group are errors on every apparel row, and size is an error on clothing and shoes.
- A developer comparing an XML feed's g:shipping blocks, flattened to country:region:service:price, against the syntax rule.
- A seller of used equipment checking that condition is present and brand is allowed to be blank.
Running a check
- Drop the feed file, or paste the feed text.
- Choose the target country, which makes apparel attributes errors or warnings.
- Read the summary counts, the most common problems and the row-by-row list, filtering by level or column.
- Fix the cause in your shop system, or download the fixed feed to repair the mechanical issues.
- Download the report CSV to hand to whoever maintains the feed.
Example
A shoe shop's six-product tab-delimited feed, target country United States (every column shown)
id title description link image_link availability price sale_price brand gtin condition google_product_category color size gender age_group item_group_id identifier_exists
TR-42-BL Trail Runner Shoe Blue 42 Lightweight trail shoe with a 6 mm drop. https://shop.example/p/tr-42-bl https://cdn.example/tr-42-bl.jpg in_stock 89.00 USD Acme 4006381333931 new 187 Blue 42 male adult TR yes
TR-43-BL BIG SALE!! Trail Runner Shoe free shipping Lightweight trail shoe with a 6 mm drop. shop.example/p/tr-43-bl https://cdn.example/placeholder.png In Stock $89 79.00 USD N/A 4006381333932 New 187 Men adult TR yes
BP-20 Trek Backpack 20 L Water-resistant day pack. https://shop.example/p/bp-20 https://cdn.example/bp-20.jpg preorder 1,299.00 USD 1500.00 USD Acme 036000291452 new no
NB-1 Field Notebook Dotted paper notebook. https://shop.example/p/nb-1 https://cdn.example/nb 1.jpg in_stock 12,50 EUR 20123451 new
BK-9 The Long Walk A novel. https://shop.example/p/bk-9 https://cdn.example/bk-9.jpg in_stock 9.99 USD 978-0-306-40615-7 new 784
CP-1 In-store item Priced in store. https://shop.example/p/cp-1 https://cdn.example/cp-1.jpg in_stock 9.99 USD Acme 0212345678909 newFindings
4 of 6 products have errors, and TR-42-BL and BK-9 are clean; 20 findings, 15 errors and 5 warnings; the fixed feed applies 6 repairs (availability, condition and gender on TR-43-BL, the price on BP-20, the price and the image URL on NB-1)
TR-43-BL (8 errors, 4 warnings): link has no https://, availability In Stock (fix: in_stock), price $89 uses a symbol, condition New (fix: new), GTIN check digit should be 1 not 2, color and size missing for apparel, gender Men (fix: male); warnings for the promotional title, repeated exclamation marks, a placeholder image file name and the brand N/A
BP-20 (3 errors, 1 warning): preorder without availability_date, price 1,299.00 USD (fix: 1299.00 USD), sale price 1500 not lower than 1299; identifier_exists is no although a GTIN is present
NB-1 (3 errors): price 12,50 EUR (fix: 12.50 EUR), brand missing, image URL with a space (fix: %20)
CP-1 (1 error): GS1 prefix 021 is reserved for in-store codesTips for best results
- Filter the report to one column at a time. A price problem often hits thousands of rows with one cause, such as the decimal comma, and the most-common-problems table shows that count first.
- Leave titles alone and fix them at the source: the option to cut titles to 150 characters keeps the start, which may drop a size or colour you wanted to show.
- Set the target country before judging apparel rows; the same missing size on a shoe is a warning for Canada and an error for the United States. Size is required only for the Clothing (1604) and Shoes (187) categories, so a ring or a handbag under the same Apparel & Accessories parent is not flagged for it.
Limits
A clean report is not an approval. Policy review, landing-page match, image size and account settings are Google's checks, and image size. Google's "Merchant Center product data specification update 2026" help page (support.google.com/merchants/answer/16989427) says the 500 by 500 pixel minimum for image_link and additional_image_link is enforced from 31 January 2027; this page does not measure images, so check yours against that page.
The Google product taxonomy is not bundled, so google_product_category is checked only for length, and apparel is recognised by the category numbers 166, 1604 and 187 or the Apparel & Accessories path.
The tax attribute applies to the United States only; elsewhere prices include VAT or GST. The shipping attribute's price is checked as a number and a currency but not against your account rates.
A feed saved from Excel can lose leading zeros in GTINs. The validator pads when the padded number validates, but it cannot restore digits lost to scientific notation.
Duplicate ids are reported on every row that shares them, so one repeated id can show as several errors.
Common errors and how to fix them
- Price must look like 15.00 USD (number, one space, upper-case code); this is "1,299.00 USD".
- Remove the thousands separator and use a period as the decimal point. The fixed feed writes 1299.00 USD.
- Preorder products need availability_date.
- Add an ISO 8601 date such as 2026-12-01T09:00+0100 no more than a year ahead, or change availability.
- GS1 prefix 021 is reserved for in-store, restricted-distribution or coupon codes; Merchant Center rejects it as a product GTIN.
- Use the manufacturer's real GTIN, or set identifier_exists to no and supply brand and mpn.
Best practices
- Send gtin as text, so spreadsheet programs keep leading zeros and the full 12 or 13 digits.
- Use the manufacturer's GTIN only. The specification says never to guess one, and the validator will not repair a wrong check digit for the same reason.
- Keep one id per variant and one item_group_id per family, and give every variant its own colour or size.
What the severities mean
Errors are rules the specification states as limits, required fields or allowed values; a product breaking one is likely to be disapproved. Warnings flag style and consistency issues, such as an all-capitals title or a placeholder brand, that reduce quality or invite review without being a stated limit.
Variants and item_group_id
Google groups variants by item_group_id, and each variant must differ in colour, size, material or pattern. The validator reports two rows that share a group and all four values, and reports rows with the same title but a different colour or size and no group id.
In the United States, United Kingdom, Germany, France, Japan and Brazil, variants need item_group_id in every case.
XML feeds
An RSS 2.0 item or Atom entry is read into a table: g: prefixes are removed, additional_image_link elements are joined with commas, and nested shipping and tax blocks become the colon form, so the same rules apply to XML and text feeds.
Frequently asked questions
Does it fetch my image and product URLs?
No. URLs are checked for form only: scheme, spaces, length, placeholder names and file extension. Whether the pages and images load is Google's crawler's job.
Why is a missing brand an error for one product and not another?
Brand is required for new products except books, movies and music recordings, and for used or refurbished products it is optional. The check reads google_product_category (783, 784, 839, 855 or a Media path) and condition.
Which file format does Merchant Center prefer?
Google's file-format help lists tab-delimited text (.txt or .tsv), XML in RSS 2.0 or Atom 1.0 form, and Google Sheets; it does not list CSV or XLSX for upload to Merchant Center. This page reads CSV and XLSX because that is what shops export, then offers the fixed feed as tab-delimited text to upload to Merchant Center and as CSV for a spreadsheet or another system. Both are UTF-8 without a byte-order mark, so the first header is not corrupted.