Hey everybody

When trying to add negative keywords to campaign i get this error:

=======
    <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="CriterionError">
                        
<fieldPath>operations[0].operand.criterion</fieldPath>
                        <trigger/>
                        
<errorString>CriterionError.CANNOT_ADD_CRITERIA_TYPE</errorString>
                        <ApiError.Type>CriterionError</ApiError.Type>
                        <reason>CANNOT_ADD_CRITERIA_TYPE</reason>
                    </errors>
=======

It used to work fine.
This is how i add it: in java,

            Keyword keyword = new Keyword();
            keyword.setText("some text");
            keyword.setMatchType(KeywordMatchType.PHRASE);

            //add the criterion as operation
            CampaignCriterionOperation operation = new 
CampaignCriterionOperation();
            CampaignCriterion campaignCriterion = new CampaignCriterion();
            campaignCriterion.setCampaignId("some campaign id");
            campaignCriterion.setCriterion(keyword);
            
            operation.setOperand(campaignCriterion);
            operation.setOperator(Operator.ADD);
           
and then using the campaignCriterionService.mutate

i dont understand why it isnt letting this operation go thru, how come 
CANNOT_ADD_CRITERIA_TYPE is the error? 
as i mentiond - this used to work for me before...

Thanks alot for any help!


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5c8d3fe4-5d89-4af1-bf2a-81d8c563c026%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to