我似乎无法让clickTAG在Google Swiffy中运行。这是我的代码:
<script>
var stage = new swiffy.Stage(document.getElementById('swiffycontainer'),
swiffyobject, { });
stage.start();
stage.setFlashVars("clickTag=http://google.com");
答案 0 :(得分:0)
我实际想出来了! “stage.start();”行必须在“stage.setFlashVars(”clickTag = http://google.com“);”
之后出现正确的代码如下所示:
<script>
var stage = new swiffy.Stage(document.getElementById('swiffycontainer'),
swiffyobject, {});
stage.setFlashVars("clickTAG=http://www.google.com");
stage.start();
</script>
答案 1 :(得分:0)
是的,就像VaIM所说的那样。
如果您有更多疑问,请查看:
https://support.google.com/dfp_premium/answer/6263155?hl=en
<div id="swiffycontainer_%ecid!" style="width: %%WIDTH%%px; height: %%HEIGHT%%px"></div>
<script>
var stage = new swiffy.Stage(document.getElementById('swiffycontainer_%ecid!'),
swiffyobject, {});
stage.setFlashVars("clickTAG=%%CLICK_URL_ESC%%%%DEST_URL%%");
stage.start();
</script>
</body>