PERMISSION_DENIED issue

152 views
Skip to first unread message

Ryan Zhang

unread,
May 19, 2022, 1:16:18 PM5/19/22
to Google Ads API and AdWords API Forum
Hi, I'm using the google_ads_python client to get basic report. However, all requests failed with "PERMISSION_DENIED":
```
Request with ID "o_4ckXPxV31snJM-GCbq8Q" failed with status "PERMISSION_DENIED" and includes the following errors:
    Error with message "The user does not have permission to perform this action on the resource or call a method.".
```
Manager(login)_account_id: 6883111497
account_id: 8368064507

Please help to take a look.

Thanks

Pablo Lemos

unread,
May 19, 2022, 2:17:42 PM5/19/22
to Google Ads API and AdWords API Forum
Same problem here.
Valid account. I can even pull all the campaigns, but cannot pull reports.
Account ID is: 3194068991


[googleAdsFailure:Google\Ads\GoogleAds\Lib\V10\GoogleAdsException:private] => Google\Ads\GoogleAds\V10\Errors\GoogleAdsFailure Object

    [status:Google\ApiCore\ApiException:private] => PERMISSION_DENIED
    [metadata:Google\ApiCore\ApiException:private] => Array
        (
            [google.ads.googleads.v10.errors.googleadsfailure-bin] => Array
                (
                    [0] =>
:
H 4The customer can't be used because it isn't enabled. zbYizkjKfqTic85dE8Z95A
                )

            [grpc-status-details-bin] => Array
                (
                    [0] => #The caller does not have permission �
Dtype.googleapis.com/google.ads.googleads.v10.errors.GoogleAdsFailure T
:
H 4The customer can't be used because it isn't enabled. zbYizkjKfqTic85dE8Z95A
                )

            [request-id] => Array
                (
                    [0] => zbYizkjKfqTic85dE8Z95A
                )

        )

    [basicMessage:Google\ApiCore\ApiException:private] => The caller does not have permission
    [message:protected] => {
    "message": "The caller does not have permission",
    "code": 7,
    "status": "PERMISSION_DENIED",
    "details": [
        {
            "@type": "google.ads.googleads.v10.errors.googleadsfailure-bin",
            "data": "<Unknown Binary Data>"
        },
        {
            "@type": "grpc-status-details-bin",
            "data": "<Unknown Binary Data>"
        },
        {
            "@type": "request-id",
            "data": "zbYizkjKfqTic85dE8Z95A"
        }
    ]
}


Google Ads API Forum Advisor

unread,
May 20, 2022, 9:37:58 AM5/20/22
to pa...@tetris.co, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

Could you provide us with the complete request and response logs with the request-id generated when you received the PERMISSION_DENIED error, so our team can better check? 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. Please reply privately author option.


Thanks,
Google Logo
Nirmita
Google Ads API Team
 


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