Hello,
The following code is use to work with the adwords_client:
########################
import googleads
client_id = ' '
client_secret = ' '
refresh_token = ' '
company = ' '
client_customer_id = ' '
# or with:
oauth2_client = oauth2.GoogleRefreshTokenClient(client_id, client_secret, refresh_token)
adwords_client = adwords.AdWordsClient(None, oauth2_client, company, client_customer_id=client_customer_id)
report_downloader = adwords_client.GetReportDownloader(version='v201710')
########################
The googleads's oauth2_client is doing a token refresh as necessary and the first request is the refresh that has the response code of invalid_grant.
What can be the reasons for the 'invalid_grant' error response ?
client_id, client_secret and refresh_token should be the correct ones, as give by client_secret_***.apps.googleusercontent.com.json
Thanks,
Kashirin Alex