google google 中未显示结构化数据可用性

google structured data availability not showing in google

我已经为产品配置了结构化数据。虽然每个 itemprop 在 Google 结构化数据测试工具 中没有显示错误,但在 google 中我看不到价格和可用性。 google 中的 link 相同。

我已遵循 google 文档。对于像这样编码的 Product 示例(为了简单起见,我只是用一些静态值替换了该值):

<div itemscope itemtype="http://schema.org/Product">
    <h2 itemprop="name">Product Name</h2>
    <p itemprop="description">descriptiondescriptiondescription</p>
    <link itemprop="image" content="banner.jpg" alt="altdescription">
    <meta itemprop="sku" content="skudescription">
    <meta itemprop="mpn" content="mpndescription">
    <span itemprop="Brand" itemscope itemtype="http://schema.org/Brand">
        <meta itemprop="name" content="xxx.com"/>
    </span>
    <span itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer"/>
        <meta itemprop="price" content="39"/>
        <meta itemprop="priceCurrency" content="EUR"/>
        <meta itemprop="lowPrice" content="49"/>
        <meta itemprop="highPrice" content="249"/>
        <meta itemprop="offerCount" content="20"/>
    </span>
        <span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
        <meta itemprop="ratingValue" content="4.9"/>
        <meta itemprop="ratingCount" content="37" />
        <meta itemprop="bestRating" content="5">
        <meta itemprop="worstRating" content="1">
    </span>
    <span itemprop="review" itemscope itemtype="http://schema.org/Review"/>
        <meta itemprop="author" content="xxx xxxx"/>
        <meta itemprop="name" content="xxx xxx"/>
        <meta itemprop="description" content="reviewdescription"/>
    </span>
        <span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"/>
        <meta itemprop="ratingValue" content="4.9"/>
        <meta itemprop="bestRating" content="5">
        <meta itemprop="worstRating" content="1">
    </span>
    <div class="table-responsive" itemscope itemtype="http://schema.org/Offer">                             
        <table>
            <tr>
                <td itemprop="name">product-name</td>
                <meta itemprop="priceCurrency" content="EUR" />
                <td itemprop="price"><span class="start-amount">&euro; 49.00</span></td>
                <td itemprop="availability" href="http://schema.org/InStock"><a href="#" class="get-free-quote">Order Now</a>
                </td>
            </tr>
        </table>
    </div>
</div>

我也试过ld+Json格式如下

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "Product",
    "description": "description",
    "name": "namey",
    "image": "/logo.png",
    "sku": "sku-name",
    "mpn": "mpn-name",
    "aggregateRating": {
        "@type": "AggregateRating",
        "ratingValue": "4.7",
        "reviewCount": "36"
    },
    "brand": {
        "@type": "Brand",
        "name": "xxx.com"
    },
    "offers": {
        "@type": "AggregateOffer",
        "availability": "http://schema.org/InStock",
        "price": "39",
        "priceCurrency": "EUR",
        "lowPrice": "39",
        "highPrice": "279",
        "offerCount": "11",
        "priceValidUntil": "31-07-2020",
        "url": "url-site/dummy/"
    },
    "review": [
        {
            "@type": "Review",
            "author": "xxx xxx",
            "datePublished": "2019-04-20",
            "description": "review-description",
            "name": "xxx xxxx",
            "reviewRating": {
                "@type": "Rating",
                "bestRating": "5",
                "ratingValue": "5",
                "worstRating": "0"
            }
        }
    ]
}
</script>

<script type="application/ld+json">{
   "@context":"http://schema.org",
   "@type":"Organization",
   "image":"/logo.png",
   "name": "org-name",
   "address":{
      "@type":"PostalAddress",
       "streetAddress": "address",
       "addressLocality": "city,
       "addressRegion": "state",
       "postalCode": "000000",
       "addressCountry": "usa"
   },
   "url": "url-site",
   "telephone": "+001-00 00 00 0000"
}</script>

<script type="application/ld+json">{
   "@context":"http://schema.org",
   "@type":"Organization",
   "name": "org-name",
   "url": "url-site",
   "sameAs":[
      "https://www.facebook.com/xxxt",
      "https://twitter.com/xxx"
   ]
}
</script>

<script type="application/ld+json">{
   "@context": "http://schema.org",
   "@type": "Organization",
      "url": "url-site",
      "logo": "/logo.png",
      "contactPoint": [{
   "@type": "ContactPoint",
      "telephone": "+001-00 00 00 0000",
      "contactType": "customer service"
      }
   ]
}</script>

对于您的 html 示例,您需要将优惠放在优惠范围内。目前它自己出来了。

