在带有参数的HTML5广告横幅中使用ExitAPI [英] Using ExitAPI in a HTML5 ad banner with parameters

查看:141
本文介绍了在带有参数的HTML5广告横幅中使用ExitAPI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用HTML5和一个form元素为Adwords创建了一个横幅,该横幅接受少量输入,例如您喜欢的颜色,类型等。
整个横幅都是不可单击的,只有单击提交按钮,通过在按钮上添加 onclick = ExitApi.exit()来实现。

I have created a banner for Adwords, using HTML5 with a form element, which accepts few inputs, like your preffered color, type, etc. The whole banner is not clickable, only the submit button, which I achieved by adding "onclick="ExitApi.exit()"" to the button.

所有这些都可以正常工作,但是现在我的问题是,这个ExitApi有多灵活?

All of this works fine, but now my question is, how flexible is this ExitApi?

每当我单击提交按钮时,我都希望将生成的参数附加到通过AdWords设置的最终网址中。

Whenever I click the submit button, I want to append the generated parameters to the final url, which is set through AdWords.

使用adwords预览,我可以看到在重定向过程中,最后一个参数是 adurl,其中包含我的最终目标。
手动编辑此参数并仅输入参数可以帮助我实现所需的功能,但是,即使有可能,如何使用ExitApi js库进行追加?

Using the adwords preview I can see that during the redirect the last parameter is 'adurl' which contains my final destination. Editing this manually and just typing in the parameters helps me achieve what I want, but how would I be able to append using the ExitApi js library, if that's even possible?

我还尝试通过GWD通过类似'gwd.actions.gwdDoubleclick.exitOverride('gwd-ad','clickTag','http://example.com/index .php?some = var'+ params,true,true);',它没有用,而且还受到限制,因为它迫使开发人员通过横幅设置url。

I also tried using a CTA through GWD using something like 'gwd.actions.gwdDoubleclick.exitOverride('gwd-ad', 'clickTag', 'http://example.com/index.php?some=var'+params, true, true);', which hasn't worked and is also limiting as it forces the developer to set the url through the banner.

任何想法都值得赞赏!

谢谢,
Edvinas

Thanks, Edvinas

推荐答案

如果还有人对此卡住,请进行更新。

If anyone is stuck on this aswell, just an update.

我已与Google Adwords支持小组联系,这是这里的他们的响应:

I have contacted Google Adwords Support about this and here's their response:


很遗憾,AdWords环境中不支持多个退出URL。而Doubleclick可以处理它们。

Unfortunately, multiple exit URLs are not supported in the AdWords environment. Doubleclick, on the other hand, can handle them.

https://support.google.com/webdesigner/answer/4450409

GWD中有许多不错的组件可以使用不同的URL,但无法在AdWords中进行部署。

There are many nice components in GWD which could use different URLs, but they can't be deployed in AdWords.

这篇关于在带有参数的HTML5广告横幅中使用ExitAPI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