将哈希变量添加到 adWords 中的 clickTAG
我正在为 AdWords 构建 Flash 横幅 (as3),但在他们的文档中找不到当您使用 clickTAG 时是否可以添加哈希或查询字符串变量以显示在最终目标网址中。理想情况下我想同时使用两者。例如,我的横幅有四个输入字段,我想这样构建我的目标网址:
var base:String= "http://www.example.com";
var qs:String= "?one=" + input1.text + "&two=" + input2.text;
var hs:String= "#three=" + input3.text + "&four=" + input4.text;
var targetUrl:String= base + qs + hs;
flash.net.navigateToURL(new URLRequest(targetUrl), "_blank");
Is this possible with AdWords while using clickTAG?
I'm building a Flash banner (as3) for AdWords, but I can't find in their documentation whether it is possible to add hash or querystring variables to appear in the eventual target url when u are using a clickTAG. Ideally I would like to use both. For example, my banner has four input fields and I would like to build my target url thusly:
var base:String= "http://www.example.com";
var qs:String= "?one=" + input1.text + "&two=" + input2.text;
var hs:String= "#three=" + input3.text + "&four=" + input4.text;
var targetUrl:String= base + qs + hs;
flash.net.navigateToURL(new URLRequest(targetUrl), "_blank");
Is this possible with AdWords while using clickTAG?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Clicktag 通常只是通过广告服务器/发布商发送到 swf 的 URL。它可能是您需要的 URL(在您的示例中为
base
),也可能是重定向到最终登陆页面的发布商跟踪器。在后一种情况下,简单地附加查询字符串是行不通的。可以在跟踪器上搭载 URL 或查询字符串,但具体实现方式将根据跟踪器的类型(如果有)而有所不同。
Clicktags are generally just an URL sent to the swf via the adserver/publisher. It may be the URL you need (
base
in your example), or it may be a publisher tracker that redirects to the final landing page. In the latter case, simply attaching a query string won't work.It might be possible to piggy-back a URL or a query string on the tracker, but how this is done would vary depending on the kind of tracker (if any).
遗憾的是,AdWords 不允许这样做。这将使得重定向到未经他们检查的网址成为可能。
Unfortunately AdWords doesn't allow this. It would make it possible to redirect to a url that wasn't checked by them.