对于 json-ld 示例,问题可能是您将可用性放在 AggregateOffer 中。 Google可能只在Offer中支持,缺少。

 <div itemscope itemtype="http://schema.org/Product">
    <h2 itemprop="name">Product Name</h2>
    <p itemprop="description">descriptiondescriptiondescription</p>
    <link itemprop="image" content="banner.jpg" alt="altdescription"/>
    <meta itemprop="sku" content="skudescription"/>
    <meta itemprop="mpn" content="mpndescription"/>
    <div itemprop="Brand" itemscope itemtype="http://schema.org/Brand">
        <meta itemprop="name" content="xxx.com"/>
    </div>
    <div  itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer">
        <meta itemprop="price" content="39"/>
        <meta itemprop="priceCurrency" content="EUR"/>
        <meta itemprop="lowPrice" content="49"/>
        <meta itemprop="highPrice" content="249"/>
        <meta itemprop="offerCount" content="20"/>
        <div itemprop="offers"class="table-responsive" itemscope itemtype="http://schema.org/Offer">                             
            <table>
                <tr>
                    <td itemprop="name">product-name</td>
                    
                    <td><meta itemprop="priceCurrency" content="EUR" /><span class="start-amount"  itemprop="price" content="49.00">&euro; 49.00</span></td>
                    <td><link itemprop="availability" href="http://schema.org/InStock"/><a href="#" class="get-free-quote">Order Now</a></td>
                </tr>
            </table>
        </div>
    </div>
    <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
        <meta itemprop="ratingValue" content="4.9"/>
        <meta itemprop="ratingCount" content="37" />
        <meta itemprop="bestRating" content="5"/>
        <meta itemprop="worstRating" content="1"/>
    </div>
    <div itemprop="review" itemscope itemtype="http://schema.org/Review">
        <meta itemprop="author" content="xxx xxxx"/>
        <meta itemprop="name" content="xxx xxx"/>
        <meta itemprop="description" content="reviewdescription"/>
        <div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">
            <meta itemprop="ratingValue" content="4.9"/>
            <meta itemprop="bestRating" content="5"/>
            <meta itemprop="worstRating" content="1"/>
        </div>
    </div>
</div>  

这是我的确切代码

<!--about-who-block-->
<div class="browse-deploy-block">
    <div class="container">
        <div class="browse-deploy-div">
            <div class="browse-deploy" itemscope itemtype="http://schema.org/Product">
                <div class="browse-deploy-head">
                    <div class="row">
                        <div class="col-md-7 col-sm-12">
                            <div class="browse-deploy-head-h2">
                                <h2 itemprop="name">Product Name</h2>
                            </div>
                        </div>
                    </div>
                    <p itemprop="description">Description Description Description Description Description Description Description</p>
                    <link itemprop="image" content="/banner.jpg" alt="banner">
                    <meta itemprop="sku" content="SKU-Name">
                    <meta itemprop="mpn" content="MPN-Name">    <span itemprop="Brand" itemscope itemtype="http://schema.org/Brand">
                            <meta itemprop="name" content="xxxx.com"/>
                            </span>
                    <span itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer" />
                    <meta itemprop="price" content="39" />
                    <meta itemprop="priceCurrency" content="EUR" />
                    <meta itemprop="lowPrice" content="49" />
                    <meta itemprop="highPrice" content="249" />
                    <meta itemprop="offerCount" content="20" />
                </div>
                <!--browse-deploy-head-->
                <div class="browse-deploy-cont">
                    <div class="table-responsive" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
                        <table>
                            <tr>
                                <th>Model</th>
                                <th>Starting At</th>
                                <th></th>
                            </tr>
                            <tr>
                                <td itemprop="name">Intel Xeon E3-1220v6</td>
                                <meta itemprop="priceCurrency" content="EUR" />
                                <td><span class="start-amount">&euro; <span itemprop="price">49.00</span></span>
                                </td>
                                <td><a href="/cart.php?a=add&pid=819" class="get-free-quote"><span itemprop="availability" itemtype="http://schema.org/InStock">Order Now</span></a>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                </span>
                <!--browse-deploy-cont-->   <span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
                            <meta itemprop="ratingValue" content="4.9"/>
                            <meta itemprop="ratingCount" content="37" />
                            <meta itemprop="bestRating" content="5">
                            <meta itemprop="worstRating" content="1">
                            </span>
                <span itemprop="review" itemscope itemtype="http://schema.org/Review" />
                <meta itemprop="author" content="Author-name" />
                <meta itemprop="name" content="Author-name" />
                <meta itemprop="description" content="Review-description Review-description Review-description Review-description" /><span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" />
                <meta itemprop="ratingValue" content="4.9" />
                <meta itemprop="bestRating" content="5">
                <meta itemprop="worstRating" content="1">
                </span>
                </span>
            </div>
            <!--browse-deploy-->
        </div>
    </div>
</div>