Unable to target an audience with a a campaign

36 views
Skip to first unread message

juo...@sixads.net

unread,
Mar 19, 2019, 3:17:19 PM3/19/19
to AdWords API and Google Ads API Forum
When creating a campaign, I am getting 
app_1               | googleads.errors.GoogleAdsServerFault: [OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE @ operations[1].operand.criterion; trigger:'DISPLAY']


error. I am trying to add counttry, audience and language criterions to a campaign. Everything works until I add audience criteria. Here is some of the code:

operations.append({
'operator': 'ADD',
'operand': {
'campaignId': campaign_id,
'criterion': {
    'xsi_type': 'CriterionUserList',
'userListId': audience.audience_id
}
}
})
campaign_criterion_service.mutate(operations) 


How can I solve this, or get some more info about the problem?

googleadsapi...@google.com

unread,
Mar 19, 2019, 10:51:14 PM3/19/19
to adwor...@googlegroups.com
Hi Juozas,

The OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE error that you encountered means that the criteria is not possible to add to your campaign with specific type. However, to better investigate this, could you provide the complete SOAP request and response logs when you encountered this error? Please reply via Reply privately to author.

Thanks and regards,
Luis
Google Ads API Team


--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/228f5866-bb2b-4b69-bcac-fe84c5f8b4ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages