error Unregistered scope(s) in the request:

235 views
Skip to first unread message

GT-Volk

unread,
May 24, 2018, 4:36:13 PM5/24/18
to AdWords API and Google Ads API Forum
Добрый день!
Пытаюсь начать работать с api, создал по инструкции идентификатор adwords и ключи OAuth2, пытаюсь через GetRefreshToken получить токен перейдя по ссылке
И получаю ошибку:

403. That’s an error.

Error: restricted_client

Unregistered scope(s) in the request: https://www.googleapis.com/auth/adword


Подскажите что не так я делаю?


_______________________

Good afternoon!

I'm trying to start working with api, I created the adwords identifier and OAuth2 keys by the instruction, I try to get a token through GetRefreshToken by clicking on the link

https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=***.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www. googleapis.com/auth/adwords

And I get the error:


403. That's an error.

Error: restricted_client

Unregistered scope (s) in the request: https://www.googleapis.com/auth/adword


Tell me what's wrong with what I'm doing?

Sreelakshmi Sasidharan (AdWords API Team)

unread,
May 25, 2018, 12:43:12 PM5/25/18
to AdWords API and Google Ads API Forum
Hello, 

There was an issue for a brief duration and it has been resolved now. Also, please verify that the scope in your code is : "https://www.googleapis.com/auth/adwords" . The "s" in adwords was missing in your email. If you have it right already, just retrying should work. If not, could you please make this change and try again?

If the retry is failing with the correct scope, would you be able to share your client Id? Please use the reply privately to author option while sharing the details. 

Thanks,
Sreelakshmi, AdWords API Team
Reply all
Reply to author
Forward
0 new messages