Sub topic 15
Reading diagnostics and fixing disapprovals
This chapter assumes you can read a product feed, know the core attributes (id, title, price, availability, link, image_link), and have run the validation script from the previous chapter. It covers how merchant account diagnostics report problems, how to triage them, and how to fix the common causes of disapproval.
What diagnostics tell you
A merchant account checks every product twice. It checks the data you submitted, and it compares that data with what its crawler finds on your landing page. Each check can produce an issue. The account lists issues at the account level, the feed level, and the product level.
Every issue has three properties you need to read:
- Severity. A critical issue (shown as an error) means the product is disapproved and is not eligible to appear. A warning or demotion means the product can still appear but may rank lower or lose features. A notice is advice only.
- Scope. The issue applies to one product, a group of products, a whole feed, or the whole account.
- Source. The issue came from the feed, from the crawl of the page, from a policy review, or from account settings.
Exact labels and menu names vary between merchant platforms and change over time. Treat the names in this chapter as typical. Check your platform's current documentation for the exact wording.
A triage workflow
Fixing issues one by one in the order they appear wastes time. Work from the widest scope to the narrowest, because one root cause often produces thousands of product-level issues.
- Account issues first. A missing return policy, a website that is not verified, or a policy violation can block every product at once.
- Feed issues second. If the file cannot be fetched or parsed, no product-level fix matters.
- Largest groups third. Sort product issues by number of affected items. Fixing the top group often removes most of the problem.
- Single products last. These are usually bad data on one row.
Common issues and their causes
The table maps frequent diagnostics to their usual cause and fix.
| Typical message | Usual cause | Fix |
|---|---|---|
| Missing required attribute | The field is absent or empty in the feed | Add it, then check with your validation script |
| Invalid price format | Price lacks a currency, uses a comma, or has the wrong decimals | Use the form `89.00 USD` |
| Price mismatch | Feed price differs from the price on the landing page | Make the page and feed read the same source |
| Availability mismatch | Feed says `in_stock`, the page says sold out (or the reverse) | Update both together and shorten the refresh interval |
| Invalid GTIN | Wrong length or failed check digit | Correct the number, or leave the field out if you have no real GTIN |
| Image too small or not accessible | The URL returns an error, redirects to a login, or is blocked by robots rules | Serve a public image at a stable URL |
| Landing page not working | The link returns 404, a redirect loop, or a timeout | Fix the page or the link |
| Duplicate id | Two items share one `id` | Make every `id` unique and stable |
| Missing shipping or return information | Account settings or attributes are not set | Configure them in the account or feed |
Mismatch issues
Price and availability mismatches are the most common reason that a healthy-looking feed gets disapproved. The crawler fetches your page and compares the visible or marked-up values with your feed. These are the usual root causes:
- The feed is generated nightly, but prices change during the day.
- The page shows a price for a default variant, while the feed row describes another variant.
- The page shows a price with tax, while the feed omits it, or the reverse. Which one is correct depends on the market.
- A sale price ended on the page but is still in the feed.
- JSON-LD on the page has a different price from the visible price, because a template caches the structured data separately.
The first fix is structural. Generate the feed, the visible price, and the JSON-LD from one database field. Fixing individual rows only treats the symptom.
Identifier issues
Identifier problems usually come in two kinds. A malformed GTIN fails the check-digit test, which your script already catches. A well-formed but wrong GTIN passes the test but belongs to another product, and the platform may flag it as a mismatch against its product database. Do not invent a GTIN to make an issue disappear. If a product has none, such as a custom or handmade item, submit the brand and MPN if you have them, and mark the identifier as absent in the way your platform specifies.
Policy disapprovals
Some disapprovals are not about data format. They concern the content or the business: restricted products, misleading claims, or a missing contact page. A policy issue normally needs a change on the website or in the account, followed by a review request. Resubmitting the feed does not clear it. Read the policy text that the issue links to before you change anything.
Reproducing an issue before you fix it
Before editing, confirm that you see what the platform sees. For a mismatch, compare three sources for one product:
- The feed row.
- The landing page as a plain HTTP request, which is what a crawler fetches.
- The JSON-LD embedded in that page.
The script below fetches a landing page and prints the Product and Offer values from its JSON-LD, so you can set them beside the feed row. It uses only the Python standard library.
import json
import re
import sys
import urllib.request
JSONLD = re.compile(
r'<script[^>]*type="application/ld\+json"[^>]*>(.*?)</script>',
re.DOTALL | re.IGNORECASE,
)
def find_products(node):
if isinstance(node, list):
for entry in node:
yield from find_products(entry)
elif isinstance(node, dict):
if node.get("@type") == "Product":
yield node
for entry in node.get("@graph", []):
yield from find_products(entry)
def main(url):
request = urllib.request.Request(url, headers={"User-Agent": "feed-check/1.0"})
with urllib.request.urlopen(request, timeout=15) as response:
html = response.read().decode("utf-8", errors="replace")
found = 0
for block in JSONLD.findall(html):
try:
data = json.loads(block)
except json.JSONDecodeError:
print("invalid JSON-LD block")
continue
for product in find_products(data):
found += 1
offers = product.get("offers", {})
if isinstance(offers, list):
offers = offers[0] if offers else {}
print("name: " + str(product.get("name")))
print("sku: " + str(product.get("sku")))
print("price: " + str(offers.get("price")) + " " + str(offers.get("priceCurrency")))
print("availability: " + str(offers.get("availability")))
if not found:
print("no Product JSON-LD found")
return 1
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1]))Run it as python check_page.py https://www.example.com/p/trail-runner-jacket?color=blue&size=m (quote the URL in a shell). If the values differ from the feed row, you have found the mismatch. If the page prices are added by JavaScript after load, a plain request will show different values from the browser. The crawler may also not run your scripts, so put the price in the served HTML.
Fixing and resubmitting
After a fix, the issue does not clear immediately. The platform has to re-fetch the feed and re-crawl the pages, which can take hours to days. Plan for these steps:
- Fix the source of the data, not only the output file.
- Run the validation script on the new feed.
- Trigger a feed fetch or upload, depending on your submission method.
- For policy or page-level issues, request a review if the platform offers one.
- Wait for the next processing cycle, then check the counts again.
Record each change, the date, and the number of affected products before and after. This log feeds the measurement work in the next chapter and shows you which fixes worked.
Failure modes to watch for
- Fixing symptoms. You edit rows in the output file, and the next generation run overwrites them. Always fix the source.
- Unstable ids. If
idvalues change between runs, the platform treats products as new, and history and approvals reset. - Masking errors. Removing a failing product from the feed makes the error disappear, but also removes the product. Check whether the issue count fell because of fixes or because of deletions.
- Stale diagnostics. The report reflects the last processing run. A fix made an hour ago may not show yet.
- Overlooking demotions. Products with only warnings are still live, so teams skip them. These can reduce how well the products compete, so review them after the errors are cleared.
Exercise
Your account shows 4,000 products disapproved for "price mismatch". Spot checks show the feed price is correct, and the visible page price matches it, but the JSON-LD on those pages shows an older price. What is the most likely cause, and what is the right fix?
Show answer
The page template renders or caches the JSON-LD separately from the visible price, so the structured data is stale. The crawler reads the marked-up price and sees a difference from the feed. The right fix is structural: make the template output the JSON-LD price from the same database field as the visible price and the feed, and clear any cache that stores the old markup. Then rerun the page check script on a sample, resubmit, and watch the issue count after the next crawl.
Exercise
A product's GTIN issue disappears after you delete the gtin field from its feed row, but the product is still disapproved for a different reason. What should you do with the GTIN, and why is it risky to invent one to clear the original issue?
Show answer
If the product has a real GTIN, correct it using the manufacturer's value and confirm the check digit with the validation script. If it has none, leave the field out and give brand and MPN where available. An invented GTIN may pass the check-digit test but belong to a different product, which causes mismatch issues and can affect policy standing.