microdataschema.orgrich-snippetsgoogle-rich-snippets

schema.org - having video object nested inside product


I am trying to add the schema.org meta tags to my product pages - having offers and ratings etc.

The code below works fine and I'm able to test it google rich snippet tool.

<div itemscope itemtype="http://schema.org/Product">
    <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
       <meta itemprop="ratingValue" content="5">
       <meta itemprop="reviewCount" content="20">
    </div>

    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
       <span itemprop="price">Rs.100</span>
    </div>
</div>

Now I have a video of this product on this page and based on the page layout - it is positioned above the price. So when I insert the videoobject as shown below - the google rich snippet tool throws an error saying

Error: Page contains property "video" which is not part of the schema

This is the shorter version of the full code which gives the error.

   <div itemscope itemtype="http://schema.org/Product">
    <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
       <meta itemprop="ratingValue" content="5">
       <meta itemprop="reviewCount" content="20">
    </div>

    <div itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
       <meta itemprop="name" content="Hello World"/>
       <meta itemprop="duration" content="T1M33S" />
       <meta itemprop="thumbnailUrl" content="v2.jpg" />
       <meta itemprop="contentURL" content="www.viddler.com/player/xyz"/>
       <meta itemprop="embedURL" content="http://viddler.com/flash/publisher.swf?key=xyz"/>  
       <meta itemprop="description" content="Hello world"/>
    </div>

    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
       <span itemprop="price">Rs.100</span>
    </div>
</div>

Now if I remove the video object and put it outside the product tag - its valid. But the way my page is structured - the video will appear within the product tag.

I can close the product tag - start the video tag - close the video tag and then open another new product tag - but then it will show as 2 different products.

Any idea how I should go about this.

Thanks


Solution

  • http://www.schema.org/Product doesn’t define the property video.