Hi Claudio,

The error means that AdWords couldn't find criterion id 20525 in campaign id 
57171644 
(i.e. the campaign is not targeting L'Aquila, and you are trying to remove 
a targeting that doesn't exist). How do you populate $staccate?

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Tuesday, 13 March 2012 22:38:03 UTC+5:30, Claudio Pomo wrote:
>
> I'm trying to update my campaign targetCriteri with this code:
>
> foreach ($id_camp as $id){
>
> //$campaignId = (float) '57171644';
> $campaignId = (float) $id;
>
> foreach ($staccate as $provi){
> $provincia = new Location();
> $provincia->id = (float) $provi['code'];
> $campaignCriteria[] = new CampaignCriterion($campaignId, $provincia);
> }
>
> // Create operations.
>   $operations = array();
> foreach ($campaignCriteria as $campaignCriterion) {
>     $operations  [] = new CampaignCriterionOperation($campaignCriterion, 
> 'REMOVE');
>    } 
> }
>
> but this code returned me: EntityNotFound.INVALID_ID @ 
> operations[0].operand.criterion; trigger:'20525', EntityNotFound.INVALID_ID 
> @ operations[3].operand.criterion; trigger:'20546', 
> EntityNotFound.INVALID_ID @ operations[5].operand.criterion; 
> trigger:'20553', EntityNotFound.INVALID_ID @ 
> operations[6].operand.criterion; trigger:'20560',.............
>
> Anybody help me?
>

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

Reply via email to