gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 11:00:23 24 4
gpt4 key购买 nike

我有以下结构化数据:

{
"@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 ,它是有效的。

那么这里发生了什么?为什么一定要加 offersreviewaggregateRating ?

最佳答案

扩展托尼的回答,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"
}
}

在这种情况下,我们嵌套了 OfferCar以便 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com