We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15d3efa commit ce56e31Copy full SHA for ce56e31
google/ads/googleads/client.py
@@ -203,10 +203,11 @@ def _get_api_services_by_version(cls, version):
203
version_module = import_module(f"google.ads.googleads.{version}")
204
except ImportError:
205
raise ValueError(
206
- 'Specified Google Ads API version "{}" does not '
207
- 'exist. Valid API versions are: "{}"'.format(
208
- version, '", "'.join(_VALID_API_VERSIONS)
209
- )
+ f"There was an error importing the "
+ f'"google.ads.googleads.{version}" module. Please check that '
+ f'"{version}" is a valid API version. Here are the current '
+ "API versions supported by this library: "
210
+ f"{', '.join(_VALID_API_VERSIONS)}."
211
)
212
return version_module
213
0 commit comments