python-amazon-ad-api 2.2.5__tar.gz → 2.2.6__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.5/python_amazon_ad_api.egg-info → python_amazon_ad_api-2.2.6}/PKG-INFO +1 -1
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/__init__.py +2 -0
- python_amazon_ad_api-2.2.6/ad_api/api/ras_campaign_management.py +533 -0
- python_amazon_ad_api-2.2.6/ad_api/version.py +1 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6/python_amazon_ad_api.egg-info}/PKG-INFO +1 -1
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/python_amazon_ad_api.egg-info/SOURCES.txt +1 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/setup.cfg +1 -1
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/setup.py +1 -1
- python_amazon_ad_api-2.2.5/ad_api/version.py +0 -1
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/LICENSE +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/README.md +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/__init__.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/account.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/account_budgets.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/advertising_invitations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/advertising_test_account.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/advertising_user_permissions.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/attribution.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/audiences.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/billing.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/brand_benchmarks.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/brand_home.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/brand_metrics.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/creative_assets.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/dsp_advertiser.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/eligibility.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/exports.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/history.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/insights.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/localization.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/manager_accounts.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/marketing_mix_modeling.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/metadata.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/portfolios.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/portfolios_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/profiles.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/ras_retailer_identity.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/reports.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/__init__.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/ad_creatives_v4.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/ad_groups.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/ad_groups_v4.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/ads_v4.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/benchmarks.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/bid_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/brands.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/budget_rules.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/campaigns.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/campaigns_v4.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/forecast.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/keywords.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/keywords_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/landing_page_asins.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/media.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/migration.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/negative_keywords.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/negative_product_targeting.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/optimization_rules.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/product_targeting.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/reports.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/stores.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/targeting_categories.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/targeting_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/themes.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/__init__.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/ad_groups.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/bid_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/brand_safety.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/budget_rules.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/campaigns.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/campaigns_budget_usage.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/creatives.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/forecast.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/negative_product_targeting.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/product_ads.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/product_targeting.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/reports.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/snapshots.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/targeting_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/__init__.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/ad_groups_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/bid_recommendations_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/budget_initial_recommendation.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/budget_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/budget_rules.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/budget_rules_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/campaign_consolidated_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/campaign_negative_keywords_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/campaign_negative_targets.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/campaigns_budget_usage.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/campaigns_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/campaings_optimization.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/global_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/keyword_groups_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/keywords_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/negative_keywords_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/negative_product_targeting_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/product_ads_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/product_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/product_targeting_v3.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/ranked_keywords_recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/schedule_based_bid_optimization.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/target_promotion_groups.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/__init__.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/ad_groups.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/ads.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/campaigns.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/creatives.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/creatives_moderations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/creatives_preview.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/forecasts.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/locations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/targets.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/stores.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/stream.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/__init__.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/ad_associations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/ad_extensions.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/ad_groups.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/ads.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/advertiser_accounts.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/brand_store_edition_publish_versions.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/brand_store_editions.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/brand_store_pages.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/brand_stores.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/campaigns.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/geo_locations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/label_object_associations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/labels.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/location_indexes.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/manager_accounts.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/portfolios.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/recommendation_types.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/recommendations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/reports.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/selling_accounts.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/targets.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/validation_configurations.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/auth/__init__.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/auth/access_token_client.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/auth/access_token_response.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/auth/credentials.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/auth/exceptions.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/base/__init__.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/base/api_response.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/base/client.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/base/config.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/base/credential_provider.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/base/exceptions.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/base/helpers.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/base/marketplaces.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/base/utils.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/shared/__init__.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/shared/base_client.py +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/pyproject.toml +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/python_amazon_ad_api.egg-info/dependency_links.txt +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/python_amazon_ad_api.egg-info/requires.txt +0 -0
- {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/python_amazon_ad_api.egg-info/top_level.txt +0 -0
|
@@ -33,6 +33,7 @@ from .exports import Exports
|
|
|
33
33
|
from .stores import Stores
|
|
34
34
|
from .brand_home import BrandHome
|
|
35
35
|
from .ras_retailer_identity import RasRetailerIdentity
|
|
36
|
+
from .ras_campaign_management import RasCampaignManagement
|
|
36
37
|
|
|
37
38
|
__all__ = [
|
|
38
39
|
"v1",
|
|
@@ -72,5 +73,6 @@ __all__ = [
|
|
|
72
73
|
"Stores",
|
|
73
74
|
"BrandHome",
|
|
74
75
|
"RasRetailerIdentity",
|
|
76
|
+
"RasCampaignManagement",
|
|
75
77
|
"Account"
|
|
76
78
|
]
|
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
from ad_api.base import Client, sp_endpoint, ApiResponse, Utils
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
_HEADERS = {'Accept': 'application/json'}
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class RasCampaignManagement(Client):
|
|
8
|
+
""" """
|
|
9
|
+
|
|
10
|
+
# ------------------------------------------------------------------
|
|
11
|
+
# Campaigns
|
|
12
|
+
# ------------------------------------------------------------------
|
|
13
|
+
|
|
14
|
+
@sp_endpoint('/ras/v1/campaigns/list', method='POST',
|
|
15
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
16
|
+
def list_campaigns(self, **kwargs) -> ApiResponse:
|
|
17
|
+
r"""
|
|
18
|
+
list_campaigns(body: (dict, str) = None) -> ApiResponse
|
|
19
|
+
|
|
20
|
+
Lists campaigns of Retail Ad Service. Read only.
|
|
21
|
+
|
|
22
|
+
Requires one of these permissions: ["advertiser_campaign_edit","advertiser_campaign_view"]
|
|
23
|
+
|
|
24
|
+
Kwargs:
|
|
25
|
+
|
|
26
|
+
**body**: *dict or str* (data) [optional]
|
|
27
|
+
| {
|
|
28
|
+
| "campaignIdFilter": {"include": ["string"]},
|
|
29
|
+
| "nameFilter": {"include": ["string"], "queryTermMatchType": "BROAD_MATCH"},
|
|
30
|
+
| "portfolioIdFilter": {"include": ["string"]},
|
|
31
|
+
| "stateFilter": {"include": ["ENABLED"]},
|
|
32
|
+
| "maxResults": 1000,
|
|
33
|
+
| "nextToken": "string"
|
|
34
|
+
| }
|
|
35
|
+
|
|
36
|
+
No member is required. campaignIdFilter holds up to 1000 ids;
|
|
37
|
+
portfolioIdFilter, nameFilter and the state list up to 100 (states:
|
|
38
|
+
ARCHIVED, ENABLED, PAUSED). maxResults is 1..1000, default 1000.
|
|
39
|
+
|
|
40
|
+
Returns ApiResponse
|
|
41
|
+
|
|
42
|
+
| **campaigns**: *list* 0..1000, each with campaignId, name, state,
|
|
43
|
+
| targetingType, budget {budget, budgetType, effectiveBudget},
|
|
44
|
+
| dynamicBidding, startDate, endDate, portfolioId, tags
|
|
45
|
+
| **nextToken**: *string*
|
|
46
|
+
| **totalResults**: *integer*
|
|
47
|
+
"""
|
|
48
|
+
body = kwargs.pop('body', None)
|
|
49
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
50
|
+
**({'data': Utils.convert_body(body, False)} if body is not None else {}))
|
|
51
|
+
|
|
52
|
+
@sp_endpoint('/ras/v1/campaigns', method='POST',
|
|
53
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
54
|
+
def create_campaigns(self, **kwargs) -> ApiResponse:
|
|
55
|
+
r"""
|
|
56
|
+
create_campaigns(body: (dict, str)) -> ApiResponse
|
|
57
|
+
|
|
58
|
+
Creates up to 1000 campaigns. This changes the account.
|
|
59
|
+
|
|
60
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
61
|
+
|
|
62
|
+
Kwargs:
|
|
63
|
+
|
|
64
|
+
**Prefer**: *string* (header) [optional] 0 responde 207 directo
|
|
65
|
+
|
|
66
|
+
**body**: *dict or str* (data) REQUIRED
|
|
67
|
+
| { "campaigns": [ CampaignInput ] }
|
|
68
|
+
|
|
|
69
|
+
| CampaignInput {
|
|
70
|
+
| "name": "string" [required]
|
|
71
|
+
| "state": "ENABLED" [required] ARCHIVED, ENABLED, PAUSED
|
|
72
|
+
| "targetingType": "AUTO" [required] AUTO, MANUAL
|
|
73
|
+
| "budget": {"budget": 10, "budgetType": "DAILY"} [required]
|
|
74
|
+
| "dynamicBidding": { [required]
|
|
75
|
+
| "strategy": "MANUAL",
|
|
76
|
+
| "placementBidding": [{"placement": "PLACEMENT_TOP", "percentage": 10}]
|
|
77
|
+
| },
|
|
78
|
+
| "startDate": "YYYYMMDD",
|
|
79
|
+
| "endDate": "YYYYMMDD",
|
|
80
|
+
| "portfolioId": "string",
|
|
81
|
+
| "tags": [{"key": "string", "value": "string"}]
|
|
82
|
+
| }
|
|
83
|
+
|
|
84
|
+
Placements: PLACEMENT_BROWSE_OTHER, PLACEMENT_PRODUCT_PAGE,
|
|
85
|
+
PLACEMENT_REST_OF_SEARCH, PLACEMENT_TOP, PLACEMENT_TOP_BROWSE.
|
|
86
|
+
|
|
87
|
+
Returns ApiResponse
|
|
88
|
+
|
|
89
|
+
207 MultiStatus: **success** and **error** lists, one entry per
|
|
90
|
+
campaign with its index. Inspect both before reporting success.
|
|
91
|
+
"""
|
|
92
|
+
body = kwargs.pop('body')
|
|
93
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
94
|
+
data=Utils.convert_body(body, False))
|
|
95
|
+
|
|
96
|
+
@sp_endpoint('/ras/v1/campaigns', method='PUT',
|
|
97
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
98
|
+
def update_campaigns(self, **kwargs) -> ApiResponse:
|
|
99
|
+
r"""
|
|
100
|
+
update_campaigns(body: (dict, str)) -> ApiResponse
|
|
101
|
+
|
|
102
|
+
Updates up to 1000 campaigns. This changes the account.
|
|
103
|
+
|
|
104
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
105
|
+
|
|
106
|
+
Kwargs:
|
|
107
|
+
|
|
108
|
+
**Prefer**: *string* (header) [optional]
|
|
109
|
+
|
|
110
|
+
**body**: *dict or str* (data) REQUIRED
|
|
111
|
+
| { "campaigns": [ CampaignUpdate ] }
|
|
112
|
+
|
|
|
113
|
+
| CampaignUpdate {
|
|
114
|
+
| "campaignId": "string" [required]
|
|
115
|
+
| "name", "state", "startDate", "endDate", "portfolioId",
|
|
116
|
+
| "budget": {"budget": 10, "budgetType": "DAILY"},
|
|
117
|
+
| "dynamicBidding": {"strategy": "MANUAL", "placementBidding": [...]},
|
|
118
|
+
| "tags": [{"key": "string", "value": "string"}]
|
|
119
|
+
| }
|
|
120
|
+
|
|
121
|
+
Only campaignId is required; the rest is the patch.
|
|
122
|
+
|
|
123
|
+
Returns ApiResponse
|
|
124
|
+
207 MultiStatus with **success** and **error** lists.
|
|
125
|
+
"""
|
|
126
|
+
body = kwargs.pop('body')
|
|
127
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
128
|
+
data=Utils.convert_body(body, False))
|
|
129
|
+
|
|
130
|
+
@sp_endpoint('/ras/v1/campaigns/delete', method='POST',
|
|
131
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
132
|
+
def delete_campaigns(self, **kwargs) -> ApiResponse:
|
|
133
|
+
r"""
|
|
134
|
+
delete_campaigns(body: (dict, str)) -> ApiResponse
|
|
135
|
+
|
|
136
|
+
Deletes campaigns. This changes the account.
|
|
137
|
+
|
|
138
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
139
|
+
|
|
140
|
+
Kwargs:
|
|
141
|
+
|
|
142
|
+
**body**: *dict or str* (data) REQUIRED
|
|
143
|
+
| { "campaignIdFilter": {"include": ["string"]} } [required]
|
|
144
|
+
|
|
145
|
+
include holds up to 1000 campaign ids.
|
|
146
|
+
|
|
147
|
+
Returns ApiResponse
|
|
148
|
+
207 MultiStatus with **success** and **error** lists.
|
|
149
|
+
"""
|
|
150
|
+
body = kwargs.pop('body')
|
|
151
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
152
|
+
data=Utils.convert_body(body, False))
|
|
153
|
+
|
|
154
|
+
# ------------------------------------------------------------------
|
|
155
|
+
# Ad groups
|
|
156
|
+
# ------------------------------------------------------------------
|
|
157
|
+
|
|
158
|
+
@sp_endpoint('/ras/v1/adGroups/list', method='POST',
|
|
159
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
160
|
+
def list_ad_groups(self, **kwargs) -> ApiResponse:
|
|
161
|
+
r"""
|
|
162
|
+
list_ad_groups(body: (dict, str) = None) -> ApiResponse
|
|
163
|
+
|
|
164
|
+
Lists ad groups of Retail Ad Service. Read only.
|
|
165
|
+
|
|
166
|
+
Requires one of these permissions: ["advertiser_campaign_edit","advertiser_campaign_view"]
|
|
167
|
+
|
|
168
|
+
Kwargs:
|
|
169
|
+
|
|
170
|
+
**body**: *dict or str* (data) [optional]
|
|
171
|
+
| {
|
|
172
|
+
| "adGroupIdFilter": {"include": ["string"]},
|
|
173
|
+
| "campaignIdFilter": {"include": ["string"]},
|
|
174
|
+
| "nameFilter": {"include": ["string"], "queryTermMatchType": "BROAD_MATCH"},
|
|
175
|
+
| "stateFilter": {"include": ["ENABLED"]},
|
|
176
|
+
| "maxResults": 1000,
|
|
177
|
+
| "nextToken": "string"
|
|
178
|
+
| }
|
|
179
|
+
|
|
180
|
+
Returns ApiResponse
|
|
181
|
+
|
|
182
|
+
| **adGroups**: *list* 0..1000, each with adGroupId, campaignId,
|
|
183
|
+
| name, state, defaultBid, retailerId
|
|
184
|
+
| **nextToken**, **totalResults**
|
|
185
|
+
"""
|
|
186
|
+
body = kwargs.pop('body', None)
|
|
187
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
188
|
+
**({'data': Utils.convert_body(body, False)} if body is not None else {}))
|
|
189
|
+
|
|
190
|
+
@sp_endpoint('/ras/v1/adGroups', method='POST',
|
|
191
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
192
|
+
def create_ad_groups(self, **kwargs) -> ApiResponse:
|
|
193
|
+
r"""
|
|
194
|
+
create_ad_groups(body: (dict, str)) -> ApiResponse
|
|
195
|
+
|
|
196
|
+
Creates up to 1000 ad groups. This changes the account.
|
|
197
|
+
|
|
198
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
199
|
+
|
|
200
|
+
Kwargs:
|
|
201
|
+
|
|
202
|
+
**Prefer**: *string* (header) [optional]
|
|
203
|
+
|
|
204
|
+
**body**: *dict or str* (data) REQUIRED
|
|
205
|
+
| { "adGroups": [ AdGroupInput ] }
|
|
206
|
+
|
|
|
207
|
+
| AdGroupInput {
|
|
208
|
+
| "campaignId": "string" [required]
|
|
209
|
+
| "name": "string" [required]
|
|
210
|
+
| "retailerId": "string" [required]
|
|
211
|
+
| "defaultBid": 1.0 [required]
|
|
212
|
+
| "state": "ENABLED" [required] ARCHIVED, ENABLED, PAUSED
|
|
213
|
+
| }
|
|
214
|
+
|
|
215
|
+
Returns ApiResponse
|
|
216
|
+
207 MultiStatus with **success** and **error** lists.
|
|
217
|
+
"""
|
|
218
|
+
body = kwargs.pop('body')
|
|
219
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
220
|
+
data=Utils.convert_body(body, False))
|
|
221
|
+
|
|
222
|
+
@sp_endpoint('/ras/v1/adGroups', method='PUT',
|
|
223
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
224
|
+
def update_ad_groups(self, **kwargs) -> ApiResponse:
|
|
225
|
+
r"""
|
|
226
|
+
update_ad_groups(body: (dict, str)) -> ApiResponse
|
|
227
|
+
|
|
228
|
+
Updates up to 1000 ad groups. This changes the account.
|
|
229
|
+
|
|
230
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
231
|
+
|
|
232
|
+
Kwargs:
|
|
233
|
+
|
|
234
|
+
**Prefer**: *string* (header) [optional]
|
|
235
|
+
|
|
236
|
+
**body**: *dict or str* (data) REQUIRED
|
|
237
|
+
| { "adGroups": [ AdGroupUpdate ] }
|
|
238
|
+
|
|
|
239
|
+
| AdGroupUpdate {
|
|
240
|
+
| "adGroupId": "string" [required]
|
|
241
|
+
| "name", "state", "defaultBid"
|
|
242
|
+
| }
|
|
243
|
+
|
|
244
|
+
Returns ApiResponse
|
|
245
|
+
207 MultiStatus with **success** and **error** lists.
|
|
246
|
+
"""
|
|
247
|
+
body = kwargs.pop('body')
|
|
248
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
249
|
+
data=Utils.convert_body(body, False))
|
|
250
|
+
|
|
251
|
+
@sp_endpoint('/ras/v1/adGroups/delete', method='POST',
|
|
252
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
253
|
+
def delete_ad_groups(self, **kwargs) -> ApiResponse:
|
|
254
|
+
r"""
|
|
255
|
+
delete_ad_groups(body: (dict, str)) -> ApiResponse
|
|
256
|
+
|
|
257
|
+
Deletes ad groups. This changes the account.
|
|
258
|
+
|
|
259
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
260
|
+
|
|
261
|
+
Kwargs:
|
|
262
|
+
|
|
263
|
+
**body**: *dict or str* (data) REQUIRED
|
|
264
|
+
| { "adGroupIdFilter": {"include": ["string"]} } [required]
|
|
265
|
+
|
|
266
|
+
Returns ApiResponse
|
|
267
|
+
207 MultiStatus with **success** and **error** lists.
|
|
268
|
+
"""
|
|
269
|
+
body = kwargs.pop('body')
|
|
270
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
271
|
+
data=Utils.convert_body(body, False))
|
|
272
|
+
|
|
273
|
+
# ------------------------------------------------------------------
|
|
274
|
+
# Product ads
|
|
275
|
+
# ------------------------------------------------------------------
|
|
276
|
+
|
|
277
|
+
@sp_endpoint('/ras/v1/productAds/list', method='POST',
|
|
278
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
279
|
+
def list_product_ads(self, **kwargs) -> ApiResponse:
|
|
280
|
+
r"""
|
|
281
|
+
list_product_ads(body: (dict, str) = None) -> ApiResponse
|
|
282
|
+
|
|
283
|
+
Lists product ads of Retail Ad Service. Read only.
|
|
284
|
+
|
|
285
|
+
Requires one of these permissions: ["advertiser_campaign_edit","advertiser_campaign_view"]
|
|
286
|
+
|
|
287
|
+
Kwargs:
|
|
288
|
+
|
|
289
|
+
**body**: *dict or str* (data) [optional]
|
|
290
|
+
| {
|
|
291
|
+
| "productAdIdFilter": {"include": ["string"]},
|
|
292
|
+
| "adGroupIdFilter": {"include": ["string"]},
|
|
293
|
+
| "campaignIdFilter": {"include": ["string"]},
|
|
294
|
+
| "stateFilter": {"include": ["ENABLED"]},
|
|
295
|
+
| "maxResults": 1000,
|
|
296
|
+
| "nextToken": "string"
|
|
297
|
+
| }
|
|
298
|
+
|
|
299
|
+
Returns ApiResponse
|
|
300
|
+
|
|
301
|
+
| **productAds**: *list* 0..1000, each with productAdId, adGroupId,
|
|
302
|
+
| campaignId, retailerId, retailerOfferId, state
|
|
303
|
+
| **nextToken**, **totalResults**
|
|
304
|
+
"""
|
|
305
|
+
body = kwargs.pop('body', None)
|
|
306
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
307
|
+
**({'data': Utils.convert_body(body, False)} if body is not None else {}))
|
|
308
|
+
|
|
309
|
+
@sp_endpoint('/ras/v1/productAds', method='POST',
|
|
310
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
311
|
+
def create_product_ads(self, **kwargs) -> ApiResponse:
|
|
312
|
+
r"""
|
|
313
|
+
create_product_ads(body: (dict, str)) -> ApiResponse
|
|
314
|
+
|
|
315
|
+
Creates up to 1000 product ads. This changes the account.
|
|
316
|
+
|
|
317
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
318
|
+
|
|
319
|
+
Kwargs:
|
|
320
|
+
|
|
321
|
+
**Prefer**: *string* (header) [optional]
|
|
322
|
+
|
|
323
|
+
**body**: *dict or str* (data) REQUIRED
|
|
324
|
+
| { "productAds": [ ProductAdInput ] }
|
|
325
|
+
|
|
|
326
|
+
| ProductAdInput {
|
|
327
|
+
| "campaignId": "string" [required]
|
|
328
|
+
| "adGroupId": "string" [required]
|
|
329
|
+
| "retailerId": "string" [required]
|
|
330
|
+
| "retailerOfferId": "string" [required]
|
|
331
|
+
| "state": "ENABLED" [required]
|
|
332
|
+
| }
|
|
333
|
+
|
|
334
|
+
Returns ApiResponse
|
|
335
|
+
207 MultiStatus with **success** and **error** lists.
|
|
336
|
+
"""
|
|
337
|
+
body = kwargs.pop('body')
|
|
338
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
339
|
+
data=Utils.convert_body(body, False))
|
|
340
|
+
|
|
341
|
+
@sp_endpoint('/ras/v1/productAds', method='PUT',
|
|
342
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
343
|
+
def update_product_ads(self, **kwargs) -> ApiResponse:
|
|
344
|
+
r"""
|
|
345
|
+
update_product_ads(body: (dict, str)) -> ApiResponse
|
|
346
|
+
|
|
347
|
+
Updates up to 1000 product ads. This changes the account.
|
|
348
|
+
|
|
349
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
350
|
+
|
|
351
|
+
Kwargs:
|
|
352
|
+
|
|
353
|
+
**Prefer**: *string* (header) [optional]
|
|
354
|
+
|
|
355
|
+
**body**: *dict or str* (data) REQUIRED
|
|
356
|
+
| { "productAds": [ ProductAdUpdate ] }
|
|
357
|
+
|
|
|
358
|
+
| ProductAdUpdate {
|
|
359
|
+
| "productAdId": "string" [required]
|
|
360
|
+
| "state"
|
|
361
|
+
| }
|
|
362
|
+
|
|
363
|
+
Returns ApiResponse
|
|
364
|
+
207 MultiStatus with **success** and **error** lists.
|
|
365
|
+
"""
|
|
366
|
+
body = kwargs.pop('body')
|
|
367
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
368
|
+
data=Utils.convert_body(body, False))
|
|
369
|
+
|
|
370
|
+
@sp_endpoint('/ras/v1/productAds/delete', method='POST',
|
|
371
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
372
|
+
def delete_product_ads(self, **kwargs) -> ApiResponse:
|
|
373
|
+
r"""
|
|
374
|
+
delete_product_ads(body: (dict, str)) -> ApiResponse
|
|
375
|
+
|
|
376
|
+
Deletes product ads. This changes the account.
|
|
377
|
+
|
|
378
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
379
|
+
|
|
380
|
+
Kwargs:
|
|
381
|
+
|
|
382
|
+
**body**: *dict or str* (data) REQUIRED
|
|
383
|
+
| { "productAdIdFilter": {"include": ["string"]} } [required]
|
|
384
|
+
|
|
385
|
+
Returns ApiResponse
|
|
386
|
+
207 MultiStatus with **success** and **error** lists.
|
|
387
|
+
"""
|
|
388
|
+
body = kwargs.pop('body')
|
|
389
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
390
|
+
data=Utils.convert_body(body, False))
|
|
391
|
+
|
|
392
|
+
# ------------------------------------------------------------------
|
|
393
|
+
# Targets
|
|
394
|
+
# ------------------------------------------------------------------
|
|
395
|
+
|
|
396
|
+
@sp_endpoint('/ras/v1/targets/list', method='POST',
|
|
397
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
398
|
+
def list_targets(self, **kwargs) -> ApiResponse:
|
|
399
|
+
r"""
|
|
400
|
+
list_targets(body: (dict, str) = None) -> ApiResponse
|
|
401
|
+
|
|
402
|
+
Lists targets of Retail Ad Service. Read only.
|
|
403
|
+
|
|
404
|
+
Requires one of these permissions: ["advertiser_campaign_edit","advertiser_campaign_view"]
|
|
405
|
+
|
|
406
|
+
Kwargs:
|
|
407
|
+
|
|
408
|
+
**body**: *dict or str* (data) [optional]
|
|
409
|
+
| {
|
|
410
|
+
| "targetIdFilter": {"include": ["string"]},
|
|
411
|
+
| "adGroupIdFilter": {"include": ["string"]},
|
|
412
|
+
| "campaignIdFilter": {"include": ["string"]},
|
|
413
|
+
| "keywordFilter": {"include": ["string"], "queryTermMatchType": "BROAD_MATCH"},
|
|
414
|
+
| "productIdFilter": {"include": ["string"]},
|
|
415
|
+
| "negativeFilter": {"include": [true]},
|
|
416
|
+
| "targetLevelFilter": {"include": ["AD_GROUP"]},
|
|
417
|
+
| "targetTypeFilter": ["KEYWORD"],
|
|
418
|
+
| "matchTypeFilter": ["EXACT"],
|
|
419
|
+
| "stateFilter": {"include": ["ENABLED"]},
|
|
420
|
+
| "maxResults": 1000,
|
|
421
|
+
| "nextToken": "string"
|
|
422
|
+
| }
|
|
423
|
+
|
|
424
|
+
targetType: AUTO, KEYWORD, PRODUCT, PRODUCT_CATEGORY.
|
|
425
|
+
targetLevel: AD_GROUP, CAMPAIGN.
|
|
426
|
+
|
|
427
|
+
Returns ApiResponse
|
|
428
|
+
|
|
429
|
+
| **targets**: *list* 0..1000, each with targetId, campaignId,
|
|
430
|
+
| adGroupId, targetType, targetLevel, targetDetails, negative,
|
|
431
|
+
| bid {bid, currencyCode}, state
|
|
432
|
+
| **nextToken**, **totalResults**
|
|
433
|
+
"""
|
|
434
|
+
body = kwargs.pop('body', None)
|
|
435
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
436
|
+
**({'data': Utils.convert_body(body, False)} if body is not None else {}))
|
|
437
|
+
|
|
438
|
+
@sp_endpoint('/ras/v1/targets', method='POST',
|
|
439
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
440
|
+
def create_targets(self, **kwargs) -> ApiResponse:
|
|
441
|
+
r"""
|
|
442
|
+
create_targets(body: (dict, str)) -> ApiResponse
|
|
443
|
+
|
|
444
|
+
Creates up to 1000 targets. This changes the account.
|
|
445
|
+
|
|
446
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
447
|
+
|
|
448
|
+
Kwargs:
|
|
449
|
+
|
|
450
|
+
**Prefer**: *string* (header) [optional]
|
|
451
|
+
|
|
452
|
+
**body**: *dict or str* (data) REQUIRED
|
|
453
|
+
| { "targets": [ TargetInput ] }
|
|
454
|
+
|
|
|
455
|
+
| TargetInput {
|
|
456
|
+
| "campaignId": "string" [required]
|
|
457
|
+
| "adGroupId": "string",
|
|
458
|
+
| "negative": false [required]
|
|
459
|
+
| "state": "ENABLED" [required]
|
|
460
|
+
| "targetDetails": { [required]
|
|
461
|
+
| "targetType": "KEYWORD", [required] AUTO, KEYWORD, PRODUCT, PRODUCT_CATEGORY
|
|
462
|
+
| "keywordTarget": {"keyword": "string", "matchType": "BROAD"},
|
|
463
|
+
| "autoTarget": {"matchType": "KEYWORDS_CLOSE_MATCH"},
|
|
464
|
+
| "productTarget": {"matchType": "PRODUCT_EXACT",
|
|
465
|
+
| "productId": "string",
|
|
466
|
+
| "productIdType": "RETAILER_OFFER",
|
|
467
|
+
| "retailerId": "string"},
|
|
468
|
+
| "productCategoryTarget": {"productCategoryRefinement": {...}}
|
|
469
|
+
| },
|
|
470
|
+
| "bid": {"bid": 1.0}
|
|
471
|
+
| }
|
|
472
|
+
|
|
473
|
+
Auto match types: KEYWORDS_CLOSE_MATCH, KEYWORDS_LOOSE_MATCH,
|
|
474
|
+
PRODUCT_COMPLEMENTS, PRODUCT_SUBSTITUTES.
|
|
475
|
+
Keyword match types: BROAD, EXACT, PHRASE.
|
|
476
|
+
|
|
477
|
+
Returns ApiResponse
|
|
478
|
+
207 MultiStatus with **success** and **error** lists.
|
|
479
|
+
"""
|
|
480
|
+
body = kwargs.pop('body')
|
|
481
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
482
|
+
data=Utils.convert_body(body, False))
|
|
483
|
+
|
|
484
|
+
@sp_endpoint('/ras/v1/targets', method='PUT',
|
|
485
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
486
|
+
def update_targets(self, **kwargs) -> ApiResponse:
|
|
487
|
+
r"""
|
|
488
|
+
update_targets(body: (dict, str)) -> ApiResponse
|
|
489
|
+
|
|
490
|
+
Updates up to 1000 targets. This changes the account.
|
|
491
|
+
|
|
492
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
493
|
+
|
|
494
|
+
Kwargs:
|
|
495
|
+
|
|
496
|
+
**Prefer**: *string* (header) [optional]
|
|
497
|
+
|
|
498
|
+
**body**: *dict or str* (data) REQUIRED
|
|
499
|
+
| { "targets": [ TargetUpdate ] }
|
|
500
|
+
|
|
|
501
|
+
| TargetUpdate {
|
|
502
|
+
| "targetId": "string" [required]
|
|
503
|
+
| "state", "bid": {"bid": 1.0}
|
|
504
|
+
| }
|
|
505
|
+
|
|
506
|
+
Returns ApiResponse
|
|
507
|
+
207 MultiStatus with **success** and **error** lists.
|
|
508
|
+
"""
|
|
509
|
+
body = kwargs.pop('body')
|
|
510
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
511
|
+
data=Utils.convert_body(body, False))
|
|
512
|
+
|
|
513
|
+
@sp_endpoint('/ras/v1/targets/delete', method='POST',
|
|
514
|
+
headers=['Amazon-Advertising-API-Scope'])
|
|
515
|
+
def delete_targets(self, **kwargs) -> ApiResponse:
|
|
516
|
+
r"""
|
|
517
|
+
delete_targets(body: (dict, str)) -> ApiResponse
|
|
518
|
+
|
|
519
|
+
Deletes targets. This changes the account.
|
|
520
|
+
|
|
521
|
+
Requires one of these permissions: ["advertiser_campaign_edit"]
|
|
522
|
+
|
|
523
|
+
Kwargs:
|
|
524
|
+
|
|
525
|
+
**body**: *dict or str* (data) REQUIRED
|
|
526
|
+
| { "targetIdFilter": {"include": ["string"]} } [required]
|
|
527
|
+
|
|
528
|
+
Returns ApiResponse
|
|
529
|
+
207 MultiStatus with **success** and **error** lists.
|
|
530
|
+
"""
|
|
531
|
+
body = kwargs.pop('body')
|
|
532
|
+
return self._request(kwargs.pop('path'), params=kwargs, headers=_HEADERS,
|
|
533
|
+
data=Utils.convert_body(body, False))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.2.6"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.2.5"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/advertising_invitations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/advertising_test_account.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/keywords_recommendations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/landing_page_asins.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/negative_keywords.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/optimization_rules.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sb/targeting_categories.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sd/targeting_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/bid_recommendations_v3.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/campaign_negative_targets.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/campaigns_budget_usage.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/campaings_optimization.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/global_recommendations.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/negative_keywords_v3.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/product_recommendations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/sp/product_targeting_v3.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/ad_api/api/st/creatives_moderations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/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
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/advertiser_accounts.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/api/v1/brand_store_editions.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/ad_api/api/validation_configurations.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/ad_api/auth/access_token_client.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/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.5 → python_amazon_ad_api-2.2.6}/python_amazon_ad_api.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|