python-amazon-ad-api 0.9.6__py3-none-any.whl → 0.9.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.
@@ -386,3 +386,43 @@ class Campaigns(Client):
386
386
 
387
387
  """
388
388
  return self._request(fill_query_params(kwargs.pop('path'), campaignId), params=kwargs)
389
+
390
+ @sp_endpoint('/adsApi/v1/query/campaigns', method='POST')
391
+ def query_campaigns(self, **kwargs) -> ApiResponse:
392
+ r"""
393
+ query_campaigns(body: dict) -> ApiResponse
394
+
395
+ Amazon Ads API v1 - Query Campaigns (operationId: QueryCampaign)
396
+
397
+ Request Body [Required]
398
+ | **adProductFilter** (dict): [required]
399
+ | **include** (list<AdProduct>) : Enum [ AMAZON_DSP, SPONSORED_BRANDS, SPONSORED_DISPLAY, SPONSORED_PRODUCTS, SPONSORED_TELEVISION ]
400
+ | **campaignIdFilter** (dict) [optional]
401
+ | **include** (list<string>) : Campaign identifiers
402
+ | **goalFilter** (dict) [optional]
403
+ | **include** (list<Goal>) : Enum [ AWARENESS, CONSIDERATION, CONVERSIONS ]
404
+ | **marketplaceScopeFilter** (dict) [optional]
405
+ | **include** (list<MarketplaceScope>) : Enum [ GLOBAL, SINGLE_MARKETPLACE ]
406
+ | **nameFilter** (dict) [optional]
407
+ | **include** (list<string>) : Campaign names
408
+ | **queryTermMatchType** (string) : [required] Enum [ BROAD_MATCH, EXACT_MATCH ]
409
+ | **portfolioIdFilter** (dict) [optional]
410
+ | **include** (list<string>) : Portfolio identifiers
411
+ | **retailerScopeFilter** (dict) [optional]
412
+ | **include** (list<RetailerScope>) : Enum [ AMAZON, OTHER_RETAILERS ]
413
+ | **stateFilter** (dict) [optional]
414
+ | **include** (list<State>) : Enum [ ARCHIVED, DRAFT, ENABLED, PAUSED ]
415
+ | **maxResults** (int) [optional] Minimum 1, Maximum 1000
416
+ | **nextToken** (string) [optional] Token to navigate to the next page
417
+
418
+ Headers
419
+ | **Amazon-Ads-AccountId** (string) [optional] Advertiser account identifier
420
+
421
+ Returns
422
+ ApiResponse
423
+ | **campaigns** (list), **nextToken** (string)
424
+
425
+ """
426
+ schema_version = 'application/json'
427
+ headers = {"Accept": schema_version, "Content-Type": schema_version}
428
+ return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
@@ -73,6 +73,7 @@ class CampaignsV3(Client):
73
73
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
74
74
 
75
75
  @sp_endpoint('/sp/campaigns/list', method='POST')
76
+ @Utils.deprecated
76
77
  def list_campaigns(self, version: int = 3, **kwargs) -> ApiResponse:
77
78
  r"""
78
79
  list_campaigns(body: (dict, str, list)) -> ApiResponse
ad_api/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.9.6"
1
+ __version__ = "0.9.7"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amazon-ad-api
3
- Version: 0.9.6
3
+ Version: 0.9.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
@@ -15,7 +15,7 @@ License-File: LICENSE
15
15
  Requires-Dist: requests<2.35.0,>=2.27.1
16
16
  Requires-Dist: six<1.18,>=1.16
17
17
  Requires-Dist: cachetools<7.3,>=5.0
18
- Requires-Dist: pycryptodome<4.1,>=3.13
18
+ Requires-Dist: pycryptodome<4.2,>=3.13
19
19
  Requires-Dist: pytz<2027.0,>=2021.3
20
20
  Requires-Dist: confuse<2.4,>=1.7
21
21
  Dynamic: author
@@ -1,5 +1,5 @@
1
1
  ad_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- ad_api/version.py,sha256=IgVHjr-TeioZYLJSkvpT80LLGi6U3ONzR1cfYfd5XNQ,22
2
+ ad_api/version.py,sha256=RcQa7EaTs304WhxJ7lAJ_lelzmRpmed8pgcM1EYP3bo,22
3
3
  ad_api/api/__init__.py,sha256=rurlFrTJZgSGNdkEahAJGjDAVll2KyCqpLpV40ZKI6o,1487
