Skip to content

Commit 05160ae

Browse files
committed
Add deprecation warning for python 3.9
Change-Id: I2d54e944950deddf8d0946b2b9738bb58e7e955e
1 parent 12e8ea2 commit 05160ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

google/ads/googleads/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,11 @@
2020
import google.ads.googleads.util
2121

2222
VERSION = "27.0.0"
23+
24+
# Checks if the current runtime is Python 3.9.
25+
if sys.version_info.major == 3 and sys.version_info.minor <= 9:
26+
warnings.warn(
27+
"Support for Python versions less than 3.9 is deprecated in the "
28+
"google-ads package. Please upgrade to Python 3.10 or higher.",
29+
category=DeprecationWarning,
30+
)

0 commit comments

Comments
 (0)