AMP通过电子邮件发送广告-不支持“ amp-ad”组件

时间:2019-05-22 09:19:52

标签: amp-html amp-email

我们公司具有常规文章页面和新闻页面的AMP页面版本。我们正在使用with TableA AS (SELECT 1 AS [ColumnA]) , TableB AS (SELECT 2 AS [ColumnB]) 组件在这些页面上展示广告。

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

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

我尝试在the email validator中使用a标记,但验证失败。 email playground输出中包含相同的错误,但广告已显示!

amp-ad

验证器输出2个错误:

  • <!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> -有关Custom JavaScript is not allowed.脚本的内容。
  • amp-ad

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

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

的列表