diff --git a/ad_api/base/client.py b/ad_api/base/client.py index ea0f58f..7e13022 100644 --- a/ad_api/base/client.py +++ b/ad_api/base/client.py @@ -17,6 +17,7 @@ import zipfile from urllib.parse import urlparse, quote from ad_api.base.credential_provider import CredentialProvider +import ad_api.version as vd log = logging.getLogger(__name__) role_cache = TTLCache(maxsize=int(os.environ.get('AD_API_AUTH_CACHE_SIZE', 10)), ttl=3200) @@ -51,6 +52,9 @@ def __init__( self.proxies = proxies self.verify = verify + version = vd.__version__ + self.user_agent += f'-{version}' + @property def headers(self): return { diff --git a/ad_api/version.py b/ad_api/version.py index 39af80e..0ed6caa 100644 --- a/ad_api/version.py +++ b/ad_api/version.py @@ -1 +1 @@ -__version__ = "0.4.8" \ No newline at end of file +__version__ = "0.4.9" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 8d3c2ee..541463f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = python-amazon-ad-api -version = 0.4.8 +version = 0.4.9 author = Daniel Alvaro author_email = denisneuf@hotmail.com description = Python wrapper for the Amazon Advertising API diff --git a/setup.py b/setup.py index 87e5c96..a78e42c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='python-amazon-ad-api', - version='0.4.8', + version='0.4.9', install_requires=[ "requests>=2.27.1,<2.32.0", "six~=1.16.0",