I'm trying to add a negative User Interest Criterion to one of my 
campaigns, but I keep getting the same error from the API:

[CriterionError.CANNOT_ADD_CRITERIA_TYPE @ operations[1].operand.criterion; 
> trigger:'USER_INTEREST', CriterionError.CANNOT_ADD_CRITERIA_TYPE @ 
> operations[2].operand.criterion; trigger:'USER_INTEREST']
>

This is the code I am using:

          $interestId = 736; //Linux & Unix
          $interest = new CriterionUserInterest();
          $interest->id = $interestId;
          $campaignCriterion = new NegativeCampaignCriterion();
          $campaignCriterion->campaignId = 1234567;
          $campaignCriterion->criterion = $interest;
          $operations[] = new 
GoogleApiAdsAdWords_CampaignCriterionOperation($campaignCriterion, 'ADD');
          $campaignCriterionService->mutate($operations);

Any ideas?

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