Why it matters
- Merchant Center disapproves products whose values it cannot read. A price it cannot parse, an availability it does not know or a wrong GTIN means the product is out of Shopping and free listings until the value is fixed.
- Arabic stores meet the same few errors: an availability written in Arabic («متوفر»), a price with the riyal as text («120 ر.س»), prices in Eastern Arabic digits, and a comma as the decimal separator.
- A GTIN with a wrong check digit is rejected even when it looks right to a person; a wrong one can also attach the product to another product's listing.
How to fix
Write the values the specification lists, whatever language the store shows:
xml
<g:availability>in_stock</g:availability>
<g:price>120.00 SAR</g:price>
<g:sale_price>99.00 SAR</g:sale_price>
<g:link>https://shop.example/p/oud-1</g:link>
<g:gtin>4006381333931</g:gtin>- Availability: map the store's statuses to
in_stock,out_of_stock,preorderorbackorderin the feed plugin; do not export the label shown to shoppers. - Price: the number with a full stop, a space, and the three-letter code:
SAR,AED,OMR,KWD,BHD,QAR,EGP. Gulf currencies with three decimals (OMR, KWD, BHD) keep them:12.500 OMR. - Sale price: below the price, in the same currency.
- Links: full addresses starting with
https://. - GTIN: copy it from the product's packaging or the supplier; if the product has none, leave the attribute out and set
identifier_existstono.
How we detect
- For each product (the first 5,000) we read
availability,condition,price,sale_price,link,image_linkandgtin, with spaces and capitals folded: “In Stock” isin_stock. - A price is judged as the specification writes it: digits with a full stop, one space, an ISO 4217 code. Eastern Arabic digits, a comma, no code, or a code that is not an ISO currency are each a problem of their own. A sale price is compared with the price when both are in the same currency.
- A link is a problem when it is not an absolute address with
httporhttps, or has a space. - A GTIN is a problem with Eastern Arabic digits, a length other than 8, 12, 13 or 14, or a check digit that fails GS1's modulo-10 rule.
- Problems are grouped by kind and value: one finding with how many products have it and the first.
We do not check that a link opens or that an availability matches the store's stock: nothing but the feed file is requested.