How to generate the refresh token?
Sammion opened this issue · comments
yufu commented
Hi team, how to generate the refresh token with the client id and client Secret?
Vijal Patel commented
follow this guide - note the video is useless so ignore it
https://developers.google.com/adwords/api/docs/guides/first-api-call#create_test_accounts
Samuel Barbosa commented
@Sammion change this in file generate_refresh_token
flow = InstalledAppFlow.from_client_config(
client_config.Build(), scopes=scopes)
for this:
flow = google_auth_oauthlib.flow.Flow.from_client_secrets_file(
'client_secrets.json', scopes=[oauth2.GetAPIScope('adwords')])