简体   繁体   中英

Revive Ad on Google AMP

I'm going through the Google AMP tutorial and I've also done some research on this question with no luck.

We're using a Revive Ad server to render text and image ads on our site. It appears that Revive may not be compatible with AMP but I'm not completely sure. Does anyone know how to integrate Revive with Google AMP? Here is the example code that Google provides for adding an ad (DoubleClick).

<amp-ad
  width="300"
  height="250"
  type="doubleclick"
  data-slot="/35096353/amptesting/image/static">
</amp-ad>

Yes you can serve ads in AMP pages with the Revive server, make sure you ad sandbox settings to your iframe tag if that's what you use and also serve the ads over SSL (https). We use ad inserter and wordpress AMP. Works like a charm.

<iframe id='a9ca6757' name='a9ca6757' src='https://<YOURDMAIN>/delivery/afr.php?n=a9ca6757&amp;zoneid=101&amp;target=_blank&amp;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&amp;cb=764566425' target='_blank'><img src='https://<YOURDMAIN>/delivery/avw.php?zoneid=101&amp;cb=764566425&amp;n=af3707ff' border='0' alt='' /></a></iframe>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM