Unable to create OAuth credentials for the correct test account

276 views
Skip to first unread message

mg23...@gmail.com

unread,
Apr 1, 2019, 6:58:24 AM4/1/19
to AdWords API and Google Ads API Forum
I am trying to create OAuth credentials in the Google APIs Console for my test account 222-814-6617.
I went through the steps Create Credentials --> OAuth client ID.
However, the resulting client ID has a different account number appended at the beginning of the string: 21357378440-IDENTIFIER.apps.googleusercontent.com.
This account number - 21357378440 - is not on my list, it's neither manager's nor test account number.
Later on this results in getting a DEVELOPER_TOKEN_NOT_APPROVED error, once I receive OAuth refresh token for this client ID and secret.

Could you please suggest how I can create a credentials set specifically for my test account? The API console doesn't suggest any way of selecting the account number.

googleadsapi...@google.com

unread,
Apr 1, 2019, 12:56:30 PM4/1/19
to AdWords API and Google Ads API Forum
Hello Mike, 

The CID: 222-814-6617 belong to a Test manager account. You will not have the developer token for test accounts. Could you please confirm if you're creating the OAuth credentials by logging in as a user who has access to the Test manager account? The client ID, client secret are used to get the access token using this:

https://accounts.google.com/o/oauth2/auth?client_id=your-client-id&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords&redirect_uri=urn:ietf:wg:oauth:2.0:oob&access_type=offline&prompt=consent

The client ID is different from the client customer ID. The client ID is part of OAuth credentials. The client customer ID is the unique number to identify your account. The DEVELOPER_TOKEN_NOT_APPROVED error is noticed when you're using an unapproved developer token to make API calls against Production accounts. An unapproved and test access developer token can be used to make calls against a test account. In order to use this test access token to make API calls to Production accounts, you will need a Basic access which can be applied by submitting this form. The API Compliance team will get back with a response within two business days, once the form is submitted.

Let me know if you have any questions.

Regards,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages