Use Google Ads API Token with new GCP Project

467 views
Skip to first unread message

Nikolai Wiskow

unread,
Jun 7, 2022, 8:42:52 AM6/7/22
to Google Ads API and AdWords API Forum
Hey support,

during our upgrade from the AdWords API to the Google Ads API, we ran into an issue regarding the API token.

We had to rebuild our OAuth2 Flows for various reasons, and now we always receive the following error:

DEVELOPER_TOKEN_PROHIBITED "Developer token 'XXXXX' is not allowed with project 'XXXXX'.

We already regenerated the API token manually through our Google Ads account, but that doesn't help.

As I take it, a developer token can only be used with one specific cloud project ID and a possible solution I found was to generate an entirely new Google Cloud Project. But that would be extremely inpractical.

Is there any other way to solve this error?

Thanks,
Nikolai

Google Ads API Forum Advisor

unread,
Jun 7, 2022, 10:11:05 AM6/7/22
to nikolai...@gmail.com, adwor...@googlegroups.com
Hi Nikolai,

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

Moving forward to your concern, you mentioned that you've encountered the DEVELOPER_TOKEN_PROHIBITED error. The said error 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.

That said, could you confirm if you can still create a new cloud project and credentials?

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2bd3Cc:ref

Nikolai Wiskow

unread,
Jun 9, 2022, 11:16:52 AM6/9/22
to ads...@forumsupport.google, adwor...@googlegroups.com
Thanks, that worked.
--
Nikolai Wiskow
Online-Marketing Freelancer
 +49 176 576 346 04
 nikolai...@gmail.com
 ad-ninja.de
Reply all
Reply to author
Forward
0 new messages