Inventory filter - SET operator not supported

27 views
Skip to first unread message

Chaitanya Kulkarni

unread,
Feb 20, 2019, 3:52:36 AM2/20/19
to AdWords API and Google Ads API Forum
Hi Team,

I am trying to update the existing Inventory filter(Product Scope) using the APIs. But its failing with following error:
==
 "Error": "An exception occurred while saving the product scope:[CampaignCriterionError.OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE @ operations[0]; trigger:'PRODUCT']"
==

Following is my code:
===

CampaignCriterion campaignCriterion = new CampaignCriterion();

campaignCriterion.setCampaignId(campaignId);

campaignCriterion.setCriterion(ProductScopeModelObject);

CampaignCriterionOperation criterionOperation = new CampaignCriterionOperation();

criterionOperation.setOperand(campaignCriterion);

criterionOperation.setOperator(Operator.SET);

===


ADD and REMOVE operators are working perfectly fine with above code. Can you please let me know if "SET" operator is supported for "ProductScope"?


Thanks,

Chaitanya 



googleadsapi...@google.com

unread,
Feb 20, 2019, 6:00:06 AM2/20/19
to adwor...@googlegroups.com
Hi Chaitanya,

So I can further investigate this issue, could you provide to me the complete SOAP request and response logs that was generated when you encountered the error? You may reply to me via the Reply privately to author option.

Thanks and regards,
Peter
AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e44c480c-303d-42e7-818a-a8fb34691550%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages