Re: Adding latitudes & longitudes programmatically

2018-11-01 Thread cosbgn
This worked. Thank you Sreelakshmi! On Tuesday, October 30, 2018 at 7:38:06 PM UTC+2, Sreelakshmi Sasidharan (AdWords API Team) wrote: > > Hello, > > To add a latitude and longitude to proximity criterion, you would need to > set the latitude and longitude in micro degrees. Also, the >

Re: Adding latitudes & longitudes programmatically

2018-10-30 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello, To add a latitude and longitude to proximity criterion, you would need to set the latitude and longitude in micro degrees. Also, the radiusDistanceUnits and radiusInUnits should be set in the proximity object. Could you please give the below code snippet a try and let me know if that

Adding latitudes & longitudes programmatically

2018-10-30 Thread cosbgn
I'm trying to add some lat/lon with python, my code looks like this: lx = [{"loc":0, "lat":0}] operations = [] for loc in lx: criterion = { "xsi_type":"Proximity", "geoPoint":{ "latitude_in_micro_degrees":float(loc['lat']),