0

我们公司拥有常规文章和新闻页面的 AMP 页面版本。我们正在使用该amp-ad组件在这些页面上展示广告。

我们还有多种带有广告展示位置的 HTML 通讯产品。我正在研究 AMP4EMAIL 的 POC,并且缺乏关于此货币化的文档。该amp-ad标签不在电子邮件组件列表中。是否有有效的规范选项来展示广告?可以为 AMP 电子邮件广告使用 AMP amp-img/ 或常规 HTML标签吗?a

对我们来说,遵守规则很重要,以避免 AMP 电子邮件的 Google 注册过程出现问题或其他未来问题。

我尝试在电子邮件验证器amp-ad中使用该标签,但验证失败。电子邮件游乐场输出包含相同的错误,但显示了广告!

<!doctype html>
<html ⚡4email>
<head>
  <meta charset="utf-8">
  <script async src="https://cdn.ampproject.org/v0.js"></script>
  <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
  <style amp4email-boilerplate>body{visibility:hidden}</style>
</head>
<body>
  <amp-ad data-loading-strategy="1" data-slot="/6001/sek.amp/amp_5" height="250"
          json='{"targeting":{"d":["news","sectors"],"t":["earnings","transcripts","has-audio","us","asset-management","financial","article"],"aid":"4256772","a":"sa-transcripts","cnt":["19","3","4","15","21","6","12","8","27","36","1","oil","14","fed1","etrfin","fed","taxes","fidelity_retirement","4152537","bny","ssga1","ssga2","ssga3","ssga6","191","jh1","fnk1","fnk2","port","nw1","fr1","fnk3","fnk4","loan","NYL1"],"prstock":"true","tickerbundle":["growth","value","dividend","large-cap","financials","zacks"],"pr":"amp","s":"amp"}}'
          type="doubleclick" width="300"></amp-ad>
</body>
</html>

验证器输出 2 个错误:

  • Custom JavaScript is not allowed.- 关于amp-ad头上的脚本。
  • The tag 'amp-ad' is disallowed.
4

2 回答 2

0

也许这个 AMP 电子邮件代码示例会有所帮助 - https://www.plumrocket.com/blog/2019/09/how-to-create-and-test-amp-for-email/?您可以实现类似于实时预览中显示的横幅滑块。 Amp-adAMP 电子邮件中不支持组件。这是所有受支持的 AMP 电子邮件组件的列表 - https://github.com/ampproject/amphtml/blob/master/spec/email/amp-email-components.md

于 2019-09-16T21:01:47.293 回答
0

AMP-email 与 AMP-html 不同。AMP 电子邮件中没有“amp-ad”组件,因此那里不支持它。
以下是 AMP 电子邮件中所有可用组件的列表:https ://amp.dev/documentation/components/?format=email

于 2019-07-11T20:21:13.360 回答