Cannot ceate uac campiang with api, get OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE error

52 views
Skip to first unread message

yan Ma

unread,
Sep 24, 2019, 3:11:44 AM9/24/19
to AdWords API and Google Ads API Forum

First of all, my code for creating uac campaign works correctly before. And today when I try to create new uac campain, it failed.

Then I check the code and it get exception below

OperationAccessDenied{apiErrorType=OperationAccessDenied, errorString=OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE, fieldPath=operations[0].operand.settings, fieldPathElements=[FieldPathElement{field=operations, index=0}, FieldPathElement{field=operand}, FieldPathElement{field=settings}], reason=OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE, trigger=}

when calling campaign.mutate(operations).

And I see the UI of uac has changed. But the api document is still not changed. 

So my questions is what is the right way to create uac campaign with API?

Thanks

Google Ads API Forum Advisor Prod

unread,
Sep 24, 2019, 3:41:02 AM9/24/19
to adwor...@googlegroups.com
Hi,

To better assist you, could you confirm if you are using the AdWords API? If you are using the AdWords API, could you provide the complete SOAP request and response logs so I can further investigate? You may send your reply using the Reply privately to author option.

Additionally, the documentation for creating UACs using the AdWords API can be found here. You would also need to update your code based on the changes mentioned in this blog post

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UHHk4V:ref

Viktor

unread,
Sep 24, 2019, 8:46:52 AM9/24/19
to AdWords API and Google Ads API Forum

Hello, 

I'm seeing the exact same error on my test account, and it was working a few days ago so it's something that changed recently.

Is there anywhere documentation on how to use UniversalAppCampaignInfo and how to add the add assets (to an ad group i guess?) with the Java library?

All the documentation you linked still uses UniversalAppCampaignSetting and the examples fail with the error above...

Google Ads API Forum Advisor Prod

unread,
Sep 24, 2019, 11:21:59 PM9/24/19
to adwor...@googlegroups.com
Hi Viktor,

To better investigate the cause, could you send the generated SOAP request and response logs privately using the Reply privately to author option?

As for the documentation / examples, allow me to file a feature request for them to be updated specifically for the changes associated to the UniversalAppCampaignInfo.

Naomi Shao

unread,
Sep 26, 2019, 5:25:28 AM9/26/19
to AdWords API and Google Ads API Forum
I am getting same error - weirdly I could create app campaign with Java but not Python...

Google Ads API Forum Advisor Prod

unread,
Sep 26, 2019, 6:23:28 AM9/26/19
to adwor...@googlegroups.com

Hi Naomi,

Could you share the complete SOAP request and response logs and the code examples you used for both Java and Python so I can further investigate? You may send these details privately using the Reply privately to author option.



Thanks and regards,
Peter
Google Ads API Team



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