Developer Token and Google Console

323 views
Skip to first unread message

Illarion Oralin

unread,
Dec 1, 2022, 1:30:58 PM12/1/22
to Google Ads API and AdWords API Forum
Hi everyone,
1. Articles on Google Ads API state that "Once a Google Cloud project is used with a developer token, it is bound to that token and can't be used by another." (source) and  "Once you make a Google Ads API request, the developer token is permanently paired to the Google API Console project. " (source)

Does it mean that if I reset my developer token (like described here) for the Ads Manager account that I used to get a developer token then I would not be able to use the new token (or any other from other accounts) with my current Google API Console project?

If not - after I reset the token do I have to use the new token for the same Console project from this exact Ads account or I can now use a different token from any other of my Ads accounts?

2. If I have access to the Google Console project (with all credentials to make Ads API calls) and a developer token from an Ads account (but don't know which one exactly) that is currently paired with this Console project - is it possible to figure out which of the Ads accounts was used to create this developer token?

Google Ads API Forum Advisor

unread,
Dec 1, 2022, 3:22:47 PM12/1/22
to adwor...@googlegroups.com
Hi Illarion,

Thank you for your questions. You may refer to my responses below :


1. Articles on Google Ads API state that "Once a Google Cloud project is used with a developer token, it is bound to that token and can't be used by another." (source) and  "Once you make a Google Ads API request, the developer token is permanently paired to the Google API Console project. " (source)

Does it mean that if I reset my developer token (like described here) for the Ads Manager account that I used to get a developer token then I would not be able to use the new token (or any other from other accounts) with my current Google API Console project?


As per this section of the developer token reset guide, it only explicitly states that the old token can no longer be used. This indicates that the new token (that belongs still to the same MCC account) can be used with your existing Google Cloud Project's credentials, and also states that "You can start using the new developer token immediately.".


2. If I have access to the Google Console project (with all credentials to make Ads API calls) and a developer token from an Ads account (but don't know which one exactly) that is currently paired with this Console project - is it possible to figure out which of the Ads accounts was used to create this developer token?

It is currently not possible via the API to directly retrieve the MCC account details where the developer token is associated to. However, via the list accessible accounts feature, you should be able to retrieve the accounts that your OAuth2 credentials has direct access to :
  • The request returns a list of all accounts that you are able to act upon directly given your current credentials.
From the results, you can then check if a MCC account is returned and login to that account (if you have access), then check its TOOLS & SETTINGS > SETUP > API Center to verify if the developer token exists in that MCC account's API Center.

Let me know if this helps.

Best regards,

Google Logo
Peter Laurence
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ghQEg:ref

Illarion Oralin

unread,
Dec 6, 2022, 1:58:25 PM12/6/22
to Google Ads API and AdWords API Forum
Hi Peter,
Thank you,  list accessible accounts didn't contain our needed MCC account with dev token but we managed to find it manually.

Now we want to check what GCP projects are paired with this MCC account (or its dev token) to inform all its users before the rotation.
Is it possible to contact your team 1:1 so we can provide the information about this MCC for you to check what GCP projects are paired to its token?

Google Ads API Forum Advisor

unread,
Dec 6, 2022, 7:24:43 PM12/6/22
to adwor...@googlegroups.com
Hi Illarion,

Thank you for your response.

So that I can raise this to the rest of our API support team and to inquire if it's possible to look up which GCP projects are associated to your developer token, could you then share the MCC / manager account ID where your developer token is associated to?

When sending this information, you may do so 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.
Reply all
Reply to author
Forward
0 new messages