Geolocation for campaign problem

106 views
Skip to first unread message

Aleksander Dębski

unread,
Dec 18, 2013, 5:38:52 AM12/18/13
to adwor...@googlegroups.com
Hello, I`m trying to get my campaign targeting location, yet only thing I can get using GetCampaignTargetingCriteriaExample is Criteria ID like here: 
https://developers.Google.com/ad-exchange/rtb/geotargeting 
 
My goal is to get targeted location and put it on a map, as it is in Google clients account. My question is - how can I get from API geolocation - actual coordinates - or maybe can I use Criteria ID to use in Google maps?

Anash P. Oommen (AdWords API Team)

unread,
Dec 19, 2013, 9:22:01 AM12/19/13
to adwor...@googlegroups.com
Hi Aleksander,

All the supported API locations are available from https://developers.google.com/adwords/api/docs/appendix/geotargeting. This data is also available from https://developers.google.com/adwords/api/docs/reference/v201309/LocationCriterionService. However, we do not provide a way to get the enclosing geo points for the target. We provide https://developers.google.com/adwords/api/docs/reference/v201309/GeoLocationService, but that can only give you a geo point for an address, not the enclosing points for a country or a state. You could ask on the Google Maps forum to see if someone has a way to do this.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

Aleksander Dębski

unread,
Jan 3, 2014, 11:42:39 AM1/3/14
to adwor...@googlegroups.com
Hi Anash,

This still remains a problem for me, since I cannot use criteria ID to target a point. I can use geopoint from CampaignCriterionService as I am trying to perform, yet I always get 
 CampaignCriterion Object with empy geoPoint, no matter If I add one manualy in MCC  panel to campaign or if I do it using API. 
                (
                    [campaignId] => 161936352
                    [isNegative] => 
                    [criterion] => Proximity Object
                        (
                            [geoPoint] => 
                            [radiusDistanceUnits] => 
                            [radiusInUnits] => 0
                            [address] => 
                            [id] => 76230912792
                            [type] => PROXIMITY
                            [CriterionType] => Proximity
                            [_parameterMap:Criterion:private] => Array
                                (
                                    [Criterion.Type] => CriterionType
                                )

Could you know how is that possible? 

Best Regards
Alex

Justin Coon

unread,
Feb 26, 2015, 12:01:39 PM2/26/15
to adwor...@googlegroups.com
Hello,

Has there been any updates on this? We are looking to integrate adwords API geo targeting and Google maps.


Thanks
Justin

Josh Radcliff (AdWords API Team)

unread,
Feb 26, 2015, 5:49:43 PM2/26/15
to adwor...@googlegroups.com
Hi Justin,

Could you provide some more details on what exactly you are trying to achieve? The previous posts cover a couple of different topics.

In case it's helpful, the GeoLocationService that Anash mentioned will give you the latitudeInMicroDegrees and longitudeInMicroDegrees of a GeoLocation, but let me know if you're looking for something else.

Thanks,
Josh, AdWords API Team

Josh Radcliff (AdWords API Team)

unread,
Feb 26, 2015, 5:51:26 PM2/26/15
to adwor...@googlegroups.com
I just saw that you posted more details on your other post. Let's continue the discussion there to avoid duplication.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages