0

有没有办法将查询字符串附加到 googlesyndication.com 生成的安全框架 url?类似于:https ://tpc.googlesyndication.com/safeframe/1-0-36/html/container.html?foo=bar

我见过一些网站这样做。

我的代码如下所示:

<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"</script>

<script>
  window.googletag = window.googletag || {cmd: []};
  googletag.cmd.push(function() {
    googletag.defineSlot('MY_SLOT_ID', [300, 250], 'div-gpt-ad-1573813015782-0').addService(googletag.pubads());
    googletag.pubads().enableSingleRequest();
    googletag.enableServices();
  });
</script>

<div id='div-gpt-ad-1573813015782-0'>
  <script>
    googletag.cmd.push(function() { googletag.display('div-gpt-ad-1573813015782-0'); });
  </script>
</div>


4

0 回答 0