Can postal code or city/state data be gleaned from a location ID?

205 views
Skip to first unread message

Joshua Brown

unread,
Sep 13, 2018, 5:42:09 PM9/13/18
to AdWords API and Google Ads API Forum
I've been asked to help out on a friend's project. The client is running a nationwide campaign, and when a user clicks on an ad they will be sent to a landing page with a URL like this: https://URL/landing/?loc_physical_ms=1023631. The client wants me to take the location ID (in this case, 1023631), convert it to a geographical location, compare it to a provided JSON list of offices, and put the ID of the office closest to the location ID on the page.

I am new to AdWords, so I'm not sure if this can be done. I know from the LocationCriteria CSV file that 1023631 is Cleveland, but I don't see any ZIP or separate City or State information there that I could use. CSV is probably off the table anyway, as I don't have database access and converting it to JSON would yield an enormous file. If I use the API, can I get postal code or city/state information using the location ID?

Joshua Brown

unread,
Sep 13, 2018, 9:53:29 PM9/13/18
to AdWords API and Google Ads API Forum
Accidentally posted twice. Admins feel free to delete one of these.

Luis Xander Talag (AdWords API Team)

unread,
Sep 14, 2018, 3:32:30 AM9/14/18
to AdWords API and Google Ads API Forum
Hi Joshua,

AdWords API supports targeting offices/customers within a certain distance from your office through the proximity targeting (see example), yet choosing specific offices from those near your business is not yet supported. Also, the zip code is represented by the postal code in the targets table, kindly filter the table by target type then choose postal code (see geotargets for complete details).

Hope this helps. If I misunderstood your concern, kindly provide more details of your concern so I can further check.

Best regards,
Luis
AdWords API Team
Reply all
Reply to author
Forward
0 new messages