2014-10-31 5 views
2

электронной почты от Google Markup тестер всегда терпит неудачу с ошибкойEmail Markup Tester

"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

Проблема заключается в том, что Google настаивает на том, что вы предоставляете действительный ключ 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", 

я заметил, используя следующий не работаю (хотя это как пример Google in the documentation имеет:)

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