Google ads rest api cannot create a campaign "MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT"

44 views
Skip to first unread message

Omar Ouafi

unread,
Apr 27, 2022, 5:24:26 PM4/27/22
to Google Ads API and AdWords API Forum


We are trying to create campaigns using the google adwords api and
getting this error MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT
Calling: this endpoint : https://googleads.googleapis.com/v10/customers/customerID/campaigns:mutate

Note: The error only appears on mutation requests for listing campaigns it works fine

The payload :

{
"operations": [
      {
        "create": {
          "status": "PAUSED",
          "advertisingChannelType": "SEARCH",
          "advertisingChannelSubType": "SEARCH_EXPRESS",
          "paymentMode": "CONVERSIONS",
          "name": "TestCampaign",
          "campaignBudget": "customers/${customerID}/campaignBudgets/${budgetId}",
        "biddingStrategyType": "COMMISSION",
        }
      }
    ]
}

The error :


[
                {
                    "errorCode": {
                        "operationAccessDeniedError": "MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT"
                    },
                    "message": "A mutate action is not allowed on this resource, from this client.",
                    "trigger": {
                        "stringValue": ""
                    },
                    "location": {
                        "fieldPathElements": [
                            {
                                "fieldName": "operations",
                                "index": 0
                            },
                            {
                                "fieldName": "create"
                            },
                            {
                                "fieldName": "advertising_channel_sub_type"
                            }
                        ]
                    }
                },
                {
                    "errorCode": {
                        "operationAccessDeniedError": "OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE"
                    },
                    "message": "This operation is not permitted on this campaign type",
                    "trigger": {
                        "stringValue": "SEARCH(SEARCH_EXPRESS)"
                    },
                    "location": {
                        "fieldPathElements": [
                            {
                                "fieldName": "operations",
                                "index": 0
                            },
                            {
                                "fieldName": "create"
                            },
                            {
                                "fieldName": "payment_mode"
                            }
                        ]
                    }
                }
            ],

Google Ads API Forum Advisor

unread,
Apr 28, 2022, 11:45:12 PM4/28/22
to omaro...@gmail.com, adwor...@googlegroups.com

Hi Omar,

Thank you for reaching out to us.

Upon checking on your provided details, I can see that there are fields that are not supported or compatible for the campaign types you are trying to create.

Please note that Pay per conversion is only supported by campaigns with AdvertisingChannelType.DISPLAY (excluding AdvertisingChannelSubType.DISPLAY_GMAIL), BiddingStrategyType.TARGET_CPA, and BudgetType.FIXED_CPA. The customer must also be eligible for this mode. See Customer.eligibility_failure_reasons for details.

You may check this documentation for more details in conversions of PaymentMode.

Best regards,

Google Logo
Heidi
Google Ads API Team
 


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