Got Developer token Prohibited Error

1,235 views
Skip to first unread message

Aman Borkar

unread,
May 18, 2021, 10:05:06 AM5/18/21
to AdWords API and Google Ads API Forum
--header "Content-Type: application/json" \
--header "developer-token: DEVELOPER_TOKEN" \
--header "Authorization: Bearer ACCESS_TOKEN"

I tried to get user details for TEST account ID - 815-430-6829 using the developer token of production manager account (different base email-Id as mentioned in step up page)980-013-4950  so I should successfully get the output as json file with user details instead I get a error message about Developer Token Prohibited Error and I am not able to under stand why I am getting it please anyone from google officials help ASAP as I need to solve this error which are basic requirement in automation of application.

Response error I received as json file : 
{
  "error": {
    "status": "PERMISSION_DENIED", 
    "message": "The caller does not have permission", 
    "code": 403, 
    "details": [
      {
        "errors": [
          {
            "errorCode": {
              "authorizationError": "DEVELOPER_TOKEN_PROHIBITED"
            }, 
            "message": "Developer token is not allowed with project '407408718192'."
          }
        ], 
        "requestId": "cmjVn_ABtqyYJWIwznV5Zw"
      }
    ]
  }
}

Google Ads API Forum Advisor Prod

unread,
May 18, 2021, 12:03:47 PM5/18/21
to amanbo...@gmail.com, adwor...@googlegroups.com

Hi Aman,

Thank you for reaching out. The DEVELOPER_TOKEN_PROHIBITED error indicates that you have used another Developer Token to make API calls with these OAuth2 credentials from this Project ID. The solution is to create a new Google Cloud Project ID and generate new OAuth2 credentials under the new Project. Then you could make API calls with the new OAuth2 credentials and the Developer Token. 

Thanks and regards,
Xiaoming, Google Ads API Team
 


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HBlVa:ref

Google Ads API Forum Advisor Prod

unread,
May 26, 2021, 2:31:01 AM5/26/21
to amanbo...@gmail.com, adwor...@googlegroups.com
Hi Aman,

Our team is still unable to receive the file as it was not attached properly. That said, could you use the Reply privately to author option of this forum instead and attach here the said screenshot?

If this option is not available to you, you may send the details directly to our googleadsa...@google.com alias. 

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


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