"authorizationError": "DEVELOPER_TOKEN_PROHIBITED"

396 views
Skip to first unread message

Lars Biewald

unread,
Jan 23, 2023, 9:15:25 AM1/23/23
to Google Ads API and AdWords API Forum
iam tryin per Potman to get some data like Clicks and Impressions. i had my Access Token from Google oAuth 2.0 Playground.
{
    "error": {
        "code": 403,
        "message": "The caller does not have permission",
        "status": "PERMISSION_DENIED",
        "details": [
            {
                "errors": [
                    {
                        "errorCode": {
                            "authorizationError": "DEVELOPER_TOKEN_PROHIBITED"
                        },
                        "message": "Developer token is not allowed with project '407408718192'."
                    }
                ],
                "requestId": "IFOu9sSHY0FZqw0k50DoqA"
            }
        ]
    }
}

Google Ads API Forum Advisor

unread,
Jan 23, 2023, 12:40:07 PM1/23/23
to luminabad...@gmail.com, adwor...@googlegroups.com
Hi Lars,

Thank you for raising this concern to the Google Ads API Forum.

I can see that you are encountering the DEVELOPER_TOKEN_PROHIBITED error. To provide insights, the DEVELOPER_TOKEN_PROHIBITED error is one of the AuthorizationError. Usually it occurs when the developer token is not allowed with the project sent in the request. 

As per this document, each Google API Console project can be associated with the developer token from only one manager account. Once you make a Google Ads API request, the developer token is permanently paired to the Google API Console project. If switching to a developer token under a new manager account you'll need to create a new Google API Console project for Google Ads API requests that use the new manager's token. If you do not use a new Google API Console project, you'll get a DEVELOPER_TOKEN_PROHIBITED error when making a request.

Let me know if you have further questions.

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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