Why it matters
- Google Merchant Center cannot show products it cannot read: a feed it rejects as a whole means no product in Shopping results and free listings, and no price in the ads of a merchant who uses them.
- The usual causes are a wrong address (the store's page instead of the feed's), a plugin that wrote the feed in the wrong encoding, and a file broken by a character the exporter did not escape.
- Arabic product names make the encoding error likely: a file saved in Windows-1256 or Latin-1 looks fine in a spreadsheet and arrives as question marks.
How to fix
- Open the address in a browser. A feed shows XML or tab-separated text, not a page with a menu.
- In the platform's export or in the feed plugin, choose the Google Shopping (Merchant Center) format, and copy the file's address from there.
- Save or serve the file as UTF-8, and declare it in XML:
<?xml version="1.0" encoding="UTF-8"?>. - Escape
&,<and>in product names and descriptions (&,<,>), or wrap the text in<![CDATA[ … ]]>. - Make sure the file has at least one product.
xml
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>متجر الواحة</title>
<link>https://shop.example/</link>
<description>منتجات متجر الواحة</description>
<item>
<g:id>OUD-1</g:id>
<title>عطر العود الملكي 50 مل</title>
</item>
</channel>
</rss>How we detect
- We fetch the address given, as for any page, and read the response body: nothing else is requested, and no product or image link in the feed is opened.
- A body that starts with
<!doctype htmlor<htmlis a web page. Empty bodies are empty. Bytes that are not valid UTF-8 are reported as such. - XML is read with a strict parser. An RSS 2.0 file must have
rssas its root withitemelements underchannel; an Atom file must havefeedwithentryelements. Any other root is not a feed. - Anything that is not XML and not JSON is read as tab-separated text: the first row must name at least two columns and one of
id,title,link,priceordescription. - A gzip file served as it is (a
.gzfeed) is not read: Merchant Center reads it, this check does not, so the rule reports that it could not check rather than a fault.