CampaignEstimateRequest and Proximity

119 views
Skip to first unread message

Sylwester Mazur

unread,
Jul 14, 2014, 12:20:36 PM7/14/14
to adwor...@googlegroups.com

Im playing with Google Adwords keywords estimation as I need it for my application. Code used is:EstimateKeywordTraffic Everything is fine, but despite of Locations, I need to pass Proximity as I'm using radius of the location. Tried to find any solution on the internet, have seen some similar question on googles forum from 2010, where they said it was impossible then. Anyone have any clue if its possible now? I guess it is looking on this page: TrafficEstimatorService (v201402) where we can see that keyword Proximity appears few times in the error response list.

Thank you so much and have a nice day.

Josh Radcliff (AdWords API Team)

unread,
Jul 15, 2014, 2:06:38 PM7/15/14
to adwor...@googlegroups.com
Hi,

The service does not support Proximity directly, but you could set up a Campaign with Proximity criteria and then specify that campaign's ID in your CampaignEstimateRequest's campaignId, and AdWords will use the targeting options in the campaign to produce estimates.

Cheers,
Josh, AdWords API Team

Torsten Hoppe

unread,
May 18, 2016, 9:12:06 AM5/18/16
to AdWords API Forum
Hi Josh,

I use the perl client and tried to add an proximity criteria, but I get always an error: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 'xns:Proximity' to a type definition for element 'criteria'.
What's my fault?


$campaign_estimate_request =
                Google::Ads::AdWords::v201603::CampaignEstimateRequest->new({
                adGroupEstimateRequests => [$ad_group_estimate_request],
                criteria => [
                        Google::Ads::AdWords::v201603::Language->new({ id => '1001' }), # de
                        Google::Ads::AdWords::v201603::Proximity->new({ address => Google::Ads::AdWords::v201603::Address->new({ cityName => 'Berlin', countryCode => 'de' }), radiusInUnits => 50, radiusDistanceUnits => 'KILOMETERS' }),#
                ]
        });

Josh Radcliff (AdWords API Team)

unread,
May 18, 2016, 11:06:48 AM5/18/16
to AdWords API Forum
Hi,

Please see my previous reply. The TrafficEstimatorService does not support specifying Proximity directly, but you can set up Proximity criteria in your campaign and then specify that campaign's ID when making your TrafficEstimatorService request. The only criteria types supported by TrafficEstimatorService are Location and Language (see the third paragraph under CampaignEstimateRequest.criteria).

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