我正在通过Google AMP教程,我也对这个问题进行了一些研究,没有运气。
我们正在使用Revive Ad Server在我们的网站上渲染文本和图像广告。看来Revive可能与AMP不兼容,但我不确定。有谁知道如何将REVIVE与Google AMP集成?这是Google为添加广告(DoubleClick(提供的示例代码。
<amp-ad
width="300"
height="250"
type="doubleclick"
data-slot="/35096353/amptesting/image/static">
</amp-ad>
是的,您可以在AMP页面中使用Revive Server在AMP页面上使用广告,请确保您使用的是Sandbox设置,如果您使用的是iframe标签,并且还可以通过SSL(HTTPS(提供广告。我们使用广告插入器和WordPress放大器。像魅力一样工作。
<iframe id='a9ca6757' name='a9ca6757' src='https://<YOURDMAIN>/delivery/afr.php?n=a9ca6757&zoneid=101&target=_blank&cb=764566425' frameborder='0' scrolling='no' width='300' height='250' sandbox="allow-forms allow-popups allow-scripts allow-top-navigation allow-same-origin"><a href='https://<YOURDMAIN>/delivery/ck.php?n=af3707ff&cb=764566425' target='_blank'><img src='https://<YOURDMAIN>/delivery/avw.php?zoneid=101&cb=764566425&n=af3707ff' border='0' alt='' /></a></iframe>