Hi everybody!

I'm using .NET Library and I'm trying to add a user interest in a ad group, 
but I always receive the error CriterionError.CANNOT_ADD_CRITERIA_TYPE.

My code:
                CriterionUserInterest userInterestTarget = new 
CriterionUserInterest();
                userInterestTarget.userInterestId = interest.CriterionId;
                userInterestTarget.userInterestName = interest.Description;

                BiddableAdGroupCriterion interestBiddableAdGroupCriterion = 
new BiddableAdGroupCriterion();
                interestBiddableAdGroupCriterion.adGroupId = AdGroupId;
                interestBiddableAdGroupCriterion.criterion = 
userInterestTarget;

                AdGroupCriterionOperation 
interestBiddableAdGroupCriterionOperation = new AdGroupCriterionOperation();
                interestBiddableAdGroupCriterionOperation.operand = 
interestBiddableAdGroupCriterion;
                interestBiddableAdGroupCriterionOperation.@operator = 
Operator.ADD;

                _operations.Add(interestBiddableAdGroupCriterionOperation);


What am i doing wrong?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/019208f3-4aae-408c-959b-ea928ac42216%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... arthur
    • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... Arthur Polimeni
    • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to