python-amazon-ad-api 1.1.8__py3-none-any.whl → 1.1.9__py3-none-any.whl

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.
ad_api/base/helpers.py CHANGED
@@ -1,3 +1,4 @@
1
+ import functools
1
2
  from io import BytesIO
2
3
  from typing import TypeVar
3
4
 
@@ -17,6 +18,7 @@ T = TypeVar("T")
17
18
 
18
19
  def sp_endpoint(path, method="GET"):
19
20
  def decorator(function: T) -> T:
21
+ @functools.wraps(function)
20
22
  def wrapper(*args, **kwargs):
21
23
  kwargs.update({"path": path, "method": method})
22
24
  return function(*args, **kwargs)
ad_api/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.1.8"
1
+ __version__ = "1.1.9"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amazon-ad-api
3
- Version: 1.1.8
3
+ Version: 1.1.9
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
@@ -343,24 +343,35 @@ Warning: the campaign, ad group and product ad operations are deprecated in favo
343
343
  * [Ad Groups (deprecated)](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/ad_groups.html)
344
344
  * [Keywords](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/keywords.html)
345
345
  * [Negative Keywords](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/negative_keywords.html)
346
+ * [Keywords Recommendations](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/keywords_recommendations.html)
346
347
  * [Product Targeting](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/product_targeting.html)
347
348
  * [Negative Product Targeting](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/negative_product_targeting.html)
348
349
  * [Targeting Recommendations](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/targeting_recommendations.html)
349
350
  * [Bid Recommendations](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/bid_recommendations.html)
351
+ * [Benchmarks](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/benchmarks.html)
350
352
  * [Stores](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/stores.html)
351
353
  * [Landing Page Asins](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/landing_page_asins.html)
352
354
  * [Media](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/media.html)
353
355
  * [Brands](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/brands.html)
354
- * [Moderation](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/moderation.html)
355
- * [Reports](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/reports.html)
356
- * [Snapshots](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/snapshots.html)
357
356
  * [Themes](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/themes.html)
357
+ * [Reports](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/reports.html)
358
358
 
359
359
  ### [Modules Available Sponsored Brands 4.0](https://python-amazon-ad-api.readthedocs.io/en/latest/sb_v4.html)
360
360
 
361
+ > The 4.0 contract is fully covered: every operation is implemented except the campaign moderation route, which the service answers with a router `404`, and the report download, which resolves through the shared `_download` helper.
362
+
361
363
  * [Campaigns](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/campaigns_v4.html)
362
364
  * [Ad Groups](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/ad_groups_v4.html)
363
- * [Ads Groups](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/ads_v4.html)
365
+ * [Ads](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/ads_v4.html)
366
+ * [Ad Creatives](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/ad_creatives_v4.html)
367
+ * [Forecast](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/forecast.html)
368
+ * [Recommendations](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/recommendations.html)
369
+ * [Budget Rules](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/budget_rules.html)
370
+ * [Optimization Rules](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/optimization_rules.html)
371
+ * [Targeting Categories](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/targeting_categories.html)
372
+ * [Migration](https://python-amazon-ad-api.readthedocs.io/en/latest/sb/migration.html)
373
+
374
+ > Most 4.0 routes take a versioned media type and the service routes on it. With `application/json` they answer `404 Could not find resource`, which reads like a missing route but is only the wrong media type. This affects forecasts, budget recommendations, optimization rules, migrations, insights, negative brand recommendations and the collection creatives.
364
375
 
365
376
  ### [Modules Available Sponsored Display](https://python-amazon-ad-api.readthedocs.io/en/latest/sd.html)
366
377
 
@@ -1,5 +1,5 @@
1
1
  ad_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- ad_api/version.py,sha256=ii9AGvWXG_4qHN0FEZs45urJ5UrPQ9I83YjXUjFMvtI,22
2
+ ad_api/version.py,sha256=lnHAM_YSOt5TvtAm4ZVs32T0TpsCQ5kOOznnQlur1YE,22
3
3
  ad_api/api/__init__.py,sha256=E9c0ZyK4vplMlKKEBF8CV5u7P4uSkTMSQsAuSQu5bfY,1514
4
4
  ad_api/api/account.py,sha256=CmOvCfHoPWaeTUJvtB0pNoNulZVSz4oMMCKIpVTpHos,2931
5
5
  ad_api/api/advertising_test_account.py,sha256=btOVbdk2tBDmyKSJaQbcIFyzNG8KFJVUmTe4p9xMhpU,1507
@@ -105,11 +105,11 @@ ad_api/base/client.py,sha256=rOTH5zd513qmeNiJbwT42kEXvZseeh03UUp-krBW_W4,10322
105
105
  ad_api/base/config.py,sha256=VbykwPyR_CDIMFCZQs_GSqc5qKcYpp0l6B9luV-abu4,606
106
106
  ad_api/base/credential_provider.py,sha256=upgcgm2GGb0AkzDlKVAtKtbirqZAFp3EM6DkBzvAXsI,5566
107
107
  ad_api/base/exceptions.py,sha256=9D3M40ZIlLS0fA-aQh1BTWPOW-Nvf0tRhbA85jFnDJ4,4383
108
- ad_api/base/helpers.py,sha256=naUkDLK466x_OBCPXxMlzRc2nPC6iQ6H_vyUji0MJJ0,2282
108
+ ad_api/base/helpers.py,sha256=UK7Q13vZ0mNdF54xzfzoGDn2O_cd2yPrK2X4rOzC41c,2334
109
109
  ad_api/base/marketplaces.py,sha256=44lvCcluXNpqTprWQ80e3weSQmQbJoWL-WDSOWVbCyQ,4657
110
110
  ad_api/base/utils.py,sha256=_qnCBOvyJTLgaZjJzUWTi38GGLHkQszXELs79133Rb4,5618
111
- python_amazon_ad_api-1.1.8.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
112
- python_amazon_ad_api-1.1.8.dist-info/METADATA,sha256=-W9EOI2Z4NSB1KGtu1av3VB63ZLe98HiPOAKAgEHg5o,20486
113
- python_amazon_ad_api-1.1.8.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
114
- python_amazon_ad_api-1.1.8.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
115
- python_amazon_ad_api-1.1.8.dist-info/RECORD,,
111
+ python_amazon_ad_api-1.1.9.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
112
+ python_amazon_ad_api-1.1.9.dist-info/METADATA,sha256=3q_mes0kMmFRFV8eOrOBxDmWYui2SNDT1CH3ZzRD0kg,21778
113
+ python_amazon_ad_api-1.1.9.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
114
+ python_amazon_ad_api-1.1.9.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
115
+ python_amazon_ad_api-1.1.9.dist-info/RECORD,,