get_campaigns, testing, GoogleAds, error: "Unauthorized CREATE operation in invoking a service's mutate method"

60 views
Skip to first unread message

Дуршлаг Макаронин

unread,
Jan 21, 2021, 9:31:18 AM1/21/21
to AdWords API and Google Ads API Forum
I am trying to get a list of campaigns using an example from the documentation (https://developers.google.com/google-ads/api/docs/campaigns/create-campaigns). I get this error:

Request with ID "fFkcENuC9XxW3n4cCJduHA" failed with status "INVALID_ARGUMENT" and includes the following errors:
Error with message "Unauthorized CREATE operation in invoking a service's mutate method.".
  On field: operations

I work in a test environment. Everything seems to be set up correctly...
Selection_017.png

Google Ads API Forum Advisor Prod

unread,
Jan 22, 2021, 12:44:25 AM1/22/21
to jinov...@gmail.com, adwor...@googlegroups.com
Hi,

Since you mentioned that you wish to GET a list of campaigns, you can use this example instead. This is because the previous example that was being referred to was a call to a method which CREATEs campaigns.

Should issues persist, you may enable logging by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.

You may then provide the complete request and response logs and send it using the Reply privately to author option, so our team can further investigate.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2B2Bhn:ref

Google Ads API Forum Advisor Prod

unread,
Jan 22, 2021, 12:46:56 AM1/22/21
to jinov...@gmail.com, adwor...@googlegroups.com
Hi,

In addition to my earlier response, I would recommend that you use a client account ID as the customer ID since campaigns are created and associated to client accounts and not to MCC/manager accounts.

I hope this helps.

Дуршлаг Макаронин

unread,
Jan 22, 2021, 2:20:24 AM1/22/21
to AdWords API and Google Ads API Forum
Thanks for answers.
Yes, I was wrong in my question. Of course I was trying to CREATE the campaign, not GET it. =)

Let's start simple, I'm using the add_campaign.py example. It has a customer_id parameter. Which of my IDs should I use?
I have 3 accounts:
659-129-2780 - customer ID
821-147-4449 - customer ID (test account)
447-045-4427 - client customer ID (test test account)

Anyway, all three work with errors

Message has been deleted

Google Ads API Forum Advisor Prod

unread,
Jan 22, 2021, 3:52:14 PM1/22/21
to jinov...@gmail.com, adwor...@googlegroups.com

Hi Дуршлаг,

Thank you for reaching out. Could you please share the source code you used via the Reply privately to author option for us to further investigate?

Thanks and regards,
Xiaoming, Google Ads API Team
 

Google Logo
Xiaoming
Google Ads API Team
 


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