Google Ads API: returning ACTION_NOT_PERMITTED while fetching reports

129 views
Skip to first unread message

Shipra

unread,
Feb 25, 2022, 5:57:23 AM2/25/22
to Google Ads API and AdWords API Forum
Hi,

We are recently facing an issue where when we try to fetch data using new ads API for a particular account we are getting action permitted error, even for simple queries like fetching data from campaign view.
But if we try fetching the same data from AdWords API we are able to get data.

Error detail from ads API:
"Failure": {
    "errors": [
      {
        "errorCode": {
          "authorizationError": "ACTION_NOT_PERMITTED"
        },
        "message": "The user does not have permission to perform this action on the resource or call a method."
      }

One strange observation is for customer reports we are able to fetch data if we don't include segments, but as soon as we include segments in the fields we start getting the same error. (Note: this observation is only for customer report)
Could you help us in resolving this issue?

We have tried both v9 and v10 but the error is same from both.

Google Ads API Forum Advisor

unread,
Feb 28, 2022, 4:26:24 AM2/28/22
to shi...@optmyzr.com, adwor...@googlegroups.com

Hi Shipra,

Thank you for reaching out to us.

The ACTION_NOT_PERMITTED error signifies that The user does not have permission to perform this action (e.g., ADD, UPDATE, REMOVE) on the resource or call a method. For our team to better check on this, could you provide the complete request and response logs with request ID, email address used to create the API access and your refresh token? You can provide it via Reply privately to author option. If this option is not available, then send it instead on this email address googleadsa...@google.com.

As an aside, please note that the AdWords API is deprecated and will be sunset on April 27, 2022. We strongly recommend that you migrate to the Google Ads API as soon as possible.

Regards,

Google Logo
Princess Pamela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Wz476:ref

Shipra

unread,
Feb 28, 2022, 5:47:54 AM2/28/22
to Google Ads API and AdWords API Forum
Hey! I have shared the required info with the author.
Thanks!
Reply all
Reply to author
Forward
0 new messages