python-amazon-ad-api 2.0.1__py3-none-any.whl → 2.0.2__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/api/account.py CHANGED
@@ -51,3 +51,46 @@ class Account(Client):
51
51
 
52
52
  body = Utils.convert_body(kwargs.pop('body'), wrap=False)
53
53
  return self._request(kwargs.pop('path'), data=body, params=kwargs, headers=headers)
54
+
55
+ @sp_endpoint('/termsTokens', method='POST')
56
+ def create_terms_token(self, **kwargs) -> ApiResponse:
57
+ r"""
58
+ create_terms_token(body: (dict, str)) -> ApiResponse
59
+
60
+ Create a new UUID terms token for the customer to accept advertising terms.
61
+
62
+ body: | Optional
63
+ | **accountId** (string) Optional account ID (Global Account or Manager Account) for accepting terms on existing accounts
64
+ | **termsType** (string) Enum: ADSP, ADVERTISING, MARKETING_CLOUD, PARTNER_NETWORK
65
+
66
+ Returns:
67
+
68
+ ApiResponse
69
+
70
+ """
71
+ schema_request = 'application/vnd.GlobalRegistrationService.TermsTokenResource.v1.0+json'
72
+ schema_response = 'application/vnd.termstokenresource.v1+json'
73
+ headers = {'Accept': schema_response, 'Content-Type': schema_request}
74
+
75
+ body = Utils.convert_body(kwargs.pop('body'), wrap=False)
76
+ return self._request(kwargs.pop('path'), data=body, params=kwargs, headers=headers)
77
+
78
+ @sp_endpoint('/termsTokens/{}', method='GET')
79
+ def get_terms_token(self, termsToken: str, **kwargs) -> ApiResponse:
80
+ r"""
81
+ get_terms_token(termsToken: str) -> ApiResponse
82
+
83
+ Get the terms token status for the customer.
84
+
85
+ path **termsToken**:string | Required. A Terms Token refers to an UUID token used for terms and conditions acceptance.
86
+
87
+ Returns:
88
+
89
+ ApiResponse
90
+
91
+ """
92
+ schema_response = 'application/vnd.termstokenresource.v1+json'
93
+ headers = {'Accept': schema_response, 'Content-Type': 'application/json'}
94
+
95
+ return self._request(fill_query_params(kwargs.pop('path'), termsToken), params=kwargs, headers=headers)
96
+
ad_api/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2.0.1"
1
+ __version__ = "2.0.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amazon-ad-api
3
- Version: 2.0.1
3
+ Version: 2.0.2
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
@@ -350,15 +350,19 @@ Billing(account=store).list_invoices()
350
350
  | [Product Ads](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/product_ads_v3.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
351
351
  | [Negative Targeting Clauses](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/negative_product_targeting_v3.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
352
352
  | [Campaign Negative Targeting Clauses](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/campaign_negative_targets.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
353
- | [Budget recommendations and missed opportunities](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/product_recommendations.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
353
+ | [Product Recommendations](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/product_recommendations.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
354
354
  | [Budget Rules Recommendation](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/budget_rules_recommendations.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
355
- | [Campaigns](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/campaignsv3.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
355
+ | [Campaigns](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/campaigns_v3.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
356
356
  | [Ad Groups](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/ad_groups_v3.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
357
357
  | [Consolidated Recommendations](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/campaigns_consolidated_recommendations.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
358
358
  | [Campaign Negative Keywords](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/campaign_negative_keywords_v3.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
359
- | [Product Recommendations](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/budget_recommendations.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
359
+ | [Budget recommendations and missed opportunities](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/budget_recommendations.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
360
360
  | [Budget Usage](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/campaign_budget_usage.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
361
361
  | [Reports](https://python-amazon-ad-api.readthedocs.io/en/latest/api/reports.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/offline-report-prod-3p) |
362
+ | [Target Promotion Groups](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/target_promotion_groups.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
363
+ | [Initial Budget Recommendation](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/budget_initial_recommendation.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
364
+ | [Keyword Group Targeting Recommendations](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/keyword_groups_recommendations.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
365
+ | [Multi Country Recommendations](https://python-amazon-ad-api.readthedocs.io/en/latest/sp/global_recommendations.html) | [contract](https://d1y2lf8k3vrkfu.cloudfront.net/openapi/en-us/dest/SponsoredProducts_prod_3p.json) | [docs](https://advertising.amazon.com/API/docs/en-us/sponsored-products/3-0/openapi/prod) |
362
366
 
363
367
  ### [Modules Available Sponsored Brands 3.0](https://python-amazon-ad-api.readthedocs.io/en/latest/sb_v3.html)
364
368
 
@@ -1,7 +1,7 @@
1
1
  ad_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- ad_api/version.py,sha256=wAxkK8w13vqoF47A8iqWdSlIgRRXmZiQ0R4wePZfzhs,22
2
+ ad_api/version.py,sha256=tATvJM5shAzfspHYjdVwpV2w3-gDA119NlEYi5X2lFY,22
3
3
  ad_api/api/__init__.py,sha256=7Uqrkek5BFADpIb2Ctk-xRfSld4U4iYkvZLxtPx2CeU,1585
4
- ad_api/api/account.py,sha256=CmOvCfHoPWaeTUJvtB0pNoNulZVSz4oMMCKIpVTpHos,2931
4
+ ad_api/api/account.py,sha256=X6VPoPsEfGwuABUYVWJATiUpgHSCAz0BreQOHCze9To,4613
5
5
  ad_api/api/account_budgets.py,sha256=jFce5eLWAFK3ydjnYR7_Sv7B0-gHTG5bMTx_TcHyy1A,2319
6
6
  ad_api/api/advertising_test_account.py,sha256=btOVbdk2tBDmyKSJaQbcIFyzNG8KFJVUmTe4p9xMhpU,1507
7
7
  ad_api/api/attribution.py,sha256=TWYJSEqG2Li2qQRSSv8GtE2WOiK_RJICCeyN-xVrF6A,7273
@@ -129,8 +129,8 @@ ad_api/base/marketplaces.py,sha256=44lvCcluXNpqTprWQ80e3weSQmQbJoWL-WDSOWVbCyQ,4
129
129
  ad_api/base/utils.py,sha256=_qnCBOvyJTLgaZjJzUWTi38GGLHkQszXELs79133Rb4,5618
130
130
  ad_api/shared/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
131
131
  ad_api/shared/base_client.py,sha256=zOL_LTh-58URWf3ZDlrwmqXXbd6PX66QF5hrr2p83yY,356
132
- python_amazon_ad_api-2.0.1.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
133
- python_amazon_ad_api-2.0.1.dist-info/METADATA,sha256=rrGtU41t5ylos1fTGgCnoOby1OuVoqhmweNkP9X6DtI,43541
134
- python_amazon_ad_api-2.0.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
135
- python_amazon_ad_api-2.0.1.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
136
- python_amazon_ad_api-2.0.1.dist-info/RECORD,,
132
+ python_amazon_ad_api-2.0.2.dist-info/licenses/LICENSE,sha256=h2rpqlmmLy-4l1tN6KpWAFxx1JEMYeEFrMrZUbx_B_o,1105
133
+ python_amazon_ad_api-2.0.2.dist-info/METADATA,sha256=JEnFwZ6n9PA7CdSuS3qBljSUea64__MxZHxMhSBHK3w,44826
134
+ python_amazon_ad_api-2.0.2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
135
+ python_amazon_ad_api-2.0.2.dist-info/top_level.txt,sha256=nN9twUos-8pkP514ZwpvRU9YL9L2XyQyHsMQFfudGTU,7
136
+ python_amazon_ad_api-2.0.2.dist-info/RECORD,,