GOOGLE Adswords: Developer token is not allowed with project

3,056 views
Skip to first unread message

Sitemap SEO

unread,
Jul 14, 2022, 4:31:43 PM7/14/22
to Google Ads API and AdWords API Forum
I am not able to access my google adswords api. 

I am getting error 

GoogleAdsFailure {

  errors: [

    GoogleAdsError {

      error_code: [ErrorCode],

      message: "Developer token is not allowed with project '-------------'."

    }

  ],

  request_id: 'id76HFweQXz4xNtcq7-ynA'

}

Google Ads API Forum Advisor

unread,
Jul 14, 2022, 7:18:14 PM7/14/22
to con...@sitemap.io, adwor...@googlegroups.com
Hi,

Thank you for reaching out to our API support team.

The error you encountered could be connected to the DEVELOPER_TOKEN_PROHIBITED error. As per this guide, it states that :
  • Warning: 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.
However, in order for our team to be sure that this is indeed the issue, could you also share the rest or the complete request and response logs, and request-id, generated when this error occurred?

If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation.

You may then send the requested information via the Reply privately to author option. If this option is not available, you may send the details directly to our googleadsa...@google.com alias instead.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cW96H:ref
Message has been deleted

Google Ads API Forum Advisor

unread,
Jul 20, 2022, 2:38:26 AM7/20/22
to con...@sitemap.io, adwor...@googlegroups.com

Hi,

Thank you for getting back to us. Informing you that I had to delete your recent post as it contained your credentials.

Moving forward to your concern, could you confirm if you already checked the guide provided by my colleague Peter which is reiterated below? Also, can you confirm if you've previously used another developer token with your Google API Console Project?



"The error you encountered could be connected to the DEVELOPER_TOKEN_PROHIBITED error. As per this guide, it states that :

  • Warning: 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."

Furthermore, have you enabled detailed logging by following the instructions provided by my colleague? If you're using one of our client libraries and you're having issues finding the right guide for it, just let me know the language you're using so I can provide you with the correct link.

Regards,
Google Logo
Carmela
Google Ads API Team
 


ref:_00D1U1174p._5004Q2cW96H:ref

Sitemap SEO

unread,
Jul 20, 2022, 1:23:00 PM7/20/22
to Google Ads API and AdWords API Forum
We assigned the "test" token to our cloud project. Do we need to regenerate an entirely new API Console project because we used the "test" token credentials with our current one?

Google Ads API Forum Advisor

unread,
Jul 20, 2022, 2:10:40 PM7/20/22
to con...@sitemap.io, adwor...@googlegroups.com
Hello,

Google Cloud projects can only be associated with one developer token. Once a developer token is used in a request, the Cloud project used to generate the refresh token in the request will be permanently tied to that same developer token. If you wish to use a separate production developer token, please create a new Google Cloud project, and generate a new refresh token from that project. 

Regards,

Google Logo
Matt
Google Ads API Team
 


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