google-search - 自 Google 更新 : one of offers or review or aggregateRating should be provided 以来,结构化数据(优惠)无效

标签 google-search schema.org json-ld

我有以下结构化数据:

{
  "@context": "https://schema.org/",
  "@type": "Offer",
  "priceCurrency": "EUR",
  "price": "12890",
  "availability": "https://schema.org/InStock",
  "priceValidUntil": "2019-12-13",
  "itemOffered": {
    "@type": "Car",
    "brand": {
      "@type": "Brand",
      "name": "Renault"
    },
    "manufacturer": {
      "@type": "Corporation",
      "sameAs": "https://www.wikidata.org/wiki/Q6686",
      "name": "Renault"
    },
    "name": "Renault Captur Life",
    "model": "Captur Life",
    "image": "https://www.xxxx.fr/uploads/models/renault-captur.png",
    "description": "Renault Captur Life neuve - Essence - 90cv - 5 portes : 12 890€ ",
    "fuelType": "Essence",
    "vehicleTransmission": "Manuelle",
    "vehicleConfiguration": "0.9 tce 90 bvm5",
    "numberOfDoors": "5",
    "vehicleEngine": {
      "@type": "EngineSpecification",
      "enginePower": {
        "@type": "QuantitativeValue",
        "value": "90",
        "unitCode": "N12"
      }
    },
    "itemCondition": "https://schema.org/NewCondition"
  }
}

根据Google Structured Data Testing Tool ,有问题(这是最近更新的,我的结构化数据以前是有效的):

One of offers or review or aggregateRating should be provided.

根据Rich Snippets Testing Tool ,有效。

那么这是怎么回事?为什么我必须添加优惠评论aggregateRating

最佳答案

为了扩展托尼的答案,Offer 应该是 Car (Product) 的扩展。 Product 可以嵌套在 Offer ( see this recent question ) 中,但这看起来不像您想要的。

将您的 JSON-LD 修改为此将使事情有效(就 Googles Structured Data Testing Tool 而言):

{
  "@context": "https://schema.org/",
  "@type": "Car",
  "fuelType": "Essence",
  "model": "Captur Life",
  "name": "Renault Captur Life",
  "description": "Renault Captur Life neuve - Essence - 90cv - 5 portes : 12 890€ ",
  "vehicleEngine": {
      "@type": "EngineSpecification",
      "enginePower": {
          "@type": "QuantitativeValue",
          "value": "90",
          "unitCode": "N12"
      }
   },
   "manufacturer": {
       "@type": "Corporation",
       "sameAs": "https://www.wikidata.org/wiki/Q6686",
       "name": "Renault"
   },
   "image": "https://www.xxxx.fr/uploads/models/renault-captur.png",
   "vehicleTransmission": "Manuelle",
   "vehicleConfiguration": "0.9 tce 90 bvm5",
   "numberOfDoors": "5",
   "brand": {
       "@type": "Brand",
       "name": "Renault"
   },
   "offers": [{
       "@type": "Offer",
       "price": "12890",
       "priceCurrency": "EUR",
       "availability": "https://schema.org/InStock",
       "priceValidUntil": "2019-12-13"
    }],
    "itemCondition": "https://schema.org/NewCondition"
  }
}

在此场景中,我们将 Offer 嵌套在 Car 中,以便 Car 描述有关车辆和嵌套 Offer< 的所有信息 描述了如何购买。

我注意到,在撰写本文时,Rich Snippets Testing Tool仍处于测试阶段,所以我对其结果持保留态度。您可能会争辩说,因为它是一个新工具,它可能更符合 Google 对 Rich Snippets 所做的事情。但就您的情况而言,我相信结构化数据测试工具的期望是有意义的。

关于google-search - 自 Google 更新 : one of offers or review or aggregateRating should be provided 以来,结构化数据(优惠)无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58838734/

相关文章:

android - 在 URL 上设置语言 Google 自定义搜索

Gmail 架构 - 不显示在收件箱中

schema.org - 如何将面包屑添加到 Schema.org 中的产品?

arrays - JSON-LD 构建单个对象数组

xml - 谷歌搜索结果页面中的搜索输入

google-chrome - 谷歌使用什么算法让Chrome浏览器的地址栏成为许多网站的默认搜索栏?

seo - 带有评级星的Google搜索(schema.org)

schema.org - 当作者是发布者时,修复 “The attribute publisher.itemtype has an invalid value”

html - JSON-LD 和元标记

php - 我可以通过编程方式自动确定 IP 位置来覆盖 Google SERP 吗?