1

我正在尝试将我网站上的 DFP 标记从 DPT 转换为 iFrame,以实现网站的异步呈现。问题是我已经在我的标签上实现了富媒体,例如可扩展横幅;但是,在使用 iFrame 时,富媒体横幅效果不佳。

我遵循的教程是: https: //support.google.com/richmedia/answer/117857。它没有解决我需要的问题。也许我的链接有问题。

我阅读了很多关于这个问题的内容,发现我们需要实现一些代码来从 iFrame 限制中释放横幅(动态 iFrame 随横幅一起扩展)。我下载了 javascript 文件 (DARTIframe.html) 并将其托管在我网站的服务器上的目录 (files/dclk/DARTIframe.html) 下。以下是用于 iFrame 标签的代码:

<script type="text/javascript">
  var ord = window.ord || Math.floor(Math.random() * 1e16);
  document.write('<iframe src="http://ad.doubleclick.net/N7229/adi/mywebsite/homepage;mtfIFPath=/files/dclk/DARTIframe;sz=728x90;ord=' + ord + '?" width="728" height="90" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>');
</script>
<noscript>
  <a href="http://ad.doubleclick.net/N7229/jump/mywebsite/homepage;sz=728x90;ord=[timestamp]?">
  <img src="http://ad.doubleclick.net/N7229/ad/mywebsite/homepage;sz=728x90;ord=[timestamp]?" width="728" height="90" /></a>
</noscript>

在标签内,我使用 mtfIFPath 链接到 DARTIframe.html 文件。我不知道我这样做是否正确。我所知道的是,我所做的没有奏效。我需要一个逐步的过程来转换我的标签。

4

0 回答 0