Skip to content

Commit

Permalink
v0.5.9
Browse files Browse the repository at this point in the history
  • Loading branch information
denisneuf committed Oct 1, 2024
1 parent ebf1cd1 commit 716c453
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ curl \
* [Product Selector](https://python-amazon-ad-api.readthedocs.io/en/latest/api/metadata.html)
* [Validation Configurations](https://python-amazon-ad-api.readthedocs.io/en/latest/api/validation_configurations.html)
* [Tactical recommendations beta](https://python-amazon-ad-api.readthedocs.io/en/latest/api/recommendations.html)
* [Exports](https://advertising.amazon.com/API/docs/en-us/exports)


### [Amazon Attribution open beta](https://python-amazon-ad-api.readthedocs.io/en/latest/api/attribution.html)
Expand Down
3 changes: 3 additions & 0 deletions ad_api/api/sb/snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Snapshots(Client):
"""

@sp_endpoint('/v2/hsa/{}/snapshot', method='POST')
@Utils.deprecated
def post_snapshot(self, recordType, **kwargs) -> ApiResponse:
"""
Expand All @@ -16,6 +17,7 @@ def post_snapshot(self, recordType, **kwargs) -> ApiResponse:
return self._request(fill_query_params(kwargs.pop('path'), recordType), data=kwargs.pop('body'), params=kwargs)

@sp_endpoint('/v2/hsa/snapshots/{}', method='GET')
@Utils.deprecated
def get_snapshot(self, snapshotId, **kwargs) -> ApiResponse:
r"""
Gets the status of a requested snapshot.
Expand All @@ -25,6 +27,7 @@ def get_snapshot(self, snapshotId, **kwargs) -> ApiResponse:
"""
return self._request(fill_query_params(kwargs.pop('path'), snapshotId), params=kwargs)

@Utils.deprecated
def download_snapshot(self, **kwargs) -> ApiResponse:
r"""
Downloads the snapshot previously get report specified by location (this is not part of the official Amazon Advertising API, is a helper method to download the snapshot). Take in mind that a direct download of location returned in get_snapshot will return 401 - Unauthorized.
Expand Down
2 changes: 1 addition & 1 deletion ad_api/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.5.8"
__version__ = "0.5.9"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = python-amazon-ad-api
version = 0.5.8
version = 0.5.9
author = Daniel Alvaro
author_email = denisneuf@hotmail.com
description = Python wrapper for the Amazon Advertising API
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='python-amazon-ad-api',
version='0.5.8',
version='0.5.9',
install_requires=[
"requests>=2.27.1,<2.33.0",
"six~=1.16.0",
Expand Down

0 comments on commit 716c453

Please sign in to comment.