Error when adding a Negative CriterionUserList to a Smart Display Ad using the API

24 views
Skip to first unread message

Matheus Abegg

unread,
Aug 13, 2019, 11:54:18 AM8/13/19
to AdWords API and Google Ads API Forum
I'm trying to exclude a few user lists from a Smart Display campaign using the API, but I get the following error: 

AdwordsApi::V201809::CampaignCriterionService::ApiException ([OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ operations[0].operand.criterion; trigger:'DISPLAY(DISPLAY_SMART_CAMPAIGN)'])

This is what my mutation looks like:

[
  {
    xsi_type: "CampaignCriterionOperation",
    operator: "ADD",
    operand: {
      xsi_type: "NegativeCampaignCriterion",
      campaign_id: campaign_id,
      criterion: {
        xsi_type: "CriterionUserList",
        user_list_id: user_list_id
      }
    }
  }
]

I can successfully exclude existing user lists from the same campaign using the GUI. 

Any advice would be helpful.

Thanks

Google Ads API Forum Advisor Prod

unread,
Aug 13, 2019, 4:30:32 PM8/13/19
to matheu...@heyjobs.de, adwor...@googlegroups.com
Hi Matheus, 

The error indicates that the exclude operation is not supported for this campaign type through the API. The campaign targeting options that are available for Smart Display Campaigns are listed here. Could you please take a look and let us know if you have any questions?

Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UEItYL:ref
Reply all
Reply to author
Forward
0 new messages