Invalid URL in Google Merchant Center: fix product and image addresses

FeedAwake 4 min read

Invalid URL means an address in the submitted product data is malformed or contains characters Google can't process as written. Google's Invalid URL guide gives two places to start: check for unescaped characters and check that the URL includes the protocol and host.

Look at which field Google flagged. A product link takes the shopper to the specific offer. An image_link takes Google's image crawler to the main photo. Google has separate guides for Incorrect product page URL and Invalid image link. Google's Invalid URL guide doesn't say what happens to the offer. Its separate Invalid image link guide says that, when the image address is invalid, Google can't show the product in ads or free listings.

Read the address before testing it in a browser

A browser can make an address work after you paste it, for example by escaping a space. The value in the export stays exactly as your exporter wrote it. Check the file or outgoing API field first so you can see what Google received.

  • A path without a host. A custom feed can accidentally use the storefront's internal path for link. In an illustrative example, /products/linen-shirt needs to become an absolute address such as https://shop.example/products/linen-shirt. Check the canonical storefront domain used by the exporter.
  • A file or product name copied into a path. A filename with spaces needs URL encoding. If a generator inserts a name containing an ampersand into a path segment, encode it as data within that segment. Keep separators such as the slashes between path segments intact.
  • A URL copied from the wrong field. Check whether your Shopify or WooCommerce export picked up a media path, product handle or preview URL where it needed the public product URL. Also check images uploaded with different naming conventions from your usual catalog.

Repair one row and then rerun the export

  1. Copy the invalid value from the affected product and identify where it was assembled. Check any rules that add a domain, variant selector or tracking parameters.
  2. Use a complete HTTP or HTTPS address, and apply the format rules for the field. Google's guide also asks for forward slashes only: a path assembled from a Windows file system often carries backslashes. The product link specification requires a valid URL and a landing page on the verified domain. The image link specification covers URLs for the image file.
  3. Check XML escaping separately from URL encoding. In an illustrative XML export, ?variant=42&ref=shopping gives the parser an ampersand between query parameters. A literal ampersand inside a parameter value belongs in the URL as %26. Check the generated file as well as the parsed value.
  4. Open the corrected address. If it leads to the right destination but Google reports the page is unreachable, follow the Product page unavailable guide. For a host mismatch, see Mismatched domains.

Look for the same fault in the rest of the export

Download the affected offers from Needs attention using the issue filter and match their IDs to the source rows. Sort by the attribute and URL prefix before editing. A whole block beginning with /products/ needs a change to the link builder. One image folder with spaces needs a change to path encoding. Test a variant link with query parameters and an image with a space before resubmitting.

Start with a free Merchant Center audit if you need to tell a malformed URL from one Google couldn't crawl. Match the reported issue code and sample IDs with the addresses in the submitted file. If a URL field is missing entirely, the free feed checker reports empty link and image link fields in Google feeds.

Check your product feed for free

Find feed errors before they cost you ad spend. No account needed.

Start your 14-day free trial Free Merchant Center audit

More articles