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.
- {python-amazon-ad-api-0.4.9/python_amazon_ad_api.egg-info → python-amazon-ad-api-0.5.1}/PKG-INFO +9 -2
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/README.md +1 -1
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/__init__.py +2 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/negative_keywords_v3.py +1 -1
- python-amazon-ad-api-0.5.1/ad_api/api/stream.py +67 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/access_token_client.py +2 -3
- python-amazon-ad-api-0.5.1/ad_api/version.py +1 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1/python_amazon_ad_api.egg-info}/PKG-INFO +9 -2
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/python_amazon_ad_api.egg-info/SOURCES.txt +1 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/python_amazon_ad_api.egg-info/requires.txt +1 -1
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/setup.cfg +1 -1
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/setup.py +2 -2
- python-amazon-ad-api-0.4.9/ad_api/version.py +0 -1
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/LICENSE +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/__init__.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/advertising_test_account.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/attribution.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/audiences.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/billing.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/brand_metrics.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/creative_assets.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/__init__.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/access_token_client.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/client.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/credential_provider.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/reports.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/eligibility.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/history.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/insights.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/invoices.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/localization.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/manager_accounts.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/metadata.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/portfolios.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/profiles.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/reports.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/__init__.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/ad_groups.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/ad_groups_v4.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/ads_v4.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/bid_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/brands.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/campaigns.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/campaigns_v4.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/forecast.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/keywords.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/keywords_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/landing_page_asins.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/media.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/moderation.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/negative_keywords.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/negative_product_targeting.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/product_targeting.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/reports.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/snapshots.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/stores.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/targeting_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/__init__.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/ad_groups.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/bid_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/brand_safety.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/budget_rules.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/campaigns.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/campaigns_budget_usage.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/creatives.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/forecast.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/negative_product_targeting.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/product_ads.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/product_targeting.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/reports.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/snapshots.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/targeting_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/__init__.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/ad_groups.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/ad_groups_v3.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/bid_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/bid_recommendations_v3.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/budget_initial_recommendation.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/budget_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/budget_rules.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/budget_rules_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaign_consolidated_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaign_negative_keywords.py +0 -0
- {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
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaign_negative_targets.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaigns.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaigns_budget_usage.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaigns_v3.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaings_optimization.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/keywords.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/keywords_v3.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/negative_keywords.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/negative_product_targeting.py +0 -0
- {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
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_ads.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_ads_v3.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_targeting.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_targeting_v3.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/ranked_keywords_recommendations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/reports.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/snapshots.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/suggested_keywords.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/validation_configurations.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/__init__.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/access_token_response.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/credentials.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/exceptions.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/__init__.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/api_response.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/base_client.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/client.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/config.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/credential_provider.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/exceptions.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/helpers.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/marketplaces.py +0 -0
- {python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/utils.py +0 -0
- {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
- {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
{python-amazon-ad-api-0.4.9/python_amazon_ad_api.egg-info → python-amazon-ad-api-0.5.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-amazon-ad-api
|
|
3
|
-
Version: 0.
|
|
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
|
|
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
|
|
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
|
]
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/negative_keywords_v3.py
RENAMED
|
@@ -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
|
|
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)
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/access_token_client.py
RENAMED
|
@@ -52,9 +52,8 @@ class AccessTokenClient(BaseClient):
|
|
|
52
52
|
"""
|
|
53
53
|
|
|
54
54
|
cache_key = self._get_cache_key()
|
|
55
|
-
|
|
56
|
-
|
|
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"
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1/python_amazon_ad_api.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-amazon-ad-api
|
|
3
|
-
Version: 0.
|
|
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
|
|
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
|
|
@@ -2,12 +2,12 @@ from setuptools import setup
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='python-amazon-ad-api',
|
|
5
|
-
version='0.
|
|
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.
|
|
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"
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/advertising_test_account.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/access_token_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/dsp/credential_provider.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/bid_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/keywords_recommendations.py
RENAMED
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/landing_page_asins.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/negative_keywords.py
RENAMED
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/product_targeting.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sb/targeting_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/bid_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/campaigns_budget_usage.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/product_targeting.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sd/targeting_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/bid_recommendations.py
RENAMED
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/bid_recommendations_v3.py
RENAMED
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/budget_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaign_negative_targets.py
RENAMED
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaigns_budget_usage.py
RENAMED
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/campaings_optimization.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/negative_keywords.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_recommendations.py
RENAMED
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_targeting.py
RENAMED
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/product_targeting_v3.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/sp/suggested_keywords.py
RENAMED
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/api/validation_configurations.py
RENAMED
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/auth/access_token_response.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-amazon-ad-api-0.4.9 → python-amazon-ad-api-0.5.1}/ad_api/base/credential_provider.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|