From 72e757b8878d37396fff6bb564a0ae86bcbe06f0 Mon Sep 17 00:00:00 2001 From: danielpdwalker Date: Mon, 29 Nov 2021 16:34:32 +0000 Subject: [PATCH] Removed settings causing auth issues --- meltano.yml | 2 -- tap_googleads/client.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/meltano.yml b/meltano.yml index 0d514b1..903427b 100644 --- a/meltano.yml +++ b/meltano.yml @@ -39,12 +39,10 @@ plugins: required: false - name: oauth_credentials.authorization_url kind: hidden - value: https://oauth2.googleapis.com/token label: Optional - OAuth Authorization URL for use with a proxy refresh server required: false - name: oauth_credentials.scope kind: hidden - value: https://www.googleapis.com/auth/adwords label: Optional - OAuth Scope for use with a proxy refresh server required: false - name: oauth_credentials.access_token diff --git a/tap_googleads/client.py b/tap_googleads/client.py index c140f2f..7a6eab8 100644 --- a/tap_googleads/client.py +++ b/tap_googleads/client.py @@ -47,7 +47,7 @@ def authenticator(self) -> OAuthAuthenticator: auth_url = auth_url + f"&client_secret={self.config.get('client_secret')}" auth_url = auth_url + "&grant_type=refresh_token" - oauth_credentials = self.config.get("oauth_credentials.refresh_proxy_url", {}) + oauth_credentials = self.config.get("oauth_credentials", {}) if not oauth_credentials: return GoogleAdsAuthenticator(stream=self, auth_endpoint=auth_url)