属性 'amp4ads' 可能不会出现在标记 'html' 中

The attribute 'amp4ads' may not appear in tag 'html'

我正在开发 AMP Ad 作为广告商。我测试了ampByExample.com提供的样本amp4ads(官方入门代码)

https://ampbyexample.com/amp-ads/introduction/hello_world/

我发现 amp4ads 不是官方验证器 VALIDATED(下面的 link)

https://validator.ampproject.org/

这是您可以在 validator

上测试的示例片段

<html ⚡4ads>

<head>

  <meta charset="utf-8">
  <title> Hello World</title>

  <script async src="https://cdn.ampproject.org/amp4ads-v0.js"></script>
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">

  <style amp4ads-boilerplate>body{visibility:hidden}</style>

  <style amp-custom>
    h1 {
      color: red;
    }
  </style>
</head>

<body>

  <h1>Hello World</h1>

</body>
</html>

它会抛出很多错误。谁能帮我解决这个问题,我找不到任何相关的东西。

谢谢

很遗憾,validator.ampproject.org 不支持 AMP 广告。如果您在 AMP Playground 中打开该页面,您会看到它是有效的:https://ampbyexample.com/playground/#url=https%3A%2F%2Fampbyexample.com%2Famp-ads%2Fintroduction%2Fhello_world%2Fsource%2F&runtime=amp4ads.