I have a campaign targeting all languages and am trying to remove one 
(French). I've basically copied the code from some example on the code site 
(pasted below).

I am always getting INVALID_ID error. Are there new ids? What should I use 
to target languages?

           var language = new Language {id = 1002};
            var criterion = new CampaignCriterion.CampaignCriterion
                                {criterion = language, campaignId = 
campaign.id, campaignIdSpecified = true};
            var operation1 = new CampaignCriterionOperation();
            operation1.@operator = CampaignCriterion.Operator.REMOVE;
            operation1.operand = criterion;
            var operationArray = new CampaignCriterionOperation[] 
{operation1};
            cservice.mutate(operationArray);

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