我要设立AMP。我也想添加广告到它。我不想违反Adsense的政策,因此,什么是最好的方式显示广告测试广告,同时建立一个AMP新闻网站?在文档里没有这方面的记录。
发布于 2016-08-27 15:10:29
在examples文件夹中,有一个在测试模式下的广告:
<h2>AdSense ad 2</h2>
<amp-ad width=300 height=250
type="adsense"
data-ad-client="ca-pub-2005682797531342"
data-ad-slot="7046626912"
data-adtest="on">
</amp-ad>https://github.com/ampproject/amphtml/blob/master/examples/adsense.amp.html#L38
AdSense /配置
https://github.com/ampproject/amphtml/blob/master/ads/google/adsense.md
当您想禁用测试模式时,我认为您应该完全删除data-adtest="on"。
https://stackoverflow.com/questions/39169441
复制相似问题