Adding User Interest in a AdGroup returns CriterionError.CANNOT_ADD_CRITERIA_TYPE

62 views
Skip to first unread message

art...@dinfo.com.br

unread,
May 29, 2018, 9:20:59 AM5/29/18
to AdWords API and Google Ads API Forum
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?

Milind Sankeshware (AdWords API Team)

unread,
May 29, 2018, 3:22:48 PM5/29/18
to AdWords API and Google Ads API Forum
Hi Arthur,

The error CANNOT_ADD_CRITERIA_TYPE means that the criteria type cannot be targeted for the ad group. The CriterionUserInterest is not targetable and biddable at adGroup level. For more information please refer this guide. Let me know if you have further any further questions. 

Thanks,
Milind, AdWords API Team.

Arthur Polimeni

unread,
May 30, 2018, 9:33:25 AM5/30/18
to AdWords API and Google Ads API Forum
That's not clear for me yet. 

So where should I add a CriterionUserInterest? in Campaign level?
I didn't find in the official documentation a way to add user interests in a ad group or campaign. 

Can you guide me to it, please?
Thanks.

Milind Sankeshware (AdWords API Team)

unread,
May 30, 2018, 3:26:58 PM5/30/18
to AdWords API and Google Ads API Forum
Hi Arthur,

Please note the correction in my previous response. The CriterionUserInterest can be targeted and excluded to AdGroups but you can only exclude this criterion at a campaign level. For adding the criterion at AdGroup level, please use the same code snippet that you are using for an AdGroup in a "Display Network only" campaign and let me know if you are still facing issues. If so, could you please enable logging and share the complete SOAP logs? Or you could also share the AdGroupId so that I can check the type of the AdGroup.
Reply all
Reply to author
Forward
0 new messages