just add another location criterion.
example with the java client:
Location unitedStates = new Location();
unitedStates.setId(2840L);
Location brazil = new Location();
brazil.setId(2076L);
Language english = new Language();
english.setId(1000L);
campaignEstimateRequest.setCriteria(new Criterion[] { unitedStates, brazil,
english });
On Monday, April 23, 2012 11:48:06 AM UTC+3, paulcfm wrote:
>
> Do you perhaps know how to get a Traffic Estimate for multiple locations
> and not just 1 as in the example?
>
> On Thursday, April 5, 2012 8:58:13 PM UTC+2, Dan Madoni wrote:
>>
>> This turns out to be my error: I was confusing the Metro identifier with
>> the specific criterion ID. This is resolved, thank you.
>>
>>
>> On Thursday, April 5, 2012 10:25:48 AM UTC-5, Dan Madoni wrote:
>>
>>> The TrafficEstimatorService get() method works fine if you use a country
>>> code for a Location criteria. However, if you use a metro code, the method
>>> returns an UNEXPECTED_INTERNAL_API_ERROR.
>>>
>>> *This is easy to reproduce by using the example included with the .NET
>>> API GetTrafficEstimates example.* Just change these lines...
>>>
>>> Location countryCriterion = new Location();
>>> countryCriterion.id = 2840; // US
>>> ...to this...
>>> Location countryCriterion = new Location();
>>> countryCriterion.id = 623; // Dallas/Ft. Worth
>>> ...and run it. You'll get the error.
>>>
>>> This appears to be an AdWords bug. Please advise as to when this might
>>> be corrected OR what I might be doing incorrectly OR if there is a
>>> workaround.
>>>
>>> I appreciate your immediate attention to this issue.
>>>
>>>
>>>
>>
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en