create app campaign using API beta has error MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT

91 views
Skip to first unread message

Naomi Shao

unread,
Sep 16, 2019, 6:02:58 AM9/16/19
to AdWords API and Google Ads API Forum
Hi,

I am trying to create an app campaign with the new API. I tried with both Java and Python, getting the same error message as below. The error message in Java is MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT, I don't understand what exactly I am trying to "mutate"? Basically I think the mutation is creating campaign and budget. I used the sample code of add_campaigns.py which came with the client lib as reference.

Attached is the python script, pls take a look and help! Thx!!

Request made: ClientCustomerId: 9189232388, Host: googleads.googleapis.com:443, Method: /google.ads.googleads.v2.services.CampaignService/MutateCampaigns, RequestId: mGoLwJYa1kppmiEsJYGjPg, IsFault: True, FaultMessage: A mutate action is not allowed on this campaign, from this client.

Request with ID "mGoLwJYa1kppmiEsJYGjPg" failed with status "INVALID_ARGUMENT" and includes the following errors:

Error with message "A mutate action is not allowed on this campaign, from this client.".

On field: operations

add_app_campaign.py

Google Ads API Forum Advisor Prod

unread,
Sep 16, 2019, 3:05:50 PM9/16/19
to adwor...@googlegroups.com
Hi Naomi, 

Could you please share both the request and response logs, so I can take a closer look at the error? You can share the details privately via Reply privately to author option. 

Regards,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UHGtaf:ref

Matthew Fleming

unread,
Sep 16, 2019, 6:34:34 PM9/16/19
to AdWords API and Google Ads API Forum
Had the same exact issue while following the documentation.

Here's what worked for me.

Add login_customer_id to your google-ads.yaml file. It should have the id associated with your MCC.
Then, the customer id is the id of the client test account you're trying to access.

-Matt
Reply all
Reply to author
Forward
0 new messages