Generate refresh token with python

23 views
Skip to first unread message

Siqi Gu

unread,
May 12, 2020, 2:16:45 PM5/12/20
to AdWords API and Google Ads API Forum
Hey team,

i am following the step 3 from below guide to generate the refresh token:


but i don't see the page/url after i run  'authenticate_in_standalone_application.py'. so i'd like to check if i don't do correctly on the path of the json file:

-----
import argparse

from google_auth_oauthlib.flow import InstalledAppFlow




def main(client_secrets_path, scopes):
    flow = InstalledAppFlow.from_client_secrets_file(
        'C:\Users\Desktop\client.json', scopes=scopes)

--------

could you help to let me know if anything wrong in the def part?

thanks,
Siqi

Google Ads API Forum Advisor Prod

unread,
May 13, 2020, 10:10:57 AM5/13/20
to siq...@bloomingdales.com, adwor...@googlegroups.com
Hi Siqi,

Since this issue is from setting up the client library, I'd recommend reaching out to the client library owners here as they will be more suited to resolve your issue.

Regards,
Anthony
Google Ads API Team

ref:_00D1U1174p._5004Q1zLfIF:ref

Siqi Gu

unread,
May 17, 2020, 9:41:27 PM5/17/20
to AdWords API and Google Ads API Forum
thanks Anthony!
Reply all
Reply to author
Forward
0 new messages