Google Merchant Center Missing or Invalid Data [Condition]

Google Shopping Missing Microdata for Condition

Why am I getting a message saying “Missing or invalid data [Condition]“, to relax your mind warning will not prevent you from advertising.

Why am I getting Warning: Missing or invalid data [Condition]?

This warning is caused by missing data in your product landing page (website). Every product landing page must include a structured data set, showing the condition of the product. You might say, I already have the condition value in my data feed. The warning has nothing to do with the data feed, but informing that is missing from the product landing page.


Notice :
You might notice that not all products have these warnings, that is because Google only shows the warning when the landing page is crawled. Google does not crawl every page every day, instead spreads this out in 30 days.

Identify the type of structured data you are currently using.

First, identify if you are using Microdata or JSON-LD. You can do this by going to Google’s Structured data testing tool than enter the URL of the product landing page, then run the test. When the test is completed, click from the right-hand side panel product (1 in the image below), then click on a structured data element (2 in the image below). This will highlight where the code is located on your source page (3,4 in the image below).

If the HTML elements contain itemprop than you are using Microdata

Structured Data Testing Tool Identify Microdata

If the HTML element sits inside a script tag and the type contains ld+json, than you are using JSON-LD

Structured Data Testing Tool Identify JSON-LD

If you do not have any coding on the page, you will need to install the full structured data for Google Shopping.

How to include the structured data?

When you have identified the structured data type, choose the right one from the tabs below.

Simply add one of the below condition codes to your product landing page, choose the one that describes the condition of your product. If you need a tutorial for a specific eCommerce platform then please scroll to the bottom of this article for links to the full structured data tutorial.

JSON-LD

Within your JSON-LD script add the following line after “@type”:”offer”,

"itemCondition": "https://schema.org/NewCondition",

You should see a completed set similar to below.

<script type="application/ld+json">
	{
		"@context": "https://schema.org",
		"@id": "https:\/\/www.example.com\/products\/all-you-need-is-love-and-a-dog-cotton-cushion",
		"@type": "Product",
		"brand": {
			"@type": "Brand",
			"name": "example"
		},
		"sku": "",
		"description": "This \"All you need is Love and a Dog\" throw cushion will make a great addition to your home decor. \nThe design is printed on one side and made from a Cotton Polyester blend, with a concealed zip for easy removal of the cushion cover. \n2 Options Available - Cushion Cover only OR Cushion Cover with Cushion Insert \nColour - Grey\n\nCotton Polyester \nSize - 45cm x 45cm\nHand wash only\n\n",
		"url": "https:\/\/www.example.com\/products\/all-you-need-is-love-and-a-dog-cotton-cushion",
		"name": "\"All you need is Love and a Dog\" Throw Cushion, Grey","image": "https://cdn.shopify.com/s/files/1/1669/3817/products/All_you_need_is_Love_and_a_Dog_grande.jpg?v=1508327869","offers": {
			"@type": "Offer",
			"priceCurrency": "AUD",
			"price": "14.95",
			"itemCondition": "https://schema.org/NewCondition",
			"availability": "http://schema.org/InStock",
			"url": "https:\/\/www.example.com\/products\/all-you-need-is-love-and-a-dog-cotton-cushion",
			"sku": null,
			"seller": {
				"@type": "Organization",
				"name": "example"
			}
}
}
	</script>

Microdata

Find the product element containing itemscope itemtype=”http://schema.org/Product” inside this element you will find a child element which has itemprop=”offers” itemscope itemtype=”http://schema.org/Offer”. Inside this element we want to include one of the below microdata for condition elements. Choose, new, used or refurbished.

New Condition

<meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/NewCondition" />

Used Condition

<meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/UsedCondition" />

Refurbished Condition

<meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/RefurbishedCondition" />

You should see a complete set something like below.

<span itemscope itemtype="http://schema.org/Product" class="microdata">
  <meta itemprop="image" content="test.png">
  <meta itemprop="name" content="Example Test">
  <meta itemprop="description" content="This is just a boring example">
  <span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    <meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/RefurbishedCondition" />
    <meta itemprop="price" content="119.99">
    <meta itemprop="priceCurrency" content="USD">
  </span>
</span>

Checking The Results

You can use Google’s Structured data testing tool, to check if you have any syntax errors. Syntax errors are issues if you have miss spelled a word. The testing tool will not warn you if you have forgotten to add microdata sets.  For example if you did not add the condition element, the tool will not tell you, that you forgot. The below image shows an example of a correct listing.


Tip :
Copy your landing page link (address bar URL) and paste it in the field for fetching the URL.
Structured Data Testing Tool URL

Google Structured Data Testing Result


Notice :
When you have warnings in your diagnostics tab, remember that it takes up to 30 days before they will disappear, this is because Google does not crawl your landing pages every day but in a span of 30 days.

Want to add the full set of micro data?

If you want to add the complete set of structured data to your website then read how to add structured data to my website.

Need help?

If you have trouble adding the code or would prefer a specialist to do this for you, please contact me below.