Skip to content

Commit

Permalink
[gaarf-py] Update typing for GoogleAdsApiClient path_to_config
Browse files Browse the repository at this point in the history
Change-Id: I81a6b30b9958e3699db4e54a27cd0ed7f87b6fcf
  • Loading branch information
AVMarkin committed May 16, 2024
1 parent 9dc53e0 commit 5f7b55b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions py/gaarf/api_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class GoogleAdsApiClient(BaseClient):
default_google_ads_yaml = str(Path.home() / 'google-ads.yaml')

def __init__(self,
path_to_config: str = default_google_ads_yaml,
path_to_config: str | os.PathLike = default_google_ads_yaml,
config_dict: dict[str, str] | None = None,
yaml_str: str | None = None,
version: str = GOOGLE_ADS_API_VERSION,
Expand All @@ -265,9 +265,10 @@ def __init__(self,
version: Ads API version.
use_proto_plus: Whether to convert Enums to names in response.
Raises:
ValueError: If GoogleAdsClient doesn't have 'use_proto_plus' flag.
ValueError:
When GoogleAdsClient cannot be instantiated due to missing
credentials.
"""
super().__init__(version)
self.client = self._init_client(
Expand Down

0 comments on commit 5f7b55b

Please sign in to comment.