0

When using json ld to markup an email, what JSON LD schema must be used to display a company icon with your email in Google Inbox/Gmail.

I've tried setting multiple props as follows, but Google does not recognise the metadata.

    <script type="application/ld+json" >
        {
            "@context": "http://schema.org",
            "@type": "EmailMessage",
            "description": "Test!",
            "image": "https://apiant.com/appResources/icons_large/shopify.png",
            "thumbnailUrl": "https://apiant.com/appResources/icons_large/shopify.png",
            "sender": {
                "@type": "Organization",
                "name": "name",
                "logo": "https://apiant.com/appResources/icons_large/shopify.png",
                "brand": {
                    "name": "name"
                }
            }
        }
    </script>

What am I doing wrong?

Relevant docs:

Learner
  • 2,459
  • 4
  • 23
  • 39
  • Which of Google’s email features do you try to get? Did you read the relevant documentation for that feature? – unor Jan 01 '17 at 18:43
  • Google's docs are here: https://developers.google.com/gmail/markup/reference/formats/json-ld. They follow the https://schema.org/EmailMessage standard which is what I have tried to implement without success. – Learner Jan 02 '17 at 08:04
  • I mean a feature that makes use of the `logo` property. If Gmail displays the logo sometimes, I’d guess they have this documented. And in that documentation, it should be noted how `logo` has to be specified. What you currently have is perfectly fine as far as Schema.org is concerned, but Google typically has more restrictive rules. – unor Jan 02 '17 at 08:41
  • I think that is the heart of the issue. Google's documentation from the link above does not appear to specifically mention my use case. However, I've seen many examples of emails within my Google inbox account that includes emails with company icons so there must be a solution, whether it is JSON LD based or not. Hoping to use this question to answer that. – Learner Jan 03 '17 at 02:56

0 Answers0