Developer token prohibited

115 views
Skip to first unread message

Pedro Da Silva

unread,
Jul 1, 2019, 7:07:03 AM7/1/19
to AdWords API and Google Ads API Forum
Hi, 

we have a set of service account credentials that are currently being used to access google AdWords with a given developer token. Now that we have service accounts available for Google Ads API, we wanted to use those same credentials and developer token to access this API on behalf of SDC. However, we are being barred by the following error:

```
>, errors {
  error_code {
    authorization_error: DEVELOPER_TOKEN_PROHIBITED
  }
  message: "Developer token \'<DEV TOKEN VALUE>\' is not allowed with project \'<project id>\'."
}
```

We find this weird because the service account credentials are allowed to access the scope for google adwords (which is the same for google ads) on GSuite, and that project does have google ads enabled.

Could you guys please help us understand what we are missing and how can we fix this?

Thank you for your help

Pedro

-------------------------------------------------------

Google Ads API Forum Advisor Prod

unread,
Jul 1, 2019, 5:01:39 PM7/1/19
to adwor...@googlegroups.com

Hi Pedro,

Thank you for contacting support.The DEVELOPER_TOKEN_PROHIBITED error indicates that in the past, there was at least one request to your Google Ads API using OAuth credentials from the same project ID with different developer token. Could you please create a new Google Cloud Project ID, obtain a new OAuth2 credentials from a client under the new project ID, and use those credentials in your requests with your developer token. If you are still facing issue, could you please share the MCC Id associated with developer token for me to investigate further? You could use reply privately to the author option while sharing.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001UCaNOU:ref

rahul...@decision-tree.com

unread,
Aug 16, 2021, 5:42:26 AM8/16/21
to AdWords API and Google Ads API Forum
Hi,

We are facing a similar problem with GoogleAds api. We are using the same project and developer token for both GoogleAdwords and GoogleAds API. For GoogleAdwords, it is working perfectly but with GoogleAds, it throws the DEVELOPER_TOKEN_PROHIBITED error saying that "message: "Developer token is not allowed with project " . Can you help us debug this?

Thanks
Rahul

Google Ads API Forum Advisor

unread,
Aug 16, 2021, 11:44:59 AM8/16/21
to rahul...@decision-tree.com, adwor...@googlegroups.com
Hi Rahul,

Please refer to the common error documentation for more information regarding common causes and how to prevent this error:
https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=en#developer_token_prohibited

Thanks,
Google Logo
Lakshmi Prathipati
Google Ads API Team
 


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