Hi Anash!

I used, before now, adwords API v201008 and I used SET to update 
provinceTarget for all of my campaign. Now I use adwords API v201109 and I 
would get the same result. I've read the documentation and I understand 
that SET operator isn't used, so I can try to delete any location criteria 
for campaign and then set these!
Into $staccate are present all province id to remove from my  campaign.
This is my trouble, how can I help me? How can I update in v201109 location 
criteria of my campaign?

On Wednesday, March 14, 2012 10:30:01 AM UTC+1, Anash P. Oommen wrote:
>
> 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?
>>
>
On Wednesday, March 14, 2012 10:30:01 AM UTC+1, Anash P. Oommen wrote:
>
> 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 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