Error while trying to generate a refresh token

108 views
Skip to first unread message

Harshad GoogleAds

unread,
Sep 3, 2020, 2:20:40 PM9/3/20
to AdWords API and Google Ads API Forum
I am following the process mentioned here
https://developers.google.com/google-ads/api/docs/client-libs/python/oauth-installed

but getting following error in step 3.3 in above process

MacBook-Air-57:authentication harshadkhanapure$ python authenticate_in_standalone_application.pyĀ  --/client_secrets_path=/Users/harshadkhanapure/to/secrets.json

Traceback (most recent call last):

Ā  File "authenticate_in_standalone_application.py", line 26, in <module>

Ā  Ā  from google_auth_oauthlib.flow import InstalledAppFlow

ImportError: No module named google_auth_oauthlib.flow


Does anyone know what could be the issue


Google Ads API Forum Advisor Prod

unread,
Sep 3, 2020, 4:56:18 PM9/3/20
to harshad...@gmail.com, adwor...@googlegroups.com

Hi Harshad,

Thank you for reaching out. Please give it a try to use this in the command line:

Ā pip install --user google-auth-oauthlib

Let us know if you have any further concerns.

Thanks and regards,
Xiaoming, Google Ads API Team





Google Logo
Xiaoming
Google Ads API Team
Ā 


ref:_00D1U1174p._5004Q23x3Pk:ref

Harshad GoogleAds

unread,
Sep 5, 2020, 5:01:09 AM9/5/20
to AdWords API and Google Ads API Forum
I tried in a virtual environment, and I was able to generate the token.

Thanks for help

Hallo šŸ‘‹šŸ¼ Blue Agency

unread,
Apr 12, 2022, 4:34:43 AM4/12/22
to Google Ads API and AdWords API Forum
Hi there, I'm having the same issue but not sure how to fix it. Any suggestions? Thanks!

Op zaterdag 5 september 2020 om 11:01:09 UTC+2 schreef harshad...@gmail.com:

Google Ads API Forum Advisor

unread,
Apr 13, 2022, 9:55:38 AM4/13/22
to ha...@theblueagency.nl, adwor...@googlegroups.com
Hi there,

You may reach out to the issue tracker for assistance with client library specific issues. With that being said, you can try installing again in our recommended way and making sure you are using the correct virtual environment when running.

Regards,

Google Logo
Aryeh
Google Ads API Team
Ā 


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