2014-10-31 50 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",