跟踪用户点击返回 Google Adwords API
我在网上绕了一圈,试图在网上找到解决方案,但我找不到解决方案,所以我想我会问一下,然后它可能对其他人也有用。
场景。
对于 PHP,我希望与 Google Adwords API 进行交流。好吧,不是什么大事。不过,我想将其与我们自己的后台系统结合起来,将销售/转化数据与 Google Adwords 中每个广告系列/广告组的展示次数/点击次数/成本结合起来。
这将涉及到我最初认为使用 Google 的动态标签 {creative} 来标记目标 URL,例如 http ://www.mydomain.com/productone/?adid={creative} 但是,这个数字在整个帐户中并不唯一,而仅在 Adgroup 下是唯一的。因此 AdgroupOne 和 AdgroupTwo 的 adid 都可以为 1,2,3,4,5 等。因此您不能使用此 id 来提取数据。
还有其他人遇到过这种情况吗?有没有办法绕过它来获得一个唯一的标识符,该标识符可以在每次访问时存储在后台,以便通过他们的 API 追溯到 Google Adwords?
真的很感谢这个帮助,因为它让我难住了。谢谢你们。
I am going around in circles a bit with this one trying to find a solution online and I cant find one so I thought I would ask then it may be useful to others as well.
The scenario.
With PHP I am looking to talk back to the Google Adwords API. OK not a biggy. However I want to tie it in with our own back office system to marry up data from sales/conversions to impressions/clicks/costs of each campaign/adgroup in Google Adwords.
This would involve tagging the destination URLs I initially thought with the dynamic tag from Google of {creative} for example http://www.mydomain.com/productone/?adid={creative} however this appears to be a number which is not unique across the account but unique only under Adgroup. So AdgroupOne and AdgroupTwo could both have an adid of 1,2,3,4,5 etc.. Therefore you cannot use this id to pull the data.
Has anyone else encountered this? Is there a way of getting around it to get a unique indentifier which can be stored in the backoffice with each visit to trace back to Google Adwords via their API?
Really appreciate the help with this one as its got me stumped. Thanks guys.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决此问题的最简单方法是在 url 中提供您自己的 id。还要在您端维护一个格式为(adgroupid、adId、your_tag_id)的地图。通过这种方式,您可以查找地图以找出点击网址时点击的广告。
需要记住的一些 ID 规则:
CampaignId:跨系统唯一。
adGroupId:跨系统唯一。
adId:在一个adGroupId内是唯一的,因此(adGroupId, adId)在整个系统中是唯一的。
keywordsId:在 adGroupId 内唯一,因此 (adGroupId,keywordId) 在整个系统中是唯一的。
干杯,
阿纳什
The easiest way to fix this would be to provide your own ids in the url. Also maintain a map at your end, of the form (adgroupid, adId, your_tag_id). This way you can lookup the map to figure out what Ad was clicked when a url is hit.
Some id rules to keep in mind:
campaignId: Unique across system.
adGroupId: Unique across system.
adId: Unique within an adGroupId, so (adGroupId, adId) is unique across the system.
keywordId: Unique within an adGroupId, so (adGroupId, keywordId) is unique across the system.
Cheers,
Anash