LocationCriterionService mapping to maps

73 views
Skip to first unread message

Pradeep Datla

unread,
Nov 26, 2019, 12:26:42 AM11/26/19
to AdWords API and Google Ads API Forum
Hi,

We want to build a tool where customers can selected an area they want to target in Google Maps, and we can send that location to Campaign as location selected. The problem we are facing is that we are not able to find a relation between the location selected in map to Location to be sent while creating campaign. I have attached screenshots for better understanding. 
I see the same funcationality in Google Ads UI, but i am not able to figure out how i can make customer select a location on Google maps and use that data to be sent to campaign.

googlemaps.JPG


location.JPG


What i am trying to show in screenshots is there is no relation between the location selected in map to adwords api. Am i missing some logic here?



Thank You,
Pradeep Datla.

Google Ads API Forum Advisor Prod

unread,
Nov 26, 2019, 2:40:48 PM11/26/19
to p.d...@mopro.com, adwor...@googlegroups.com
Hi Pradeep,

Thanks for reaching out to us. Unfortunately there is no link between Place ID and Location Criteria Id that you have underlined in the code example. Place ID can only be used across Places API. The Location Criteria Id that you is the Parent ID of the location, California. For a list of supported targeted locations and their IDs, please see here. To target campaigns for a location, you can use Geo targeting or Proximity Targeting, as long as you have the latitude and longitude, address, or criteria Id, of the location you wish to target. Hope this helps.

Let me know if you have any further questions.

Regards,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UODHDu:ref
Reply all
Reply to author
Forward
0 new messages