我已经创建了一个html5横幅,并在这里进行了验证:https://h5validator.appspot.com/dcm。
它返回错误:"Missing click tag check“。
如何实现clickTag?我在google支持上找到了这段代码:
<html>
<head>
<meta name="ad.size" content="width=300,height=250">
<script type="text/javascript">
var clickTag = "http://www.google.com";
</script>
</head>
<body>
<a href="javascript:window.open(window.clickTag)">
<img src="images/dclk.png" border=0>
</a>
</body>
</html>但是,在DoubleClick中上传ZIP文件后,不是设置了横幅的目标网址吗?
我必须在HTML中设置硬编码的目标URL吗?对我来说没有任何意义..
我在过去做了很多闪光灯横幅,在那里你只引用了一个变量_root.clickTag。
有人能帮我吗?
谢谢
发布于 2016-02-22 19:29:20
为了创建doubleclick演播室横幅,您需要导入doubleclick演播室库并初始化enabler。然后设置Exit_url。省去你自己的所有麻烦创建横幅在谷歌网页设计器它很容易,并将直接上传到DC工作室
<script src="https://s0.2mdn.net/ads/studio/Enabler.js"></script>
<style>html, body {width: 100%; height: 100%}
#bg-exit {
background-color: rgba(255,255,255,0);
cursor: pointer;
height: 381px; //banner height
left: 0px;
position: absolute;
top: 19px;
width: 400px; //banner width
z-index: 1;
}</style>
<div id="bg-exit"></div> <!-- put this div inside your main container of banner -->
<script>
window.onload = function() {
if (Enabler.isInitialized()) {
enablerInitHandler();
} else {
Enabler.addEventListener(studio.events.StudioEvent.INIT, enablerInitHandler);
}
}
function enablerInitHandler() {
}
function bgExitHandler(e) {
Enabler.exit('Background Exit');
}
document.getElementById('bg-exit').addEventListener('click', bgExitHandler, false);
</script>使用此代码,您可以从DC studio动态更改exit_url。
https://stackoverflow.com/questions/35552392
复制相似问题