python-amazon-ad-api 2.2.7__tar.gz → 2.2.9__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-2.2.7/python_amazon_ad_api.egg-info → python_amazon_ad_api-2.2.9}/PKG-INFO +1 -1
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/__init__.py +2 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/ads_data_manager.py +1 -1
- python_amazon_ad_api-2.2.9/ad_api/api/partner_opportunities.py +169 -0
- python_amazon_ad_api-2.2.9/ad_api/api/stream.py +227 -0
- python_amazon_ad_api-2.2.9/ad_api/version.py +1 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9/python_amazon_ad_api.egg-info}/PKG-INFO +1 -1
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/python_amazon_ad_api.egg-info/SOURCES.txt +1 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/setup.cfg +1 -1
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/setup.py +1 -1
- python_amazon_ad_api-2.2.7/ad_api/api/stream.py +0 -67
- python_amazon_ad_api-2.2.7/ad_api/version.py +0 -1
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/LICENSE +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/README.md +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/__init__.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/account.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/account_budgets.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/advertising_invitations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/advertising_test_account.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/advertising_user_permissions.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/attribution.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/audiences.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/billing.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/brand_benchmarks.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/brand_home.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/brand_metrics.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/creative_assets.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/dsp_advertiser.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/eligibility.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/exports.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/history.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/insights.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/localization.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/manager_accounts.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/marketing_mix_modeling.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/metadata.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/portfolios.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/portfolios_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/profiles.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/ras_campaign_management.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/ras_retailer_identity.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/reports.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/__init__.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/ad_creatives_v4.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/ad_groups.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/ad_groups_v4.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/ads_v4.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/benchmarks.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/bid_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/brands.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/budget_rules.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/campaigns.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/campaigns_v4.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/forecast.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/keywords.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/keywords_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/landing_page_asins.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/media.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/migration.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/negative_keywords.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/negative_product_targeting.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/optimization_rules.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/product_targeting.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/reports.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/stores.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/targeting_categories.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/targeting_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/themes.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/__init__.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/ad_groups.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/bid_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/brand_safety.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/budget_rules.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/campaigns.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/campaigns_budget_usage.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/creatives.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/forecast.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/negative_product_targeting.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/product_ads.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/product_targeting.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/reports.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/snapshots.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/targeting_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/__init__.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/ad_groups_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/bid_recommendations_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/budget_initial_recommendation.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/budget_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/budget_rules.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/budget_rules_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/campaign_consolidated_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/campaign_negative_keywords_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/campaign_negative_targets.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/campaigns_budget_usage.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/campaigns_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/campaings_optimization.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/global_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/keyword_groups_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/keywords_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/negative_keywords_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/negative_product_targeting_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/product_ads_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/product_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/product_targeting_v3.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/ranked_keywords_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/schedule_based_bid_optimization.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/target_promotion_groups.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/__init__.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/ad_groups.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/ads.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/campaigns.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/creatives.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/creatives_moderations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/creatives_preview.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/forecasts.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/locations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/targets.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/stores.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/__init__.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/ad_associations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/ad_extensions.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/ad_groups.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/ads.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/advertiser_accounts.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/brand_store_edition_publish_versions.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/brand_store_editions.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/brand_store_pages.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/brand_stores.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/campaigns.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/geo_locations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/label_object_associations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/labels.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/location_indexes.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/manager_accounts.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/portfolios.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/recommendation_types.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/recommendations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/reports.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/selling_accounts.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/targets.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/validation_configurations.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/auth/__init__.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/auth/access_token_client.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/auth/access_token_response.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/auth/credentials.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/auth/exceptions.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/base/__init__.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/base/api_response.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/base/client.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/base/config.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/base/credential_provider.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/base/exceptions.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/base/helpers.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/base/marketplaces.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/base/utils.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/shared/__init__.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/shared/base_client.py +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/pyproject.toml +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/python_amazon_ad_api.egg-info/dependency_links.txt +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/python_amazon_ad_api.egg-info/requires.txt +0 -0
- {python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/python_amazon_ad_api.egg-info/top_level.txt +0 -0
|
@@ -35,6 +35,7 @@ from .brand_home import BrandHome
|
|
|
35
35
|
from .ras_retailer_identity import RasRetailerIdentity
|
|
36
36
|
from .ras_campaign_management import RasCampaignManagement
|
|
37
37
|
from .ads_data_manager import AdsDataManager
|
|
38
|
+
from .partner_opportunities import PartnerOpportunities
|
|
38
39
|
|
|
39
40
|
__all__ = [
|
|
40
41
|
"v1",
|
|
@@ -76,5 +77,6 @@ __all__ = [
|
|
|
76
77
|
"RasRetailerIdentity",
|
|
77
78
|
"RasCampaignManagement",
|
|
78
79
|
"AdsDataManager",
|
|
80
|
+
"PartnerOpportunities",
|
|
79
81
|
"Account"
|
|
80
82
|
]
|
|
@@ -280,7 +280,7 @@ class AdsDataManager(Client):
|
|
|
280
280
|
| **startDate** (str): first day, ISO date.
|
|
281
281
|
| **endDate** (str): last day, ISO date.
|
|
282
282
|
| **metrics** (list): ``CONSENTED``, ``RECEIVED``, ``RESOLVED``
|
|
283
|
-
| or ``VALID
|
|
283
|
+
| or ``VALID``. [optional]
|
|
284
284
|
|
|
285
285
|
Keyword Args
|
|
286
286
|
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"""Partner Opportunities /partnerOpportunities.
|
|
2
|
+
|
|
3
|
+
Contract: Partner Opportunities 3.0. Five routes, all of them identifying the
|
|
4
|
+
caller with ``Amazon-Advertising-API-Manager-Account``, the header the client
|
|
5
|
+
already sends from ``manager_account_id``.
|
|
6
|
+
|
|
7
|
+
Every response and every request body uses
|
|
8
|
+
``application/vnd.partneropportunity.v<n>+json``. The contract publishes v1,
|
|
9
|
+
v1.1 and v1.2; the media type is built in the method body from the ``version``
|
|
10
|
+
argument, and ``/partnerOpportunities/summary`` only exists from v1.1 on.
|
|
11
|
+
|
|
12
|
+
``/partnerOpportunities/{partnerOpportunityId}/apply`` is asynchronous: it
|
|
13
|
+
answers 202 and the result is read through ``applicationStatus``. Both take the
|
|
14
|
+
same body, and the contract says its members come from the opportunity data file.
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class PartnerOpportunities(Client):
|
|
21
|
+
r"""Partner Opportunities - /partnerOpportunities
|
|
22
|
+
|
|
23
|
+
Documentation: https://advertising.amazon.com/API/docs/en-us/partner-opportunities
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
@sp_endpoint('/partnerOpportunities', method='GET',
|
|
27
|
+
headers=['Amazon-Advertising-API-Manager-Account'])
|
|
28
|
+
def list_opportunities(self, version: float = 1, **kwargs) -> ApiResponse:
|
|
29
|
+
r"""
|
|
30
|
+
Lists the opportunities for the partner making the request. Read only.
|
|
31
|
+
|
|
32
|
+
Keyword Args
|
|
33
|
+
|
|
34
|
+
- ``version`` (float): media type version, 1, 1.1 or 1.2. Defaults to 1.
|
|
35
|
+
- ``maxResults`` (int): page size. [optional]
|
|
36
|
+
- ``nextToken`` (str): pagination token. [optional]
|
|
37
|
+
- ``locale`` (str): e.g. ``en_US``. [optional]
|
|
38
|
+
- ``retrieveTranslationKeys`` (bool): also return translation keys. [optional]
|
|
39
|
+
- ``advertiserId`` (str): narrow to one advertiser. [optional]
|
|
40
|
+
- ``profileId`` (str): narrow to one profile. [optional]
|
|
41
|
+
- ``audience`` (str): ``PARTNER``, ``PARTNER_MANAGED_ADVERTISERS`` or
|
|
42
|
+
``PARTNER_MANAGED_AD_BUSINESS``. [optional]
|
|
43
|
+
- ``objectiveType`` (str): filter by objective. [optional]
|
|
44
|
+
- ``product`` (str): filter by product. [optional]
|
|
45
|
+
- ``selector`` (str): ``'manager_account_id'``. [optional]
|
|
46
|
+
|
|
47
|
+
Returns
|
|
48
|
+
ApiResponse with ``opportunities``, ``totalResults``, ``nextToken``,
|
|
49
|
+
``prevToken``, ``firstToken`` and ``lastToken``.
|
|
50
|
+
"""
|
|
51
|
+
schema = 'application/vnd.partneropportunity.v' + str(version) + '+json'
|
|
52
|
+
headers = {'Accept': schema}
|
|
53
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=headers)
|
|
54
|
+
|
|
55
|
+
@sp_endpoint('/partnerOpportunities/summary', method='GET',
|
|
56
|
+
headers=['Amazon-Advertising-API-Manager-Account'])
|
|
57
|
+
def summarize_opportunities(self, version: float = 1, **kwargs) -> ApiResponse:
|
|
58
|
+
r"""
|
|
59
|
+
Gets aggregated information about every opportunity of the partner.
|
|
60
|
+
Read only. Supported from v1.1 of the media type on.
|
|
61
|
+
|
|
62
|
+
Keyword Args
|
|
63
|
+
|
|
64
|
+
- ``version`` (float): media type version, 1, 1.1 or 1.2. Defaults to 1.
|
|
65
|
+
- ``audience`` (str): the same filter as the list. [optional]
|
|
66
|
+
- ``objectiveType`` (str): filter by objective. [optional]
|
|
67
|
+
- ``product`` (str): filter by product. [optional]
|
|
68
|
+
- ``selector`` (str): ``'manager_account_id'``. [optional]
|
|
69
|
+
|
|
70
|
+
Returns
|
|
71
|
+
ApiResponse with ``opportunitiesCount``,
|
|
72
|
+
``opportunitiesWithDataCount``, ``uniqueAdvertiserApproximateCount``
|
|
73
|
+
and the three available-filter lists.
|
|
74
|
+
"""
|
|
75
|
+
schema = 'application/vnd.partneropportunity.v' + str(version) + '+json'
|
|
76
|
+
headers = {'Accept': schema}
|
|
77
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=headers)
|
|
78
|
+
|
|
79
|
+
@sp_endpoint('/partnerOpportunities/{}/apply', method='POST',
|
|
80
|
+
headers=['Amazon-Advertising-API-Manager-Account'])
|
|
81
|
+
def apply_opportunity(self, partnerOpportunityId, version: float = 1, **kwargs) -> ApiResponse:
|
|
82
|
+
r"""
|
|
83
|
+
Applies a set of recommendations from one opportunity. It is
|
|
84
|
+
asynchronous: answers 202, and the result is read with
|
|
85
|
+
``get_application_status``.
|
|
86
|
+
|
|
87
|
+
Path Parameters
|
|
88
|
+
|
|
89
|
+
- ``partnerOpportunityId`` (str): the opportunity. [required]
|
|
90
|
+
|
|
91
|
+
Request Body [Required]
|
|
92
|
+
| **advertiserType** (str): ``SELLER`` or ``VENDOR``.
|
|
93
|
+
| **encryptedAdvertiserId** (str).
|
|
94
|
+
| **entityId** (str).
|
|
95
|
+
| **marketplace** (str): e.g. ``ES``, ``US``, ``UK``.
|
|
96
|
+
| **recommendationIds** (list): the recommendations to apply.
|
|
97
|
+
| All five come from the opportunity data file.
|
|
98
|
+
|
|
99
|
+
Keyword Args
|
|
100
|
+
|
|
101
|
+
- ``version`` (float): media type version, 1, 1.1 or 1.2. Defaults to 1.
|
|
102
|
+
- ``selector`` (str): ``'manager_account_id'``. [optional]
|
|
103
|
+
|
|
104
|
+
Returns
|
|
105
|
+
ApiResponse, 202 accepted. On 400 or 422 the body names the failures.
|
|
106
|
+
"""
|
|
107
|
+
schema = 'application/vnd.partneropportunity.v' + str(version) + '+json'
|
|
108
|
+
headers = {'Accept': schema, 'Content-Type': schema}
|
|
109
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
110
|
+
return self._request(fill_query_params(kwargs.pop('path'), partnerOpportunityId),
|
|
111
|
+
data=body, params=kwargs, headers=headers)
|
|
112
|
+
|
|
113
|
+
@sp_endpoint('/partnerOpportunities/{}/applicationStatus', method='POST',
|
|
114
|
+
headers=['Amazon-Advertising-API-Manager-Account'])
|
|
115
|
+
def get_application_status(self, partnerOpportunityId, version: float = 1, **kwargs) -> ApiResponse:
|
|
116
|
+
r"""
|
|
117
|
+
Reads the status of recommendations already applied from one
|
|
118
|
+
opportunity.
|
|
119
|
+
|
|
120
|
+
Path Parameters
|
|
121
|
+
|
|
122
|
+
- ``partnerOpportunityId`` (str): the opportunity. [required]
|
|
123
|
+
|
|
124
|
+
Request Body [Required]
|
|
125
|
+
| The same five members as ``apply_opportunity``:
|
|
126
|
+
| **advertiserType**, **encryptedAdvertiserId**, **entityId**,
|
|
127
|
+
| **marketplace** and **recommendationIds**.
|
|
128
|
+
|
|
129
|
+
Keyword Args
|
|
130
|
+
|
|
131
|
+
- ``version`` (float): media type version, 1, 1.1 or 1.2. Defaults to 1.
|
|
132
|
+
- ``selector`` (str): ``'manager_account_id'``. [optional]
|
|
133
|
+
|
|
134
|
+
Returns
|
|
135
|
+
ApiResponse with ``statuses``: each entry has ``campaignId``,
|
|
136
|
+
``recommendationId`` and ``status`` (``FAILED``, ``IN_PROGRESS``,
|
|
137
|
+
``PUBLISHED``, ``REJECTED``, ``SUCCESS``).
|
|
138
|
+
"""
|
|
139
|
+
schema = 'application/vnd.partneropportunity.v' + str(version) + '+json'
|
|
140
|
+
headers = {'Accept': schema, 'Content-Type': schema}
|
|
141
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
142
|
+
return self._request(fill_query_params(kwargs.pop('path'), partnerOpportunityId),
|
|
143
|
+
data=body, params=kwargs, headers=headers)
|
|
144
|
+
|
|
145
|
+
@sp_endpoint('/partnerOpportunities/{}/file', method='GET',
|
|
146
|
+
headers=['Amazon-Advertising-API-Manager-Account'])
|
|
147
|
+
def get_opportunity_file(self, partnerOpportunityId, version: float = 1, **kwargs) -> ApiResponse:
|
|
148
|
+
r"""
|
|
149
|
+
Gets a 307 redirect to the opportunity data file, as CSV. The redirect
|
|
150
|
+
goes to a presigned URL that expires in 15 minutes.
|
|
151
|
+
|
|
152
|
+
Path Parameters
|
|
153
|
+
|
|
154
|
+
- ``partnerOpportunityId`` (str): the opportunity. [required]
|
|
155
|
+
|
|
156
|
+
Keyword Args
|
|
157
|
+
|
|
158
|
+
- ``version`` (float): media type version, 1, 1.1 or 1.2. Defaults to 1.
|
|
159
|
+
- ``fileFormat`` (str): the format asked for. [optional]
|
|
160
|
+
- ``selector`` (str): ``'manager_account_id'``. [optional]
|
|
161
|
+
|
|
162
|
+
Returns
|
|
163
|
+
ApiResponse. The redirect is in the headers; ``dataUrl`` inside an
|
|
164
|
+
opportunity carries the same link.
|
|
165
|
+
"""
|
|
166
|
+
schema = 'application/vnd.partneropportunity.v' + str(version) + '+json'
|
|
167
|
+
headers = {'Accept': schema}
|
|
168
|
+
return self._request(fill_query_params(kwargs.pop('path'), partnerOpportunityId),
|
|
169
|
+
params=kwargs, headers=headers)
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"""Amazon Marketing Stream /streams and /dsp/streams.
|
|
2
|
+
|
|
3
|
+
Contract: Amazon Marketing Stream 3.0. Two branches, the advertiser one under
|
|
4
|
+
``/streams/subscriptions`` and the DSP one under ``/dsp/streams/subscriptions``,
|
|
5
|
+
with the same four operations each.
|
|
6
|
+
|
|
7
|
+
The two branches do not declare the same identity header. The advertiser routes
|
|
8
|
+
take ``Amazon-Ads-AccountId`` and ``Amazon-Advertising-API-Scope``, both
|
|
9
|
+
optional; the DSP routes take ``Amazon-Ads-Account-ID``, with the ``ID`` in
|
|
10
|
+
capitals and required. They are different names, so each branch declares its own.
|
|
11
|
+
|
|
12
|
+
Both branches send and accept
|
|
13
|
+
``application/vnd.amazonmarketingstreamsubscriptions.v<n>+json``. The media type
|
|
14
|
+
is built in the method body from the ``version`` argument, as the Sponsored TV
|
|
15
|
+
module does with ``stCampaign.v<n>``.
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Stream(Client):
|
|
22
|
+
r"""Amazon Marketing Stream - /streams and /dsp/streams
|
|
23
|
+
|
|
24
|
+
Documentation: https://advertising.amazon.com/API/docs/en-us/amazon-marketing-stream/openapi
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
# ------------------------------------------------------------------
|
|
28
|
+
# Stream Subscription
|
|
29
|
+
# ------------------------------------------------------------------
|
|
30
|
+
|
|
31
|
+
@sp_endpoint('/streams/subscriptions', method='POST',
|
|
32
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
33
|
+
def create_subscription(self, version: int = 1, **kwargs) -> ApiResponse:
|
|
34
|
+
r"""
|
|
35
|
+
Requests a new subscription.
|
|
36
|
+
|
|
37
|
+
Request Body [Required]
|
|
38
|
+
| **dataSetId** (str): the data set to subscribe to.
|
|
39
|
+
| **clientRequestToken** (str): caller token to make retries
|
|
40
|
+
| idempotent.
|
|
41
|
+
| **destinationArn** (str): AWS ARN of the destination (SQS, Firehose).
|
|
42
|
+
| **destination** (object): ``{"sqsDestination": {"queueArn": ...}}``
|
|
43
|
+
| or ``{"firehoseDestination": {...}}``.
|
|
44
|
+
| **notes** (str). [optional]
|
|
45
|
+
|
|
46
|
+
Keyword Args
|
|
47
|
+
|
|
48
|
+
- ``version`` (int): media type version. Defaults to 1.
|
|
49
|
+
- ``selector`` (str): ``'account_id'`` or ``'profile_id'``. [optional]
|
|
50
|
+
|
|
51
|
+
Returns
|
|
52
|
+
ApiResponse with ``subscriptionId`` and ``clientRequestToken``.
|
|
53
|
+
"""
|
|
54
|
+
schema = 'application/vnd.amazonmarketingstreamsubscriptions.v' + str(version) + '+json'
|
|
55
|
+
headers = {'Accept': schema, 'Content-Type': schema}
|
|
56
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
57
|
+
return self._request(kwargs.pop('path'), data=body, params=kwargs, headers=headers)
|
|
58
|
+
|
|
59
|
+
@sp_endpoint('/streams/subscriptions/{}', method='PUT',
|
|
60
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
61
|
+
def update_subscription(self, subscription_id: str, version: int = 1, **kwargs) -> ApiResponse:
|
|
62
|
+
r"""
|
|
63
|
+
Updates an existing subscription.
|
|
64
|
+
|
|
65
|
+
Path Parameters
|
|
66
|
+
|
|
67
|
+
- ``subscription_id`` (str): the subscription. [required]
|
|
68
|
+
|
|
69
|
+
Request Body [Optional]
|
|
70
|
+
| **status** (str): the only accepted value is ``ARCHIVED``.
|
|
71
|
+
| **notes** (str).
|
|
72
|
+
|
|
73
|
+
Keyword Args
|
|
74
|
+
|
|
75
|
+
- ``version`` (int): media type version. Defaults to 1.
|
|
76
|
+
- ``selector`` (str): ``'account_id'`` or ``'profile_id'``. [optional]
|
|
77
|
+
|
|
78
|
+
Returns
|
|
79
|
+
ApiResponse
|
|
80
|
+
"""
|
|
81
|
+
schema = 'application/vnd.amazonmarketingstreamsubscriptions.v' + str(version) + '+json'
|
|
82
|
+
headers = {'Accept': schema, 'Content-Type': schema}
|
|
83
|
+
body = Utils.convert_body(kwargs.pop('body', {}), False)
|
|
84
|
+
return self._request(fill_query_params(kwargs.pop('path'), subscription_id),
|
|
85
|
+
data=body, params=kwargs, headers=headers)
|
|
86
|
+
|
|
87
|
+
@sp_endpoint('/streams/subscriptions/{}', method='GET',
|
|
88
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
89
|
+
def get_subscription(self, subscription_id: str, version: int = 1, **kwargs) -> ApiResponse:
|
|
90
|
+
r"""
|
|
91
|
+
Fetches one subscription.
|
|
92
|
+
|
|
93
|
+
Path Parameters
|
|
94
|
+
|
|
95
|
+
- ``subscription_id`` (str): the subscription. [required]
|
|
96
|
+
|
|
97
|
+
Keyword Args
|
|
98
|
+
|
|
99
|
+
- ``version`` (int): media type version. Defaults to 1.
|
|
100
|
+
- ``selector`` (str): ``'account_id'`` or ``'profile_id'``. [optional]
|
|
101
|
+
|
|
102
|
+
Returns
|
|
103
|
+
ApiResponse with the StreamSubscription: ``subscriptionId``,
|
|
104
|
+
``dataSetId``, ``destination``, ``status``, ``createdDate``, ``notes``.
|
|
105
|
+
"""
|
|
106
|
+
schema = 'application/vnd.amazonmarketingstreamsubscriptions.v' + str(version) + '+json'
|
|
107
|
+
headers = {'Accept': schema}
|
|
108
|
+
return self._request(fill_query_params(kwargs.pop('path'), subscription_id),
|
|
109
|
+
params=kwargs, headers=headers)
|
|
110
|
+
|
|
111
|
+
@sp_endpoint('/streams/subscriptions', method='GET',
|
|
112
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
113
|
+
def list_subscriptions(self, version: int = 1, **kwargs) -> ApiResponse:
|
|
114
|
+
r"""
|
|
115
|
+
Lists the subscriptions.
|
|
116
|
+
|
|
117
|
+
Keyword Args
|
|
118
|
+
|
|
119
|
+
- ``version`` (int): media type version. Defaults to 1.
|
|
120
|
+
- ``maxResults`` (int): 1 to 5000. [optional]
|
|
121
|
+
- ``startingToken`` (str): pagination token. [optional]
|
|
122
|
+
- ``selector`` (str): ``'account_id'`` or ``'profile_id'``. [optional]
|
|
123
|
+
|
|
124
|
+
Returns
|
|
125
|
+
ApiResponse with ``subscriptions`` and ``nextToken``.
|
|
126
|
+
"""
|
|
127
|
+
schema = 'application/vnd.amazonmarketingstreamsubscriptions.v' + str(version) + '+json'
|
|
128
|
+
headers = {'Accept': schema}
|
|
129
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=headers)
|
|
130
|
+
|
|
131
|
+
# ------------------------------------------------------------------
|
|
132
|
+
# DSP Stream Subscription
|
|
133
|
+
# ------------------------------------------------------------------
|
|
134
|
+
|
|
135
|
+
@sp_endpoint('/dsp/streams/subscriptions', method='POST',
|
|
136
|
+
headers=['Amazon-Ads-Account-ID'])
|
|
137
|
+
def create_dsp_subscription(self, version: int = 1, **kwargs) -> ApiResponse:
|
|
138
|
+
r"""
|
|
139
|
+
Requests a new DSP subscription.
|
|
140
|
+
|
|
141
|
+
Request Body [Required]
|
|
142
|
+
| **dataSetId** (str): the data set to subscribe to.
|
|
143
|
+
| **clientRequestToken** (str): caller token to make retries
|
|
144
|
+
| idempotent.
|
|
145
|
+
| **destinationArn** (str): AWS ARN of the destination.
|
|
146
|
+
| **destination** (object): SQS or Firehose destination.
|
|
147
|
+
| **notes** (str). [optional]
|
|
148
|
+
|
|
149
|
+
Keyword Args
|
|
150
|
+
|
|
151
|
+
- ``version`` (int): media type version. Defaults to 1.
|
|
152
|
+
|
|
153
|
+
Returns
|
|
154
|
+
ApiResponse with ``subscriptionId`` and ``clientRequestToken``.
|
|
155
|
+
"""
|
|
156
|
+
schema = 'application/vnd.amazonmarketingstreamsubscriptions.v' + str(version) + '+json'
|
|
157
|
+
headers = {'Accept': schema, 'Content-Type': schema}
|
|
158
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
159
|
+
return self._request(kwargs.pop('path'), data=body, params=kwargs, headers=headers)
|
|
160
|
+
|
|
161
|
+
@sp_endpoint('/dsp/streams/subscriptions/{}', method='PUT',
|
|
162
|
+
headers=['Amazon-Ads-Account-ID'])
|
|
163
|
+
def update_dsp_subscription(self, subscription_id: str, version: int = 1, **kwargs) -> ApiResponse:
|
|
164
|
+
r"""
|
|
165
|
+
Updates an existing DSP subscription.
|
|
166
|
+
|
|
167
|
+
Path Parameters
|
|
168
|
+
|
|
169
|
+
- ``subscription_id`` (str): the subscription. [required]
|
|
170
|
+
|
|
171
|
+
Request Body [Optional]
|
|
172
|
+
| **status** (str): ``ARCHIVED``.
|
|
173
|
+
| **notes** (str).
|
|
174
|
+
|
|
175
|
+
Keyword Args
|
|
176
|
+
|
|
177
|
+
- ``version`` (int): media type version. Defaults to 1.
|
|
178
|
+
|
|
179
|
+
Returns
|
|
180
|
+
ApiResponse
|
|
181
|
+
"""
|
|
182
|
+
schema = 'application/vnd.amazonmarketingstreamsubscriptions.v' + str(version) + '+json'
|
|
183
|
+
headers = {'Accept': schema, 'Content-Type': schema}
|
|
184
|
+
body = Utils.convert_body(kwargs.pop('body', {}), False)
|
|
185
|
+
return self._request(fill_query_params(kwargs.pop('path'), subscription_id),
|
|
186
|
+
data=body, params=kwargs, headers=headers)
|
|
187
|
+
|
|
188
|
+
@sp_endpoint('/dsp/streams/subscriptions/{}', method='GET',
|
|
189
|
+
headers=['Amazon-Ads-Account-ID'])
|
|
190
|
+
def get_dsp_subscription(self, subscription_id: str, version: int = 1, **kwargs) -> ApiResponse:
|
|
191
|
+
r"""
|
|
192
|
+
Fetches one DSP subscription.
|
|
193
|
+
|
|
194
|
+
Path Parameters
|
|
195
|
+
|
|
196
|
+
- ``subscription_id`` (str): the subscription. [required]
|
|
197
|
+
|
|
198
|
+
Keyword Args
|
|
199
|
+
|
|
200
|
+
- ``version`` (int): media type version. Defaults to 1.
|
|
201
|
+
|
|
202
|
+
Returns
|
|
203
|
+
ApiResponse with the StreamSubscription.
|
|
204
|
+
"""
|
|
205
|
+
schema = 'application/vnd.amazonmarketingstreamsubscriptions.v' + str(version) + '+json'
|
|
206
|
+
headers = {'Accept': schema}
|
|
207
|
+
return self._request(fill_query_params(kwargs.pop('path'), subscription_id),
|
|
208
|
+
params=kwargs, headers=headers)
|
|
209
|
+
|
|
210
|
+
@sp_endpoint('/dsp/streams/subscriptions', method='GET',
|
|
211
|
+
headers=['Amazon-Ads-Account-ID'])
|
|
212
|
+
def list_dsp_subscriptions(self, version: int = 1, **kwargs) -> ApiResponse:
|
|
213
|
+
r"""
|
|
214
|
+
Lists the DSP subscriptions.
|
|
215
|
+
|
|
216
|
+
Keyword Args
|
|
217
|
+
|
|
218
|
+
- ``version`` (int): media type version. Defaults to 1.
|
|
219
|
+
- ``maxResults`` (int): page size. [optional]
|
|
220
|
+
- ``startingToken`` (str): pagination token. [optional]
|
|
221
|
+
|
|
222
|
+
Returns
|
|
223
|
+
ApiResponse with ``subscriptions`` and ``nextToken``.
|
|
224
|
+
"""
|
|
225
|
+
schema = 'application/vnd.amazonmarketingstreamsubscriptions.v' + str(version) + '+json'
|
|
226
|
+
headers = {'Accept': schema}
|
|
227
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=headers)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.9"
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
|
|
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#tag/Stream-Subscription
|
|
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
|
-
body = Utils.convert_body(kwargs.pop('body'), wrap=False)
|
|
25
|
-
return self._request(kwargs.pop('path'), data=body, params=kwargs)
|
|
26
|
-
|
|
27
|
-
@sp_endpoint('/streams/subscriptions/{}', method='PUT')
|
|
28
|
-
def update_subscription(self, subscription_id: str, **kwargs) -> ApiResponse:
|
|
29
|
-
r"""
|
|
30
|
-
Update an existing subscription
|
|
31
|
-
|
|
32
|
-
Request body
|
|
33
|
-
| **notes** (string): [optional] Additional details associated with the subscription
|
|
34
|
-
| **status** (string): [optional] Update the status of the entity. Supported value: 'ARCHIVED'
|
|
35
|
-
|
|
36
|
-
Returns:
|
|
37
|
-
ApiResponse
|
|
38
|
-
"""
|
|
39
|
-
body = Utils.convert_body(kwargs.pop('body'), wrap=False)
|
|
40
|
-
return self._request(fill_query_params(kwargs.pop('path'), subscription_id), data=body, params=kwargs)
|
|
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)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/advertising_invitations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/advertising_test_account.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/advertising_user_permissions.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
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/marketing_mix_modeling.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/ras_campaign_management.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/ras_retailer_identity.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
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/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
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/keywords_recommendations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/landing_page_asins.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/negative_keywords.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/optimization_rules.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/product_targeting.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/targeting_categories.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sb/targeting_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/bid_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/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-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/product_targeting.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sd/targeting_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/bid_recommendations_v3.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/budget_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/campaign_negative_targets.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/campaigns_budget_usage.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/campaings_optimization.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/global_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/negative_keywords_v3.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/product_recommendations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/product_targeting_v3.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/sp/target_promotion_groups.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/creatives_moderations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/st/creatives_preview.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
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/advertiser_accounts.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/brand_store_editions.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/brand_store_pages.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/label_object_associations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/v1/recommendation_types.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/api/validation_configurations.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/ad_api/auth/access_token_client.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/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
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/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
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.7 → python_amazon_ad_api-2.2.9}/python_amazon_ad_api.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|