簡體   English   中英

如何在Google搜索“application / ld + json”腳本中指定產品ID,而不會顯示“缺少產品ID(可選)”

[英]How to specify product IDs in Google Search “application/ld+json” script without getting “Missing product ID (optional)”

如何在Google搜索控制台中的“application / ld + json”腳本中減少“缺少產品ID(可選)”的警告?

在我的示例JSON-LD代碼下面

<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": "done product Name here",
  "url": "done product url here",
  "image": [
      "done image url here"
    ],
  "description": "done description here",
  "sku": "H100000001",
  "productID" : "9876543210",  // Added like this type behaviour
  "brand": {
    "@type": "Thing",
    "name": "cosmetics"
  },
  "offers": [{
        "@type" : "Offer",
        "sku": "H100000002",
        "availability" : "http://schema.org/InStock",
        "price" : "26.0",
        "priceCurrency" : "USD",
        "url" : "product url"
      },
      {
        "@type" : "Offer",
        "sku": "H100000003",
        "availability" : "http://schema.org/InStock",
        "price" : "26.0",
        "priceCurrency" : "USD",
        "url" : "product url"
      },
      {
        "@type" : "Offer",
        "sku": "H099020004",
        "availability" : "http://schema.org/InStock",
        "price" : "26.0",
        "priceCurrency" : "USD",
        "url" : "product url"
      }]
}
</script>

我在下面嘗試了不同的產品ID變量

1. "productID" : "9876543210",

2. "productID" : "isbn:9876543210",

3. "product-id" : "isbn:9876543210",

4. "product-id" : "9876543210",

但錯誤仍然存​​在。

在此輸入圖像描述

任何人都可以幫助我如何在Google Search Console上解決“缺少產品ID(可選)”的問題?

哪個行為在ld + json中設置產品ID是正確的?

來自Google的消息不是很清楚......它正在尋找的是來自https://schema.org/Product(gtin13等)的產品ID之一。 添加ProductID后我收到了同樣的錯誤,但是一旦我用gtinxxx值替換了ProductID,警告便消失了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM