Google requiring certain properties for certain types when adding Schema.org markup?

吃可爱长大的小学妹 提交于 2019-12-04 04:58:17

问题


I tried to add Schema.org markup on my site, with the type Article, then adding some properties on it, when checked on Google Structured Data Testing Tool, it said required certain properties, like dataPublished, author etc.

I can add some properties to meet the requirement, but not all of them. Is this requirement real? I mean really required by the rule? Or just Google rule? I came across this page https://developers.google.com/search/docs/data-types/articles It said for non-AMP, those requirements are only optional (ignored or recommended, non of them said required for non-AMP).

This get me confused, anyone knows about this, what's your opinion? Do Google Structured Data Testing Tool already include AMP requirement?


回答1:


These are required/recommended for getting one of Google’s search features.

If you don’t want that Google search feature, or if you can’t provide all necessary properties, you can keep everything like it is and ignore the errors and warnings.

Related answers

  • Should Schema.org dateModified have some default value if not available?
  • Schema.org/Microdata markup for list of recent posts without providing “author” / “publisher”?
  • Do I have to create new visible elements to abide by Google's Microdata Schema.org requirements?
  • Omitting price property for sold products?
  • Use Schema.org for Article without image property?
  • Image missing and required - Wordpress AMP Structure doesn't add Image attribute

On Webmasters SE:

  • Schema.org BlogPosting and image required
  • Is it mandatory to have rich snippets for AMP pages?


来源:https://stackoverflow.com/questions/41414163/google-requiring-certain-properties-for-certain-types-when-adding-schema-org-mar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!