python-amazon-ad-api 0.4.9__tar.gz → 0.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. {python-amazon-ad-api-0.4.9/python_amazon_ad_api.egg-info → python-amazon-ad-api-0.5.1}/PKG-INFO +9 -2
  2. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/README.md +1 -1
  3. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/__init__.py +2 -0
  4. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/negative_keywords_v3.py +1 -1
  5. python-amazon-ad-api-0.5.1/ad_api/api/stream.py +67 -0
  6. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/access_token_client.py +2 -3
  7. python-amazon-ad-api-0.5.1/ad_api/version.py +1 -0
  8. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1/python_amazon_ad_api.egg-info}/PKG-INFO +9 -2
  9. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/python_amazon_ad_api.egg-info/SOURCES.txt +1 -0
  10. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/python_amazon_ad_api.egg-info/requires.txt +1 -1
  11. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/setup.cfg +1 -1
  12. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/setup.py +2 -2
  13. python-amazon-ad-api-0.4.9/ad_api/version.py +0 -1
  14. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/LICENSE +0 -0
  15. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/__init__.py +0 -0
  16. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/advertising_test_account.py +0 -0
  17. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/attribution.py +0 -0
  18. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/audiences.py +0 -0
  19. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/billing.py +0 -0
  20. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/brand_metrics.py +0 -0
  21. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/creative_assets.py +0 -0
  22. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/__init__.py +0 -0
  23. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/access_token_client.py +0 -0
  24. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/client.py +0 -0
  25. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/credential_provider.py +0 -0
  26. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/reports.py +0 -0
  27. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/eligibility.py +0 -0
  28. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/history.py +0 -0
  29. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/insights.py +0 -0
  30. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/invoices.py +0 -0
  31. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/localization.py +0 -0
  32. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/manager_accounts.py +0 -0
  33. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/metadata.py +0 -0
  34. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/portfolios.py +0 -0
  35. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/profiles.py +0 -0
  36. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/recommendations.py +0 -0
  37. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/reports.py +0 -0
  38. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/__init__.py +0 -0
  39. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/ad_groups.py +0 -0
  40. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/ad_groups_v4.py +0 -0
  41. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/ads_v4.py +0 -0
  42. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/bid_recommendations.py +0 -0
  43. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/brands.py +0 -0
  44. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/campaigns.py +0 -0
  45. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/campaigns_v4.py +0 -0
  46. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/forecast.py +0 -0
  47. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/keywords.py +0 -0
  48. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/keywords_recommendations.py +0 -0
  49. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/landing_page_asins.py +0 -0
  50. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/media.py +0 -0
  51. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/moderation.py +0 -0
  52. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/negative_keywords.py +0 -0
  53. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/negative_product_targeting.py +0 -0
  54. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/product_targeting.py +0 -0
  55. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/recommendations.py +0 -0
  56. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/reports.py +0 -0
  57. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/snapshots.py +0 -0
  58. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/stores.py +0 -0
  59. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/targeting_recommendations.py +0 -0
  60. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/__init__.py +0 -0
  61. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/ad_groups.py +0 -0
  62. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/bid_recommendations.py +0 -0
  63. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/brand_safety.py +0 -0
  64. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/budget_rules.py +0 -0
  65. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/campaigns.py +0 -0
  66. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/campaigns_budget_usage.py +0 -0
  67. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/creatives.py +0 -0
  68. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/forecast.py +0 -0
  69. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/negative_product_targeting.py +0 -0
  70. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/product_ads.py +0 -0
  71. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/product_targeting.py +0 -0
  72. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/recommendations.py +0 -0
  73. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/reports.py +0 -0
  74. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/snapshots.py +0 -0
  75. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/targeting_recommendations.py +0 -0
  76. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/__init__.py +0 -0
  77. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/ad_groups.py +0 -0
  78. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/ad_groups_v3.py +0 -0
  79. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/bid_recommendations.py +0 -0
  80. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/bid_recommendations_v3.py +0 -0
  81. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/budget_initial_recommendation.py +0 -0
  82. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/budget_recommendations.py +0 -0
  83. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/budget_rules.py +0 -0
  84. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/budget_rules_recommendations.py +0 -0
  85. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaign_consolidated_recommendations.py +0 -0
  86. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaign_negative_keywords.py +0 -0
  87. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaign_negative_keywords_v3.py +0 -0
  88. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaign_negative_targets.py +0 -0
  89. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaigns.py +0 -0
  90. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaigns_budget_usage.py +0 -0
  91. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaigns_v3.py +0 -0
  92. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaings_optimization.py +0 -0
  93. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/keywords.py +0 -0
  94. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/keywords_v3.py +0 -0
  95. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/negative_keywords.py +0 -0
  96. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/negative_product_targeting.py +0 -0
  97. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/negative_product_targeting_v3.py +0 -0
  98. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_ads.py +0 -0
  99. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_ads_v3.py +0 -0
  100. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_recommendations.py +0 -0
  101. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_targeting.py +0 -0
  102. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_targeting_v3.py +0 -0
  103. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/ranked_keywords_recommendations.py +0 -0
  104. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/reports.py +0 -0
  105. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/snapshots.py +0 -0
  106. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/suggested_keywords.py +0 -0
  107. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/validation_configurations.py +0 -0
  108. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/__init__.py +0 -0
  109. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/access_token_response.py +0 -0
  110. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/credentials.py +0 -0
  111. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/exceptions.py +0 -0
  112. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/__init__.py +0 -0
  113. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/api_response.py +0 -0
  114. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/base_client.py +0 -0
  115. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/client.py +0 -0
  116. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/config.py +0 -0
  117. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/credential_provider.py +0 -0
  118. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/exceptions.py +0 -0
  119. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/helpers.py +0 -0
  120. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/marketplaces.py +0 -0
  121. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/utils.py +0 -0
  122. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/python_amazon_ad_api.egg-info/dependency_links.txt +0 -0
  123. {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/python_amazon_ad_api.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-amazon-ad-api
3
- Version: 0.4.9
3
+ Version: 0.5.1
4
4
  Summary: Python wrapper for the Amazon Advertising API
5
5
  Home-page: https://github.com/denisneuf/python-amazon-ad-api
6
6
  Author: Daniel Alvaro
@@ -12,6 +12,13 @@ Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
+ Requires-Dist: requests<2.32.0,>=2.27.1
16
+ Requires-Dist: six~=1.16.0
17
+ Requires-Dist: cachetools<5.4,>=5.0
18
+ Requires-Dist: pycryptodome<3.20,>=3.13
19
+ Requires-Dist: python-dotenv<1.1.0,>=0.19.2
20
+ Requires-Dist: pytz<2024.0,>=2021.3
21
+ Requires-Dist: confuse<2.1,>=1.7
15
22
 
16
23
  # PYTHON-AMAZON-AD-API
17
24
 
@@ -44,7 +51,7 @@ If you find this project is useful consider donating or [sponsor](https://github
44
51
 
45
52
  ### Overview
46
53
 
47
- You need obtain your own credentials with Amazon that may include an amazon developper account and access as seller or vendor. Please view the checklist of [Amazon Ads API onboarding overview](https://advertising.amazon.com/API/docs/en-us/setting-up/overview)
54
+ You need obtain your own credentials with Amazon that may include an amazon developer account and access as seller or vendor. Please view the checklist of [Amazon Ads API onboarding overview](https://advertising.amazon.com/API/docs/en-us/setting-up/overview)
48
55
 
49
56
 
50
57
  ### Code Credentials
@@ -29,7 +29,7 @@ If you find this project is useful consider donating or [sponsor](https://github
29
29
 
30
30
  ### Overview
31
31
 
32
- You need obtain your own credentials with Amazon that may include an amazon developper account and access as seller or vendor. Please view the checklist of [Amazon Ads API onboarding overview](https://advertising.amazon.com/API/docs/en-us/setting-up/overview)
32
+ You need obtain your own credentials with Amazon that may include an amazon developer account and access as seller or vendor. Please view the checklist of [Amazon Ads API onboarding overview](https://advertising.amazon.com/API/docs/en-us/setting-up/overview)
33
33
 
34
34
 
35
35
  ### Code Credentials
@@ -19,6 +19,7 @@ from .advertising_test_account import AdvertisingTestAccount
19
19
  from .reports import Reports
20
20
  from .validation_configurations import ValidationConfigurations
21
21
  from .recommendations import Recommendations
22
+ from .stream import Stream
22
23
 
23
24
  __all__ = [
24
25
  "sp",
@@ -45,4 +46,5 @@ __all__ = [
45
46
  "Reports",
46
47
  "ValidationConfigurations",
47
48
  "Recommendations",
49
+ "Stream",
48
50
  ]
@@ -52,7 +52,7 @@ class NegativeKeywordsV3(Client):
52
52
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs,
53
53
  headers=headers)
54
54
 
55
- @sp_endpoint('/sp/negativeKeywords/', method='PUT')
55
+ @sp_endpoint('/sp/negativeKeywords', method='PUT')
56
56
  def edit_negative_keyword(self, version: int = 3, prefer: bool = False, **kwargs) -> ApiResponse:
57
57
  r"""
58
58
  Updating negative product keywords.
@@ -0,0 +1,67 @@
1
+ from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
2
+
3
+
4
+ class Stream(Client):
5
+ """Amazon Marketing Stream
6
+
7
+ Documentation: https://advertising.amazon.com/API/docs/en-us/amazon-marketing-stream/openapi
8
+ """
9
+
10
+ @sp_endpoint('/streams/subscriptions', method='POST')
11
+ def create_subscription(self, **kwargs) -> ApiResponse:
12
+ r"""
13
+ Request the creation a new subscription
14
+
15
+ Request body
16
+ | **notes** (string): [optional] Additional details associated with the subscription
17
+ | **clientRequestToken** (string): [required] Unique value supplied by the caller used to track identical API requests. Should request be re-tried, the caller should supply the same value.
18
+ | **dataSetId** (string): [required] Identifier of data set, callers can be subscribed to. Please refer to https://advertising.amazon.com/API/docs/en-us/amazon-marketing-stream/data-guide for the list of all data sets.
19
+ | **destinationArn** (string): [required] AWS ARN of the destination endpoint associated with the subscription. Supported destination type - SQS.
20
+
21
+ Returns:
22
+ ApiResponse
23
+ """
24
+ return self._request(kwargs.pop('path'), data=kwargs.pop('body'), params=kwargs)
25
+
26
+ @sp_endpoint('/streams/subscriptions/{}', method='PUT')
27
+ def update_subscription(self, subscription_id: str, **kwargs) -> ApiResponse:
28
+ r"""
29
+ Update an existing subscription
30
+
31
+ Request body
32
+ | **notes** (string): [optional] Additional details associated with the subscription
33
+ | **status** (string): [optional] Update the status of the entity. Supported value: 'ARCHIVED'
34
+
35
+ Returns:
36
+ ApiResponse
37
+ """
38
+ return self._request(
39
+ fill_query_params(kwargs.pop('path'), subscription_id), data=kwargs.pop('body'), params=kwargs
40
+ )
41
+
42
+ @sp_endpoint('/streams/subscriptions/{}', method='GET')
43
+ def get_subscription(self, subscription_id: str, **kwargs) -> ApiResponse:
44
+ r"""
45
+ Fetch a specific subscription by ID
46
+
47
+ Keyword Args
48
+ | path **subscriptionId** (string): [required] Unique subscription identifier
49
+
50
+ Returns:
51
+ ApiResponse
52
+ """
53
+ return self._request(fill_query_params(kwargs.pop('path'), subscription_id), params=kwargs)
54
+
55
+ @sp_endpoint('/streams/subscriptions', method='GET')
56
+ def list_subscriptions(self, **kwargs) -> ApiResponse:
57
+ r"""
58
+ List subscriptions
59
+
60
+ query **maxResults**:*string* | Optional. [1-5000] Desired number of entries in the response, defaults to maximum value
61
+
62
+ query **startingToken**:*string* | Optional. Token which can be used to get the next page of results, if more entries exist
63
+
64
+ Returns:
65
+ ApiResponse
66
+ """
67
+ return self._request(kwargs.pop('path'), params=kwargs)
@@ -52,9 +52,8 @@ class AccessTokenClient(BaseClient):
52
52
  """
53
53
 
54
54
  cache_key = self._get_cache_key()
55
- try:
56
- access_token = cache[cache_key]
57
- except KeyError:
55
+ access_token = cache.get(cache_key)
56
+ if access_token is None:
58
57
  request_url = self.scheme + self.host + self.path
59
58
  access_token = self._request(request_url, self.data, self.headers)
60
59
  cache[cache_key] = access_token
@@ -0,0 +1 @@
1
+ __version__ = "0.5.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-amazon-ad-api
3
- Version: 0.4.9
3
+ Version: 0.5.1
4
4
  Summary: Python wrapper for the Amazon Advertising API
5
5
  Home-page: https://github.com/denisneuf/python-amazon-ad-api
6
6
  Author: Daniel Alvaro
@@ -12,6 +12,13 @@ Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Operating System :: OS Independent
13
13
  Description-Content-Type: text/markdown
14
14
  License-File: LICENSE
15
+ Requires-Dist: requests<2.32.0,>=2.27.1
16
+ Requires-Dist: six~=1.16.0
17
+ Requires-Dist: cachetools<5.4,>=5.0
18
+ Requires-Dist: pycryptodome<3.20,>=3.13
19
+ Requires-Dist: python-dotenv<1.1.0,>=0.19.2
20
+ Requires-Dist: pytz<2024.0,>=2021.3
21
+ Requires-Dist: confuse<2.1,>=1.7
15
22
 
16
23
  # PYTHON-AMAZON-AD-API
17
24
 
@@ -44,7 +51,7 @@ If you find this project is useful consider donating or [sponsor](https://github
44
51
 
45
52
  ### Overview
46
53
 
47
- You need obtain your own credentials with Amazon that may include an amazon developper account and access as seller or vendor. Please view the checklist of [Amazon Ads API onboarding overview](https://advertising.amazon.com/API/docs/en-us/setting-up/overview)
54
+ You need obtain your own credentials with Amazon that may include an amazon developer account and access as seller or vendor. Please view the checklist of [Amazon Ads API onboarding overview](https://advertising.amazon.com/API/docs/en-us/setting-up/overview)
48
55
 
49
56
 
50
57
  ### Code Credentials
@@ -22,6 +22,7 @@ ad_api/api/portfolios.py
22
22
  ad_api/api/profiles.py
23
23
  ad_api/api/recommendations.py
24
24
  ad_api/api/reports.py
25
+ ad_api/api/stream.py
25
26
  ad_api/api/validation_configurations.py
26
27
  ad_api/api/dsp/__init__.py
27
28
  ad_api/api/dsp/access_token_client.py
@@ -1,7 +1,7 @@
1
1
  requests<2.32.0,>=2.27.1
2
2
  six~=1.16.0
3
3
  cachetools<5.4,>=5.0
4
- pycryptodome<3.19,>=3.13
4
+ pycryptodome<3.20,>=3.13
5
5
  python-dotenv<1.1.0,>=0.19.2
6
6
  pytz<2024.0,>=2021.3
7
7
  confuse<2.1,>=1.7
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = python-amazon-ad-api
3
- version = 0.4.9
3
+ version = 0.5.1
4
4
  author = Daniel Alvaro
5
5
  author_email = denisneuf@hotmail.com
6
6
  description = Python wrapper for the Amazon Advertising API
@@ -2,12 +2,12 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='python-amazon-ad-api',
5
- version='0.4.9',
5
+ version='0.5.1',
6
6
  install_requires=[
7
7
  "requests>=2.27.1,<2.32.0",
8
8
  "six~=1.16.0",
9
9
  "cachetools>=5.0,<5.4",
10
- "pycryptodome>=3.13,<3.19",
10
+ "pycryptodome>=3.13,<3.20",
11
11
  "python-dotenv>=0.19.2,<1.1.0",
12
12
  "pytz>=2021.3,<2024.0",
13
13
  "confuse>=1.7,<2.1",
@@ -1 +0,0 @@
1
- __version__ = "0.4.9"