DEVELOPER_TOKEN_PROHIBITED

62 views
Skip to first unread message

Nimisha Mahajan

unread,
Feb 27, 2024, 1:29:57 PM2/27/24
to Google Ads API and AdWords API Forum
Hello Team,

I am getting the below error  as DEVELOPER_TOKEN_PROHIBITED.
I also created a new project as mentioned in other group messages 
but then also I got the same error, 
Can you please help and check at earliest?
  

POST /v14/customers/<googleadacc8525>/googleAds:search HTTP/1.1 Host: googleads.googleapis.com Developer-token: <developertoken> Content-length: 208 Content-type: application/json Authorization: Bearer ya29.a0AfB_byA75Cs7IQBrhThl-HlynVdefdECFVYNk3SBhDLaXIC7FceCnA3iquyMz7hlULyxSaXj5Xwm8o5RqFjQfK6pI-j73qmsQIlcm6imgWbr2qIg9rmCmZ26MPX18ZYz8SNPM-kVHXEJaRKSgO7FernWY40APStBTDG7aCgYKAXwSARESFQHGX2MiDo3Bv0aGW_-niBwhYL7ZpA0171{"query": "SELECT segments.date, campaign.name, metrics.impressions, metrics.search_impression_share, metrics.average_cpc, metrics.ctr FROM campaign WHERE segments.date BETWEEN '2024-01-01' AND '2024-01-05'"}HTTP/1.1 403 Forbidden Content-length: 548 X-xss-protection: 0 X-content-type-options: nosniff Transfer-encoding: chunked Request-id: yek0biuXQCu91hsTMZQUow Vary: Origin, X-Origin, Referer Server: ESF -content-encoding: gzip Cache-control: private Date: Tue, 27 Feb 2024 18:13:33 GMT X-frame-options: SAMEORIGIN Alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 Content-type: application/json; charset=UTF-8{
  
"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 <someprojectid
8192>."
          }
        
],
        
"@type": "type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure",
        
"requestId": "yek0biuXQCu91hsTMZQUow"
      
}
    
]
  
}
}


Thanks
Nimisha
Reply all
Reply to author
Forward

Google Ads API Forum Advisor

unread,
Feb 27, 2024, 5:35:23 PM2/27/24
to nmah...@guardanthealth.com, adwor...@googlegroups.com
Hi,

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

I understand that you are getting the 'DEVELOPER_TOKEN_PROHIBITED' error when trying to launch the project from your Google account which is transferred from the outsourcing company. Please note that 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 you want to switch the 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 don't use a new Google API Console project, you'll get a DEVELOPER_TOKEN_PROHIBITED error when making a request.

Hope this helps. If you have any more queries related to Google Ads API, please feel free to get back to us.

 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzUpf:ref"

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages