Groups
Groups
Sign in
Groups
Groups
(Deprecated) Google Ads API and AdWords API Forum
Conversations
Labels
About
Send feedback
Help
Ошибка получения authorization code при получении refresh token
1,763 views
Skip to first unread message
sneus...@treto.ru
unread,
Feb 28, 2015, 3:10:35 AM
2/28/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adwor...@googlegroups.com
Добрый день!
Следую инстукции
https://developers.google.com/accounts/docs/OAuth2WebServer?hl=ru#offline
, которой уже пользовался успешно, но в это раз не могу получить на первом этапе authorization code.
Посылаю запрос вида:
https://accounts.google.com/o/oauth2/auth?scope=https://www.googleapis.com/auth/adwords&state=security_token%3D138r5719ru3e1%26url%3Dhttps://oa2cb.example.com/myHome&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=1052988888274-9em4nh3d157j61q84fpqjugc21t8c7de.apps.googleusercontent.com&access_type=offline
В ответ получаю:
401.
That’s an error.,
no support email
Request Details
:
from_login=1
scope=
https://www.googleapis.com/auth/adwords
response_type=code
redirect_uri=urn:ietf:wg:oauth:2.0:oob
access_type=offline
state=security_token=138r5719ru3e1&url=
https://oa2cb.example.com/myHome
as=-573af5153d055104
pli=1
client_id=
1052964437274-9em4nh3d157j61q84fpqjugc21t8c7de.apps.googleusercontent.com
authuser=1
hl=ru
Помогите пожалуйста в решении данной проблемы! Спасибо!
sneus...@treto.ru
unread,
Feb 28, 2015, 3:17:17 AM
2/28/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adwor...@googlegroups.com
UPD: Делаю это под аккаунтом
1ctr...@gmail.com
суббота, 28 февраля 2015 г., 10:10:35 UTC+2 пользователь
sneus...@treto.ru
написал:
sneus...@treto.ru
unread,
Mar 1, 2015, 1:40:32 AM
3/1/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adwor...@googlegroups.com
Попытался отправить запрос вида:
https://accounts.google.com/o/oauth2/auth?scope=email%20profile&state=security_token%3D138r5719ru3e1%26url%3Dhttps://oa2cb.example.com/myHome&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&client_id=1052954357274-9em4nh3d157j61q84fpqjugc21t8c7de.apps.googleusercontent.com&access_type=offline
т.е. изменил вот тут: scope=email%20profile
Получаю ошибку:
401.
That’s an error.
Error: invalid_client
Request Details
:
from_login=1
scope=email profile
response_type=code
redirect_uri=urn:ietf:wg:oauth:2.0:oob
access_type=offline
state=security_token=138r5719ru3e1&url=
https://oa2cb.example.com/myHome
as=4f37263b1742f251
pli=1
client_id=
1052964437274-9em4nh3d157j61q84fpqjugc21t8c7de.apps.googleusercontent.com
authuser=1
hl=ru
суббота, 28 февраля 2015 г., 10:10:35 UTC+2 пользователь
sneus...@treto.ru
написал:
Добрый день!
sneus...@treto.ru
unread,
Mar 1, 2015, 2:57:52 AM
3/1/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to adwor...@googlegroups.com
Решил проблему: нужно было указать
email в настойках проекта в
console.developers.google.com
и сгенерировать после этого новый
CLIENT ID
суббота, 28 февраля 2015 г., 10:10:35 UTC+2 пользователь
sneus...@treto.ru
написал:
Добрый день!
Reply all
Reply to author
Forward
0 new messages