Hi,

Our PHP system is retrieving latitude/longitude for location ID's, using 
the pre-v201509 GeoLocationService and Address class from the PHP Lib


$geoLocationService = $user->GetService('GeoLocationService', 
ADWORDS_VERSION);

$address = new Address();
$address->countryCode = 2826;   //UK Country Code
$selector = new GeoLocationSelector();
$selector->addresses = array($address);

$result = $geoLocationService->get($selector);

$geoLocation = $result[0];

if ($geoLocation->GeoLocationType != 'InvalidGeoLocation') {
        $lat = $geoLocation->geoPoint->latitudeInMicroDegrees / 
AdWordsConstants::MICRO_DEGREES_PER_DEGREE;
        $long = $geoLocation->geoPoint->longitudeInMicroDegrees / 
AdWordsConstants::MICRO_DEGREES_PER_DEGREE;
}


We're updating our code, but the GeoLocationService etc has been removed in 
v201509

What would the recommended replacement for the above call be? There doesn't 
seem to be a way to get that info without associating the request with a 
campaign?

Thanks

Paul

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4c4464a4-79dd-4408-bd67-faaa7ac36faf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to