Get user location via Ad URL template parameter

1,991 views
Skip to first unread message

vj

unread,
May 14, 2017, 1:47:01 AM5/14/17
to AdWords API Forum
Hi,

In my google adwords ads I want to append users location city when user click on my ads from google it should append users current location in ads url.

Is this possible via adwords??

could you please help me to get users location append in url when user click on ads and it lands on my site landing page.

I am trying to use bellow ads template but I am not sure about this.

{lpurl}?par={loc_physical_ms}&city={lb.city}&ph={lb.postalCode}&d={loc_interest_ms}

I want url parameters like this http://www.example.com/url.php?location=whitefield&postalcode=560066

Thanks,
VJ

Peter Oliquino

unread,
May 15, 2017, 2:12:03 AM5/15/17
to AdWords API Forum
Hi VJ,

Yes, you may include a value track parameter ( {loc_physical_ms} ) to include the geographical location of the click made by the user or the ( {loc_interest_ms} ) parameter for the location of interest that helped trigger the ad. For the full list of value track parameters that you can use for your upgraded URLs, you may refer here. Looking at the sample URL you have provided, it also seems that you are trying to add some custom parameters into your URLs, this said, you may refer to this section of the Upgdraded URLs guide as to how.

Thanks and regards,
Peter
AdWords API Team

nealgr...@gmail.com

unread,
May 25, 2018, 6:21:49 AM5/25/18
to AdWords API and Google Ads API Forum
HI Peter,

I'm using a business data feed to pass in the geo location into adwords. Can I pass that thru a URL parameter by it's name? (Not id #?)

tnx,
Paul

Peter Oliquino (AdWords API Team)

unread,
May 28, 2018, 12:22:00 AM5/28/18
to AdWords API and Google Ads API Forum
Hi Paul,

You should be able to pass custom values in your URLs using CustomParameters and you can find out more about them through our Upgraded URLs guide. However, if this is not what you are looking for, then, for better tracking, could you create a new thread and include more context as to what you wish to achieve using the AdWords API?
Reply all
Reply to author
Forward
0 new messages