我可以在DoubleClick工作室中从html5横幅中触发泛光灯标记吗?

时间:2015-10-26 08:52:06

标签: banner-ads double-click-advertising google-floodlight

当点击退出时,客户已要求我向html5横幅广告添加Floodlight代码。通过Javascript很容易做到,但我担心它在发布时可能会被阻止。我已经问过DoubleClick,他们已经建议应该通过跟踪工具添加泛光灯。我的发布者并没有任何线索,并要求我将其添加到javascript。

如果我添加如下所示的内容,它是否可以在html5 Banner中使用?

<head>
<script type="text/javascript" id="DoubleClickFloodlightTag">
//<![CDATA[
function FLOOD1(type, cat, u1) {
        var axel = Math.random()+"";
        var a = axel * 10000000000000000;
        var flDiv=document.body.appendChild(document.createElement("div"));
        flDiv.setAttribute("id","DCLK_FLDiv1");
        flDiv.style.position="absolute";
        flDiv.style.top="0";
        flDiv.style.left="0";
        flDiv.style.width="1px";
        flDiv.style.height="1px";
        flDiv.style.display="none";
        flDiv.innerHTML='<iframe id="DCLK_FLIframe1" src="http://12345678.fls.doubleclick.net/activityi;src=12345678;type=' + type + ';cat=' + cat + ';u1=' + u1 + ';ord=' + a + '?" width="1" height="1" frameborder="0"><\/iframe>';
}
//]]>
</script>
</head>
<body>
<!-- This is an example of a "onclick" call on a anchor tag -->
 <a href="http://address_of_page_to_load_or_file_to_download" onclick="FLOOD1('testtype', 'testcat', 'testu1');" target="_blank">Click here to test the tag</a>
</body>

1 个答案:

答案 0 :(得分:0)

您应该在着陆页中触发Floodlight代码,而不是点击。