python-amazon-ad-api 1.4.5__py3-none-any.whl → 1.4.7__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.
@@ -28,6 +28,15 @@ class BrandStoreEditionPublishVersions(Client):
28
28
 
29
29
  Unlike the rest of v1, the query has no fully optional body: store, edition
30
30
  and publish status are all required, each accepting exactly one value.
31
+
32
+ ``StorePublishStatus`` declares two values but the service accepts only one:
33
+ asking for ``REVIEW_IN_PROGRESS`` answers ``400 Only DRAFT status query is
34
+ supported``. The enum is honest about what exists in the data model, not
35
+ about what can be queried.
36
+
37
+ The ``storeEditionPublishId`` in the answer is not a plain identifier but a
38
+ base64 token holding the schema version, the store, ``editionIdVersion`` and
39
+ the status -- pass it back to update unchanged.
31
40
  """
32
41
 
33
42
  @sp_endpoint('/adsApi/v1/query/brandStoreEditionPublishVersions', method='POST')
@@ -45,8 +54,10 @@ class BrandStoreEditionPublishVersions(Client):
45
54
  | **storeIdFilter** (dict) [required]
46
55
  | **include** (list<string>) : exactly one store id
47
56
  | **publishStatusFilter** (dict) [required]
48
- | **include** (list<StorePublishStatus>) : exactly one of
49
- Enum [ DRAFT, REVIEW_IN_PROGRESS ]
57
+ | **include** (list<StorePublishStatus>) : exactly one value.
58
+ The contract declares [ DRAFT, REVIEW_IN_PROGRESS ] but the
59
+ service rejects the second one with
60
+ "400 Only DRAFT status query is supported". Send DRAFT.
50
61
  | **maxResults** (int) [optional]
51
62
  | **nextToken** (string) [optional]
52
63
 
@@ -46,7 +46,7 @@ class BrandStoreEditions(Client):
46
46
  The ``editionId`` is what BrandStoreEditionPublishVersions filters on.
47
47
  """
48
48
  path = kwargs.pop('path')
49
- kwargs.pop('method', None)
49
+ # method must stay in params: _request reads it with params.pop('method')
50
50
  params = dict(kwargs)
51
51
  params['brandStoreId'] = brandStoreId
52
52
  return self._request(path, params=params)
ad_api/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.4.5"
1
+ __version__ = "1.4.7"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amazon-ad-api
3
- Version: 1.4.5
3
+ Version: 1.4.7
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
@@ -1,5 +1,5 @@
1
1
  ad_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- ad_api/version.py,sha256=Fv2JHnR-ADpzdVitwHAsUrkhe-BpoDkmx7MxtXxlm1k,22
2
+ ad_api/version.py,sha256=pHClr_RD94RdAO4nIJOBug2vXKKjcRzEGxsyrQcqnHY,22
3
3
  ad_api/api/__init__.py,sha256=TLMefdmuyrj3-vtxGlzX4Sl-lHmE3Rs6daYgw3zwO0c,1600
4
4
  ad_api/api/account.py,sha256=CmOvCfHoPWaeTUJvtB0pNoNulZVSz4oMMCKIpVTpHos,2931
5
5
  ad_api/api/account_budgets.py,sha256=jFce5eLWAFK3ydjnYR7_Sv7B0-gHTG5bMTx_TcHyy1A,2319
@@ -95,8 +95,8 @@ ad_api/api/v1/ad_extensions.py,sha256=kL-7xHaXXqb2jXTwZrY0oGttLAG0CW_IjBAqL_CI92
95
95
  ad_api/api/v1/ad_groups.py,sha256=pQhCVdve_O6kbL4mBA5bxxhKcKNl_BKqa7z9DvrxwaM,12626
96
96
  ad_api/api/v1/ads.py,sha256=YwZGQ-4WuYquleELtwRI9L8w0fGw7FBRejQE-tZ5hKY,7941
97
97
  ad_api/api/v1/advertiser_accounts.py,sha256=_Y8GTHgQ2G-RhNg4cuvvfXvjIhLzstQAGSyr1WMRRfg,5405
98
- ad_api/api/v1/brand_store_edition_publish_versions.py,sha256=Q8smB7zJJ1cEkYrCEo3_Ws9QICUcBOvB03eM77rlF4I,4258
99
- ad_api/api/v1/brand_store_editions.py,sha256=sJTZ-DOXSXSVF01-dtt0EZ8bz3CKSlP9c_c0rp40pfM,2113
98
+ ad_api/api/v1/brand_store_edition_publish_versions.py,sha256=QFmcWMPwi0f7eW0Ox4pZCvMWHEzeeQc8dIq7_3eeg6Y,4898
99
+ ad_api/api/v1/brand_store_editions.py,sha256=xW4z2jDWhNJn86tWlT3eLIRr0NEpxLhW1eA-T_hiXcI,2160
100
100
  ad_api/api/v1/brand_stores.py,sha256=zlBsKiOwmdSiIG9filgdqUlPnV6AX-gE6S5nNyAQACc,2131
101
101
  ad_api/api/v1/campaigns.py,sha256=u5PlvoAhgVhMxbCvYkPgqtbYK3TXXcb7TMie0Qjrgwc,9573
102
102
  ad_api/api/v1/targets.py,sha256=a4BzPjg9m1JJwqphhpQOFkNIcgCw7v4-K0sNzOihMZI,12355
@@ -115,8 +115,8 @@ ad_api/base/exceptions.py,sha256=9D3M40ZIlLS0fA-aQh1BTWPOW-Nvf0tRhbA85jFnDJ4,438
115
115
  ad_api/base/helpers.py,sha256=UK7Q13vZ0mNdF54xzfzoGDn2O_cd2yPrK2X4rOzC41c,2334
116
116
  ad_api/base/marketplaces.py,sha256=44lvCcluXNpqTprWQ80e3weSQmQbJoWL-WDSOWVbCyQ,4657
117
117
  ad_api/base/utils.py,sha256=_qnCBOvyJTLgaZjJzUWTi38GGLHkQszXELs79133Rb4,5618
118
- python_amazon_ad_api-1.4.5.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
119
- python_amazon_ad_api-1.4.5.dist-info/METADATA,sha256=Tldap6NyJK6u13ElZ-2yrjXwXR90wc1WOxoReBf7AhI,22659
120
- python_amazon_ad_api-1.4.5.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
121
- python_amazon_ad_api-1.4.5.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
122
- python_amazon_ad_api-1.4.5.dist-info/RECORD,,
118
+ python_amazon_ad_api-1.4.7.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
119
+ python_amazon_ad_api-1.4.7.dist-info/METADATA,sha256=5tMdLDA4qDoJbVVGFX0nEULMvAtu0ggqJW4Ke8D489I,22659
120
+ python_amazon_ad_api-1.4.7.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
121
+ python_amazon_ad_api-1.4.7.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
122
+ python_amazon_ad_api-1.4.7.dist-info/RECORD,,