Google Ads API "RefreshError: ('unauthorized_client: Unauthorized', {'error': 'unauthorized_client', 'error_description': 'Unauthorized'})"
I am trying to make a call to Google Ads API to access campaign data in python. I have completed the following steps:
- Created a web app and enabled Google-Ads API
- Saved JSON file that contains client id and secret information
- Generated refresh token
- Updated google-ads yaml file based on the client id, client secret, refresh token, developer token and customer id
However when I try this:
from google.ads.googleads.client import GoogleAdsClient client = GoogleAdsClient.load_from_storage("google-ads.yaml")
I get the error:
RefreshError: ('unauthorized_client')
I have rechecked for any typos or white-spaces. I have the "Standard Access" on my email id: on Google-Ads account under the Access and Security section. Any help would be really great.