4
4
  ad_api/api/account.py,sha256=CmOvCfHoPWaeTUJvtB0pNoNulZVSz4oMMCKIpVTpHos,2931
5
5
  ad_api/api/advertising_test_account.py,sha256=btOVbdk2tBDmyKSJaQbcIFyzNG8KFJVUmTe4p9xMhpU,1507
@@ -83,9 +83,9 @@ ad_api/api/sp/campaign_consolidated_recommendations.py,sha256=AZS8A0ZH_GRCZ5uExq
83
83
  ad_api/api/sp/campaign_negative_keywords.py,sha256=4Jj8CFt4YX36N4YhXDDVabOiPOfCtQ2kYqYoS2Xejoc,6344
84
84
  ad_api/api/sp/campaign_negative_keywords_v3.py,sha256=3y5PHA_r6GtBAFbAXiGH5q6ByWsG2alA3DCqdRiaO3w,6592
85
85
  ad_api/api/sp/campaign_negative_targets.py,sha256=5fzt3wU1omOrGELtwSs4-R1BCcaT8z5H0StjJfCuc9k,8310
86
- ad_api/api/sp/campaigns.py,sha256=tjayAQK5IUyeC79Kct3GUIb2wapDpA4hEmIA902ZkJE,20000
86
+ ad_api/api/sp/campaigns.py,sha256=wd-pymoFGTs9dY2C0GJfLUPrb6QDqot9dshOCp_Rsck,22142
87
87
  ad_api/api/sp/campaigns_budget_usage.py,sha256=njn-Wd3xvbJbL5HMSNQK4RyxCgAflqUgVFo7XhlXmB8,862
88
- ad_api/api/sp/campaigns_v3.py,sha256=LLEgq9ylMkgHEZM-6LSAdBobNPN6JoU7uUUVGM9T8fg,7809
88
+ ad_api/api/sp/campaigns_v3.py,sha256=enxuRqoyBeidwR9J5VcPHFDRbiy2G6EEQqKRyaJPI5I,7831
89
89
  ad_api/api/sp/campaings_optimization.py,sha256=CrH9x-KNTsRc56tn_TCDxDTZIF9pYdqDT48LTepys2w,6673
90
90
  ad_api/api/sp/keywords.py,sha256=DR_y4BUrL2P_lSqw3RwHmIBFI634ekbCaEHDuDqyqwI,7851
91
91
  ad_api/api/sp/keywords_v3.py,sha256=tvpNY0rzCeLVNGLdN2NNa8Y9DyAH9D3GQUnaEieYpXE,3850
@@ -118,8 +118,8 @@ ad_api/base/exceptions.py,sha256=9D3M40ZIlLS0fA-aQh1BTWPOW-Nvf0tRhbA85jFnDJ4,438
118
118
  ad_api/base/helpers.py,sha256=naUkDLK466x_OBCPXxMlzRc2nPC6iQ6H_vyUji0MJJ0,2282
119
119
  ad_api/base/marketplaces.py,sha256=44lvCcluXNpqTprWQ80e3weSQmQbJoWL-WDSOWVbCyQ,4657
120
120
  ad_api/base/utils.py,sha256=_qnCBOvyJTLgaZjJzUWTi38GGLHkQszXELs79133Rb4,5618
121
- python_amazon_ad_api-0.9.6.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
122
- python_amazon_ad_api-0.9.6.dist-info/METADATA,sha256=2yoK0yrqcmEImybeSPaJrdnJ5vdeAqa3o22ueDhhuek,19168
123
- python_amazon_ad_api-0.9.6.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
124
- python_amazon_ad_api-0.9.6.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
125
- python_amazon_ad_api-0.9.6.dist-info/RECORD,,
121
+ python_amazon_ad_api-0.9.7.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
122
+ python_amazon_ad_api-0.9.7.dist-info/METADATA,sha256=mz_J6Z90WCi6dWmxvtaoRUindIHVgmdkwhgzZgHYtCM,19168
123
+ python_amazon_ad_api-0.9.7.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
124
+ python_amazon_ad_api-0.9.7.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
125
+ python_amazon_ad_api-0.9.7.dist-info/RECORD,,