Can't update TargetCpmMicros on adGroups:mutate

50 views
Skip to first unread message

Cantare John

unread,
Jul 25, 2022, 5:03:25 AM7/25/22
to Google Ads API and AdWords API Forum
This is the payload i send to googleAdsApi
{
    "operations": [
                               {
                                 "updateMask": "targetCpmMicros",
                                 "update": {
                                 "resourceName": "customers/xxxxxx/adGroups/yyyyy",
                                 "targetCpmMicros": 3500000
                               }
                     }
               ]
}

This is the error message
{
"errorCode": {
"operationAccessDeniedError": "MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT"
},
"message": "A mutate action is not allowed on this resource, from this client.",
"trigger": {
"stringValue": "VIDEO"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
}

]
}
}


Google Ads API Forum Advisor

unread,
Jul 25, 2022, 6:43:02 AM7/25/22
to jo...@paperclicks.net, adwor...@googlegroups.com

Hi Cantare,

Thank you for reaching out to our API support team.

To investigate the issue further for MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT, could you please provide the complete request and response logs, with the request-id? If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.You can provide it via Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead. Let me know if you have any questions.


Best,

Google Logo
Anthony Cyril
Google Ads API Team
 


ref:_00D1U1174p._5004Q2d122y:ref
Message has been deleted

Cantare John

unread,
Jul 25, 2022, 9:08:00 AM7/25/22
to Google Ads API and AdWords API Forum
REQUEST
curl --location --request POST 'https://googleads.googleapis.com/v11/customers/xxxxxx/adGroups:mutate' \
--header 'Content-Type: application/json' \
--header 'developer-token: xxxxxxxxx' \
--header 'login-customer-id: xxxxxxxxxx \
--header 'Authorization: Bearer xxxxxx' \
--data-raw '{

  "operations": [
    {
      "updateMask": "targetCpmMicros",
      "update": {
        "resourceName": "customers/xxxxxx/adGroups/xxxxxx",
        "targetCpmMicros": 3500000
      }
    }
  ]
}'

RESPONSE
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"errors": [
{
"errorCode": {
"operationAccessDeniedError": "MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT"
},
"message": "A mutate action is not allowed on this resource, from this client.",
"trigger": {
"stringValue": "VIDEO"
},
"location": {
"fieldPathElements": [
{
"fieldName": "operations",
"index": 0
}
]
}
}
],
"requestId": "Z9ZRNoco7Ysu8DumJoDkdA"
}
]
}
}

Google Ads API Forum Advisor

unread,
Jul 25, 2022, 10:10:25 AM7/25/22
to jo...@paperclicks.net, adwor...@googlegroups.com
Hi Cantare,

Thank you for the reply.

Upon checking, it seems that you are modifying a video entity related ad group, but as per this guide says, Video Campaigns (including other video related entities) are not supported in the API.

Please note that we have already created a feature request previously, for support of management of these entities via the API. For now you can also follow the blog for updates and announcements.

Best regards,
Google Logo
Heidi
Google Ads API Team
 


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