AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Ads
5.1K members online now
5.1K members online now
For questions related to Google Shopping and Merchant Center. Learn to optimize your Shopping ads
Guide Me
star_border
Reply

Schema errors when adding code to define "condition"

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Copied from a post on this forum, I added this code to my landing pages to address the requirement of having structured data  showing "Condition" of product.

 

<div itemscope itemtype="http://schema.org/Product">
<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/NewCondition" />
</div>
</div>

 

That resolved the issue in Shopping Diagnostics but show errors in Google Search Console (web master console)

error.png

Are these errors I should ignore, or what is the correct way of expressing "price" and "name"   

Thank You,  (the thank you buttons don't work from my computer)

 

 

 

 

 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Steve B
May 2017

Re: Schema errors when adding code to define "condition"

[ Edited ]
Top Contributor
# 2
Top Contributor

You need to add 1 line of code inside your existing microdata, having multiple product sets will not validate.

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

A full set should look like below, please do not copy paste, as you will need to edit elements to match your product data

<div itemscope itemtype="http://schema.org/Product">
    <span itemprop="brand">The Brand</span>
    <span itemprop="name">The name</span>
    <img itemprop="image" src="http://example.com/myimage.jpg">
    <span itemprop="description">My Description</span>
    <span itemprop="productID" content="upc:">1234</span>
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
        Price: <span itemprop="price">10.00</span>
        Condition: <span itemprop="itemCondition" content="new">new</span>
    </div>
<meta itemprop="availability" content="http://schema.org/InStock"/> In Stock
<meta itemprop="gtin14" content="00886227537143" />
</div>
Twitter | Linkedin | Community Profile | Shopping Feed Tips From FeedArmy
Did you find any helpful responses or answers to your query? If yes, please click on ‘Accept As Solution’

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Steve B
May 2017

Re: Schema errors when adding code to define "condition"

[ Edited ]
Top Contributor
# 2
Top Contributor

You need to add 1 line of code inside your existing microdata, having multiple product sets will not validate.

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

A full set should look like below, please do not copy paste, as you will need to edit elements to match your product data

<div itemscope itemtype="http://schema.org/Product">
    <span itemprop="brand">The Brand</span>
    <span itemprop="name">The name</span>
    <img itemprop="image" src="http://example.com/myimage.jpg">
    <span itemprop="description">My Description</span>
    <span itemprop="productID" content="upc:">1234</span>
    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
        Price: <span itemprop="price">10.00</span>
        Condition: <span itemprop="itemCondition" content="new">new</span>
    </div>
<meta itemprop="availability" content="http://schema.org/InStock"/> In Stock
<meta itemprop="gtin14" content="00886227537143" />
</div>
Twitter | Linkedin | Community Profile | Shopping Feed Tips From FeedArmy
Did you find any helpful responses or answers to your query? If yes, please click on ‘Accept As Solution’

Re: Schema errors when adding code to define "condition"

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

The feeds were set as Auto Update "no" before I started.   Your example is showing values that also appear in the tab-delimited txt file.  Is it OK to have values in the file and in the micro data?    Does Auto update need to be changed to "yes"

 

My current .txt feeds show "identifier exists" as False.   So no brand or mpr is in the feeds.   If I remove brand from Microdata will that create an error ?

 

Thank You

Schema errors when adding code to define &quot;condition&quot;

Top Contributor
# 4
Top Contributor

Yes it is ok to have both values in the data feed and on the landing page. Auto update needs to enabled if you want the price and availability to be updated at a more frequent rate.

 

You can remove brand, mpn and gtin from the microdata example. The example I gave is a full set, meaning you do not need to add every element.

 

Simply make sure to add price, availability and condition

 

hope it helps.

Twitter | Linkedin | Community Profile | Shopping Feed Tips From FeedArmy
Did you find any helpful responses or answers to your query? If yes, please click on ‘Accept As Solution’