Hello out there, first thanks for your time.
I will add an ProximityTarget to the Campaign Location Targets. It works fine with the following Code. But when i try to leave the StreeetAdress out it crashes. (It can't find the Adress its going to be an invalid Address). Is there any Solution? I allready tried to remove the option, set it to NULL and false. Nothing works. $adresse = new Address(); > $adresse->streetAddress = 'Schiede 4'; > $adresse->cityName = 'Limburg'; > $adresse->postalCode = '65549'; > $adresse->countryCode = 'DE'; > $geoLocationService = $user->GetService('GeoLocationService', > 'v201109'); > $selector = new GeoLocationSelector(); > $selector->addresses = array($adresse); > $result = $geoLocationService->get($selector); > $geoLocation = $result[0]; > print_r($geoLocation); > $ort = new Proximity(); > $ort->radiusDistanceUnits = 'KILOMETERS'; > $ort->radiusInUnits = 20; > $ort->address = $geoLocation->address; > $ort->geoPoint = $geoLocation->geoPoint; > > $opts[] = new CampaignCriterionOperation(new CampaignCriterion($cId, > $ort),'ADD'); > Thank you so far. -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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