2014-10-31 53 views
2

谷歌的電子郵件標記測試總是失敗,出現錯誤電子郵件標記測試

「INVALID_OBJECT:orderStatus,http://schema.org/OrderStatusType

我曾嘗試與位於該網頁上的所有有樣本:

https://developers.google.com/gmail/markup/reference/order

我們是否認爲它只是一個等待他們解決問題的問題?

例如JSON:

<html> 
<body> 
<script type="application/ld+json"> 
{ 
    "@context": "http://schema.org", 
    "@type": "Order", 
    "merchant": { 
    "@type": "Organization", 
    "name": "Amazon.com" 
    }, 
    "orderNumber": "123-4567890-1234567", 
    "priceCurrency": "USD", 
    "price": "29.99", 
    "acceptedOffer": { 
    "@type": "Offer", 
    "itemOffered": { 
     "@type": "Product", 
     "name": "Google Chromecast" 
    }, 
    "price": "29.99", 
    "priceCurrency": "USD", 
    "eligibleQuantity": { 
     "@type": "QuantitativeValue", 
     "value": "1" 
    } 
    }, 
    "url": "https://www.amazon.ca/gp/css/summary/edit.html/orderID=123-4567890-1234567" 
} 
</script> 
</body> 
</html> 

回答

0

的問題是,谷歌堅持要你提供一個有效的statusOrder關鍵。在下面只會驗證:

<script type="application/ld+json"> 
     { 
      "@context": "http://schema.org", 
      "@type": "Order", 
      "merchant": { 
      "@type": "Organization", 
      "name": "Amazon.com" 
      }, 
      "orderNumber": "123-4567890-1234567", 
      "priceCurrency": "USD", 
      "price": "29.99", 
      "acceptedOffer": { 
      "@type": "Offer", 
      "itemOffered": { 
       "@type": "Product", 
       "name": "Google Chromecast" 
      }, 
      "price": "29.99", 
      "priceCurrency": "USD", 
      "eligibleQuantity": { 
       "@type": "QuantitativeValue", 
       "value": "1" 
      } 
     }, 
      "orderStatus" : "OrderDelivered", 
      "url": "https://www.amazon.ca/gp/css/summary/edit.html/orderID=123-4567890-1234567" 

     } 
     </script> 
1

我加入有同樣的問題和固定的驗證:

"orderStatus" : "OrderDelivered", 

我用下面沒有工作(即使它是怎麼谷歌例發現in the documentation有它):

"orderStatus": "http://schema.org/OrderStatus/OrderDelivered",