Hello joanfihu,

In fact you don't need to do this step in order to target all countries and 
territories. Having no location targeted effectively means the campaign can 
serve everywhere.

Answering your question, no, there is no way to do this faster. The 
production environment is much faster than the sandbox though. Please also 
note the sandbox is now deprecated, see this post for more details:

  
http://googleadsdeveloper.blogspot.ru/2012/11/introducing-test-accounts.html


-Danial, AdWords API Team.



On Tuesday, November 20, 2012 1:26:02 AM UTC+4, joanfihu wrote:
>
> Hi,
> I am working with the service *CampaignCriterionService *and I am trying 
> to create a campaign that reaches all countries and territories. In order 
> to do that I get al the criteriaId of the countries(208 id). Then: 
>
> foreach ($allCountries as $country) {
>  $countryLocation = new Location();
>  $countryLocation->id = $country->criteriaId;
>  $campaignCriteria[] = new CampaignCriterion($campaignId, null, 
> $countryLocation);
> }
> $operations = array();
>   foreach ($campaignCriteria as $campaignCriterion) {
>     $operations[] = new CampaignCriterionOperation($campaignCriterion, 
> 'ADD');
> }
> // Make the mutate request.
>   $result = $campaignCriterionService->mutate($operations);
>
> My problem is that I takes more than 25 seconds to perform all the 
> operations (208). Is there any hack/way to make it faster? PD: I work with 
> the adwords sandbox.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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



Reply via email to