google.auth.exceptions.RefreshError: ('invalid_grant: Bad Request', {'error': 'invalid_grant', 'error_description': 'Bad Request'})

227 views Asked by At

I have generated developer_token, access_token and refresh token with googleads read permission. While using in code using google-ads-api I am getting below error.

Code:

from google.ads.googleads.client import GoogleAdsClient
googleads_client = GoogleAdsClient.load_from_storage(path="./googleads.yaml", version="v14")

Error:

  googleads_client = GoogleAdsClient.load_from_storage(path="./googleads.yaml", version="v14")

I followed this tutorial to generate developer token, access token and refresh_token.

Here is permissions in the app and during authorization screenshot enter image description here

enter image description here

0

There are 0 answers