python-amazon-ad-api 2.4.0__tar.gz → 2.4.2__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.4.0/python_amazon_ad_api.egg-info → python_amazon_ad_api-2.4.2}/PKG-INFO +1 -1
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/__init__.py +6 -0
- python_amazon_ad_api-2.4.2/ad_api/api/dsp_ad_creative_association.py +147 -0
- python_amazon_ad_api-2.4.2/ad_api/api/dsp_quick_actions.py +177 -0
- python_amazon_ad_api-2.4.2/ad_api/api/dsp_seats_management.py +84 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/benchmarks.py +3 -3
- python_amazon_ad_api-2.4.2/ad_api/version.py +1 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2/python_amazon_ad_api.egg-info}/PKG-INFO +1 -1
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/python_amazon_ad_api.egg-info/SOURCES.txt +3 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/setup.cfg +1 -1
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/setup.py +1 -1
- python_amazon_ad_api-2.4.0/ad_api/version.py +0 -1
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/LICENSE +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/README.md +0 -0
- {python_amazon_ad_api-2.4.0/ad_api/shared → python_amazon_ad_api-2.4.2/ad_api}/__init__.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/account.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/account_budgets.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/ad_library.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/ads_data_manager.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/advertising_invitations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/advertising_test_account.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/advertising_user_permissions.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/attribution.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/audiences.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/billing.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/brand_benchmarks.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/brand_home.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/brand_metrics.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/campaign_diagnostics.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/creative_assets.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_ad_group_and_campaign.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_advertiser.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_audience_create.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_bid_adjustments.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_campaign_flights.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_campaign_insights.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_combined_audiences.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_conversion_tracking_products.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_conversions.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_creatives.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_deal_permissions.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_deal_proposals.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_deals.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_deals_management.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_advertised_product_categories.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_apps.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_domain_lists.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_geo_locations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_iab_content.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_inventory_source_exchanges.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_products.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_third_party_target_segments.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_frequency_associations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_frequency_groups.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_frequency_insights.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_guidance.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_inherited_settings.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_inventory_groups.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_measurement.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_seats.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_target_kpi_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_targeting.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/eligibility.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/exports.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/forecast.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/hashed_records.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/historic_reach.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/history.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/insights.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/localization.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/locations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/manager_accounts.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/marketing_mix_modeling.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/metadata.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/moderation.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/partner_opportunities.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/persona_builder.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/plan_management.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/portfolios.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/portfolios_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/pre_moderation.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/profiles.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/ras_campaign_management.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/ras_retailer_identity.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/record_management.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/reports.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/__init__.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/ad_creatives_v4.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/ad_groups.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/ad_groups_v4.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/ads_v4.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/bid_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/brands.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/budget_rules.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/campaigns.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/campaigns_v4.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/forecast.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/keywords.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/keywords_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/landing_page_asins.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/media.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/migration.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/negative_keywords.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/negative_product_targeting.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/optimization_rules.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/product_targeting.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/reports.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/stores.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/targeting_categories.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/targeting_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sb/themes.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/__init__.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/ad_groups.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/bid_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/brand_safety.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/budget_rules.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/campaigns.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/campaigns_budget_usage.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/creatives.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/forecast.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/negative_product_targeting.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/product_ads.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/product_targeting.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/reports.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/snapshots.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sd/targeting_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/__init__.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/ad_groups_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/bid_recommendations_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/budget_initial_recommendation.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/budget_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/budget_rules.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/budget_rules_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/campaign_consolidated_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/campaign_negative_keywords_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/campaign_negative_targets.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/campaigns_budget_usage.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/campaigns_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/campaings_optimization.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/global_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/keyword_groups_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/keywords_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/negative_keywords_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/negative_product_targeting_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/product_ads_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/product_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/product_targeting_v3.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/ranked_keywords_recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/schedule_based_bid_optimization.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/sp/target_promotion_groups.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/__init__.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/ad_groups.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/ads.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/campaigns.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/creatives.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/creatives_moderations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/creatives_preview.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/forecasts.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/locations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/st/targets.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/stores.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/stream.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/targetable_entities.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/__init__.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/ad_associations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/ad_extensions.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/ad_groups.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/ads.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/advertiser_accounts.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/brand_store_edition_publish_versions.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/brand_store_editions.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/brand_store_pages.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/brand_stores.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/campaigns.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/geo_locations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/label_object_associations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/labels.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/location_indexes.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/manager_accounts.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/portfolios.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/recommendation_types.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/recommendations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/reports.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/selling_accounts.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/v1/targets.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/validation_configurations.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/auth/__init__.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/auth/access_token_client.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/auth/access_token_response.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/auth/credentials.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/auth/exceptions.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/base/__init__.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/base/api_response.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/base/client.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/base/config.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/base/credential_provider.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/base/exceptions.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/base/helpers.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/base/marketplaces.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/base/utils.py +0 -0
- {python_amazon_ad_api-2.4.0/ad_api → python_amazon_ad_api-2.4.2/ad_api/shared}/__init__.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/shared/base_client.py +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/pyproject.toml +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/python_amazon_ad_api.egg-info/dependency_links.txt +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/python_amazon_ad_api.egg-info/requires.txt +0 -0
- {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/python_amazon_ad_api.egg-info/top_level.txt +0 -0
|
@@ -60,6 +60,9 @@ from .dsp_ad_group_and_campaign import DspAdGroupAndCampaign
|
|
|
60
60
|
from .dsp_inherited_settings import DspInheritedSettings
|
|
61
61
|
from .dsp_discovery_third_party_target_segments import DspDiscoveryThirdPartyTargetSegments
|
|
62
62
|
from .dsp_seats import DspSeats
|
|
63
|
+
from .dsp_seats_management import DspSeatsManagement
|
|
64
|
+
from .dsp_quick_actions import DspQuickActions
|
|
65
|
+
from .dsp_ad_creative_association import DspAdCreativeAssociation
|
|
63
66
|
from .dsp_audience_create import DspAudienceCreate
|
|
64
67
|
from .dsp_deals_management import DspDealsManagement
|
|
65
68
|
from .dsp_inventory_groups import DspInventoryGroups
|
|
@@ -145,6 +148,9 @@ __all__ = [
|
|
|
145
148
|
"DspInheritedSettings",
|
|
146
149
|
"DspDiscoveryThirdPartyTargetSegments",
|
|
147
150
|
"DspSeats",
|
|
151
|
+
"DspSeatsManagement",
|
|
152
|
+
"DspQuickActions",
|
|
153
|
+
"DspAdCreativeAssociation",
|
|
148
154
|
"DspAudienceCreate",
|
|
149
155
|
"DspDealsManagement",
|
|
150
156
|
"DspInventoryGroups",
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"""DSP ad creative association /dsp/v1/adCreatives/associations/adGroups.
|
|
2
|
+
|
|
3
|
+
Contract: DSP Ad Creative Association API V1 3.0, the second child of
|
|
4
|
+
*Creative management*. Six operations over five paths: the PATCH and the POST
|
|
5
|
+
share one, which is why the vendor tree counts five.
|
|
6
|
+
|
|
7
|
+
**The media types have no version at all.** They are fixed names, and one of them
|
|
8
|
+
carries a typo from the contract itself: ``dspadcreativeassocation...``, with a
|
|
9
|
+
single ``c`` in *association*. It is spelled that way in every route, so it is
|
|
10
|
+
copied verbatim. Do not correct it: the service answers what it answers.
|
|
11
|
+
|
|
12
|
+
The two ``list`` routes use a ``...listeligiblecreatives`` type and a
|
|
13
|
+
``dspcreativeAssociationModeration.v1`` type, the only one here with a version.
|
|
14
|
+
|
|
15
|
+
``Amazon-Advertising-API-ClientId`` and ``Amazon-Ads-AccountId`` are required,
|
|
16
|
+
``Scope`` is optional.
|
|
17
|
+
|
|
18
|
+
207 on the create, the update and the delete; 200 on the three reads.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class DspAdCreativeAssociation(Client):
|
|
25
|
+
r"""DSP ad creative association - /dsp/v1/adCreatives/associations/adGroups
|
|
26
|
+
|
|
27
|
+
Documentation: https://advertising.amazon.com/API/docs/en-us/dsp-ad-creative-association
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
@sp_endpoint('/dsp/v1/adCreatives/associations/adGroups', method='POST',
|
|
31
|
+
headers=['Amazon-Advertising-API-Scope', 'Amazon-Ads-AccountId'])
|
|
32
|
+
def create_associations(self, **kwargs) -> ApiResponse:
|
|
33
|
+
r"""
|
|
34
|
+
Associates creatives with an ad group.
|
|
35
|
+
|
|
36
|
+
Keyword Args
|
|
37
|
+
|
|
38
|
+
- ``selector`` (str): ``profile_id`` or ``account_id``. [optional]
|
|
39
|
+
|
|
40
|
+
Returns
|
|
41
|
+
ApiResponse, **207** multi-status, one per association.
|
|
42
|
+
"""
|
|
43
|
+
media_type = 'application/vnd.dspadcreativeassocationadgroupresource+json'
|
|
44
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
45
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
46
|
+
return self._request(kwargs.pop('path'),
|
|
47
|
+
data=body, params=kwargs, headers=headers)
|
|
48
|
+
|
|
49
|
+
@sp_endpoint('/dsp/v1/adCreatives/associations/adGroups', method='PATCH',
|
|
50
|
+
headers=['Amazon-Advertising-API-Scope', 'Amazon-Ads-AccountId'])
|
|
51
|
+
def update_associations(self, **kwargs) -> ApiResponse:
|
|
52
|
+
r"""
|
|
53
|
+
Updates the associations of an ad group. Same path as the create.
|
|
54
|
+
|
|
55
|
+
Keyword Args
|
|
56
|
+
|
|
57
|
+
- ``selector`` (str): ``profile_id`` or ``account_id``. [optional]
|
|
58
|
+
|
|
59
|
+
Returns
|
|
60
|
+
ApiResponse, **207** multi-status.
|
|
61
|
+
"""
|
|
62
|
+
media_type = 'application/vnd.dspadcreativeassocationadgroupresource+json'
|
|
63
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
64
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
65
|
+
return self._request(kwargs.pop('path'),
|
|
66
|
+
data=body, params=kwargs, headers=headers)
|
|
67
|
+
|
|
68
|
+
@sp_endpoint('/dsp/v1/adCreatives/associations/adGroups/delete', method='POST',
|
|
69
|
+
headers=['Amazon-Advertising-API-Scope', 'Amazon-Ads-AccountId'])
|
|
70
|
+
def delete_associations(self, **kwargs) -> ApiResponse:
|
|
71
|
+
r"""
|
|
72
|
+
Removes associations. A POST with ``/delete``: the list goes in the body.
|
|
73
|
+
|
|
74
|
+
Keyword Args
|
|
75
|
+
|
|
76
|
+
- ``selector`` (str): ``profile_id`` or ``account_id``. [optional]
|
|
77
|
+
|
|
78
|
+
Returns
|
|
79
|
+
ApiResponse, **207** multi-status.
|
|
80
|
+
"""
|
|
81
|
+
media_type = 'application/vnd.dspadcreativeassocationadgroupresource+json'
|
|
82
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
83
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
84
|
+
return self._request(kwargs.pop('path'),
|
|
85
|
+
data=body, params=kwargs, headers=headers)
|
|
86
|
+
|
|
87
|
+
@sp_endpoint('/dsp/v1/adCreatives/associations/adGroups/list', method='POST',
|
|
88
|
+
headers=['Amazon-Advertising-API-Scope', 'Amazon-Ads-AccountId'])
|
|
89
|
+
def list_associations(self, **kwargs) -> ApiResponse:
|
|
90
|
+
r"""
|
|
91
|
+
Lists the creatives associated with an ad group. Read only.
|
|
92
|
+
|
|
93
|
+
Keyword Args
|
|
94
|
+
|
|
95
|
+
- ``selector`` (str): ``profile_id`` or ``account_id``. [optional]
|
|
96
|
+
|
|
97
|
+
Returns
|
|
98
|
+
ApiResponse, ``200``, with the associations.
|
|
99
|
+
"""
|
|
100
|
+
media_type = 'application/vnd.dspadcreativeassocationadgroupresource+json'
|
|
101
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
102
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
103
|
+
return self._request(kwargs.pop('path'),
|
|
104
|
+
data=body, params=kwargs, headers=headers)
|
|
105
|
+
|
|
106
|
+
@sp_endpoint('/dsp/v1/adCreatives/associations/adGroups/eligibleCreatives/list', method='POST',
|
|
107
|
+
headers=['Amazon-Advertising-API-Scope', 'Amazon-Ads-AccountId'])
|
|
108
|
+
def list_eligible_creatives(self, **kwargs) -> ApiResponse:
|
|
109
|
+
r"""
|
|
110
|
+
Lists the creatives that can still be associated with an ad group. Read
|
|
111
|
+
only. Its media type is the only one of the family with a different name.
|
|
112
|
+
|
|
113
|
+
Keyword Args
|
|
114
|
+
|
|
115
|
+
- ``selector`` (str): ``profile_id`` or ``account_id``. [optional]
|
|
116
|
+
|
|
117
|
+
Returns
|
|
118
|
+
ApiResponse, ``200``, with the eligible creatives.
|
|
119
|
+
"""
|
|
120
|
+
media_type = 'application/vnd.dspadcreativeassocationadgrouplisteligiblecreativesresource+json'
|
|
121
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
122
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
123
|
+
return self._request(kwargs.pop('path'),
|
|
124
|
+
data=body, params=kwargs, headers=headers)
|
|
125
|
+
|
|
126
|
+
@sp_endpoint('/dsp/v1/adCreatives/associations/adGroups/moderations/list', method='POST',
|
|
127
|
+
headers=['Amazon-Advertising-API-Scope', 'Amazon-Ads-AccountId'])
|
|
128
|
+
def list_moderations(self, **kwargs) -> ApiResponse:
|
|
129
|
+
r"""
|
|
130
|
+
Lists the moderation status of the creatives on an ad group. Read only.
|
|
131
|
+
|
|
132
|
+
Keyword Args
|
|
133
|
+
|
|
134
|
+
- ``selector`` (str): ``profile_id`` or ``account_id``. [optional]
|
|
135
|
+
|
|
136
|
+
Returns
|
|
137
|
+
ApiResponse, ``200``, with the moderation status.
|
|
138
|
+
|
|
139
|
+
Note
|
|
140
|
+
This is the only route of the family whose media type carries a
|
|
141
|
+
version: ``vnd.dspcreativeAssociationModeration.v1``.
|
|
142
|
+
"""
|
|
143
|
+
media_type = 'application/vnd.dspcreativeAssociationModeration.v1+json'
|
|
144
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
145
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
146
|
+
return self._request(kwargs.pop('path'),
|
|
147
|
+
data=body, params=kwargs, headers=headers)
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"""Quick actions /dsp/v1/quickactions.
|
|
2
|
+
|
|
3
|
+
Contract: DSP Quick Actions 3.0, the *Quick actions* entry at the end of the DSP
|
|
4
|
+
tree. Five operations: create executions in bulk, read them in bulk, execute one
|
|
5
|
+
action, read one execution, and start an execution.
|
|
6
|
+
|
|
7
|
+
**Three required headers here, and two of them are unique in this package:**
|
|
8
|
+
|
|
9
|
+
- ``Amazon-Advertising-API-AdvertiserId``
|
|
10
|
+
- ``Amazon-Advertising-API-MarketplaceId``
|
|
11
|
+
|
|
12
|
+
Neither appears in any other DSP family, so they are **not** in the identity
|
|
13
|
+
header set ``sp_endpoint`` knows: they travel as plain headers that the method
|
|
14
|
+
sets itself, taken from the call. ``ClientId`` is required too;
|
|
15
|
+
``Amazon-Ads-AccountId`` is optional.
|
|
16
|
+
|
|
17
|
+
**The media types pair up by request, and the version is ``1.0``:**
|
|
18
|
+
|
|
19
|
+
- ``vnd.dspbatchcreateexecutionsrequest.v1.0`` -> ``...response.v1``
|
|
20
|
+
- ``vnd.dspbatchgetexecutionsrequest.v1.0`` -> ``...response.v1``
|
|
21
|
+
- ``vnd.dspexecution.v1`` on the three single-execution routes
|
|
22
|
+
|
|
23
|
+
Note the asymmetry: the **request** carries ``v1.0`` and the **answer** carries
|
|
24
|
+
``v1``. Both come from the same ``version`` argument, and the ``.0`` is dropped
|
|
25
|
+
on the answer side.
|
|
26
|
+
|
|
27
|
+
Success codes: **207** on the two batch routes, **201** on the execute, ``200``
|
|
28
|
+
on the read and the start.
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _identity_headers(kwargs):
|
|
35
|
+
"""The advertiser and marketplace headers, which no other DSP route takes."""
|
|
36
|
+
advertiser = kwargs.pop("advertiserId", None)
|
|
37
|
+
marketplace = kwargs.pop("marketplaceId", None)
|
|
38
|
+
if not advertiser or not marketplace:
|
|
39
|
+
raise ValueError(
|
|
40
|
+
"advertiserId and marketplaceId are required: the contract makes "
|
|
41
|
+
"Amazon-Advertising-API-AdvertiserId and "
|
|
42
|
+
"Amazon-Advertising-API-MarketplaceId mandatory on every route "
|
|
43
|
+
"of this family.")
|
|
44
|
+
return {"Amazon-Advertising-API-AdvertiserId": advertiser,
|
|
45
|
+
"Amazon-Advertising-API-MarketplaceId": marketplace}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class DspQuickActions(Client):
|
|
49
|
+
r"""Quick actions - /dsp/v1/quickactions
|
|
50
|
+
|
|
51
|
+
Documentation: https://advertising.amazon.com/API/docs/en-us/dsp-quick-actions
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
@sp_endpoint('/dsp/v1/quickactions/batchCreateExecutions', method='POST',
|
|
55
|
+
headers=['Amazon-Ads-AccountId'])
|
|
56
|
+
def batch_create_executions(self, advertiserId, marketplaceId, version: str = "1.0", **kwargs) -> ApiResponse:
|
|
57
|
+
r"""
|
|
58
|
+
Creates executions in bulk.
|
|
59
|
+
|
|
60
|
+
Keyword Args
|
|
61
|
+
|
|
62
|
+
- ``advertiserId`` (str): goes in ``Amazon-Advertising-API-AdvertiserId``. [required]
|
|
63
|
+
- ``marketplaceId`` (str): goes in ``Amazon-Advertising-API-MarketplaceId``. [required]
|
|
64
|
+
- ``version`` (str): version in the media type, ``1.0``. [optional]
|
|
65
|
+
|
|
66
|
+
Returns
|
|
67
|
+
ApiResponse, **207** multi-status, one per execution.
|
|
68
|
+
"""
|
|
69
|
+
media_type = 'application/vnd.dspbatchcreateexecutionsrequest.v' + version + '+json'
|
|
70
|
+
accept = 'application/vnd.dspbatchcreateexecutionsresponse.v' + version.split('.')[0] + '+json'
|
|
71
|
+
headers = {"Accept": accept, "Content-Type": media_type}
|
|
72
|
+
headers.update(_identity_headers({"advertiserId": advertiserId, "marketplaceId": marketplaceId}))
|
|
73
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
74
|
+
return self._request(kwargs.pop('path'),
|
|
75
|
+
data=body, params=kwargs, headers=headers)
|
|
76
|
+
|
|
77
|
+
@sp_endpoint('/dsp/v1/quickactions/batchGetExecutions', method='POST',
|
|
78
|
+
headers=['Amazon-Ads-AccountId'])
|
|
79
|
+
def batch_get_executions(self, advertiserId, marketplaceId, version: str = "1.0", **kwargs) -> ApiResponse:
|
|
80
|
+
r"""
|
|
81
|
+
Reads executions in bulk.
|
|
82
|
+
|
|
83
|
+
Keyword Args
|
|
84
|
+
|
|
85
|
+
- ``advertiserId`` (str): goes in ``Amazon-Advertising-API-AdvertiserId``. [required]
|
|
86
|
+
- ``marketplaceId`` (str): goes in ``Amazon-Advertising-API-MarketplaceId``. [required]
|
|
87
|
+
- ``version`` (str): version in the media type, ``1.0``. [optional]
|
|
88
|
+
|
|
89
|
+
Returns
|
|
90
|
+
ApiResponse, **207** multi-status.
|
|
91
|
+
"""
|
|
92
|
+
media_type = 'application/vnd.dspbatchgetexecutionsrequest.v' + version + '+json'
|
|
93
|
+
accept = 'application/vnd.dspbatchgetexecutionsresponse.v' + version.split('.')[0] + '+json'
|
|
94
|
+
headers = {"Accept": accept, "Content-Type": media_type}
|
|
95
|
+
headers.update(_identity_headers({"advertiserId": advertiserId, "marketplaceId": marketplaceId}))
|
|
96
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
97
|
+
return self._request(kwargs.pop('path'),
|
|
98
|
+
data=body, params=kwargs, headers=headers)
|
|
99
|
+
|
|
100
|
+
@sp_endpoint('/dsp/v1/quickactions/{}/executions', method='POST',
|
|
101
|
+
headers=['Amazon-Ads-AccountId'])
|
|
102
|
+
def create_execution(self, actionId, advertiserId, marketplaceId, version: str = "1.0", **kwargs) -> ApiResponse:
|
|
103
|
+
r"""
|
|
104
|
+
Executes one quick action.
|
|
105
|
+
|
|
106
|
+
Path Parameters
|
|
107
|
+
|
|
108
|
+
- ``actionId`` (str): the action. [required]
|
|
109
|
+
|
|
110
|
+
Keyword Args
|
|
111
|
+
|
|
112
|
+
- ``advertiserId`` (str): the advertiser header. [required]
|
|
113
|
+
- ``marketplaceId`` (str): the marketplace header. [required]
|
|
114
|
+
- ``preview`` (str): ``preview`` query, run it without applying. [optional]
|
|
115
|
+
- ``version`` (str): version in the media type, ``1.0``. [optional]
|
|
116
|
+
|
|
117
|
+
Returns
|
|
118
|
+
ApiResponse, **201 created**, with the execution.
|
|
119
|
+
"""
|
|
120
|
+
media_type = 'application/vnd.dspexecution.v' + version.split('.')[0] + '+json'
|
|
121
|
+
headers = {"Accept": media_type, "Content-Type": media_type}
|
|
122
|
+
headers.update(_identity_headers({"advertiserId": advertiserId, "marketplaceId": marketplaceId}))
|
|
123
|
+
return self._request(fill_query_params(kwargs.pop('path'), actionId),
|
|
124
|
+
params=kwargs, headers=headers)
|
|
125
|
+
|
|
126
|
+
@sp_endpoint('/dsp/v1/quickactions/{}/executions/{}', method='GET',
|
|
127
|
+
headers=['Amazon-Ads-AccountId'])
|
|
128
|
+
def get_execution(self, actionId, executionId, advertiserId, marketplaceId, version: str = "1.0", **kwargs) -> ApiResponse:
|
|
129
|
+
r"""
|
|
130
|
+
Reads one execution.
|
|
131
|
+
|
|
132
|
+
Path Parameters
|
|
133
|
+
|
|
134
|
+
- ``actionId`` (str): the action. [required]
|
|
135
|
+
- ``executionId`` (str): the execution. [required]
|
|
136
|
+
|
|
137
|
+
Keyword Args
|
|
138
|
+
|
|
139
|
+
- ``advertiserId`` (str): the advertiser header. [required]
|
|
140
|
+
- ``marketplaceId`` (str): the marketplace header. [required]
|
|
141
|
+
- ``version`` (str): version in the media type, ``1.0``. [optional]
|
|
142
|
+
|
|
143
|
+
Returns
|
|
144
|
+
ApiResponse, ``200``, with the execution.
|
|
145
|
+
"""
|
|
146
|
+
media_type = 'application/vnd.dspexecution.v' + version.split('.')[0] + '+json'
|
|
147
|
+
headers = {"Accept": media_type}
|
|
148
|
+
headers.update(_identity_headers({"advertiserId": advertiserId, "marketplaceId": marketplaceId}))
|
|
149
|
+
return self._request(fill_query_params(kwargs.pop('path'), actionId, executionId),
|
|
150
|
+
params=kwargs, headers=headers)
|
|
151
|
+
|
|
152
|
+
@sp_endpoint('/dsp/v1/quickactions/{}/executions/{}/start', method='PUT',
|
|
153
|
+
headers=['Amazon-Ads-AccountId'])
|
|
154
|
+
def start_execution(self, actionId, executionId, advertiserId, marketplaceId, version: str = "1.0", **kwargs) -> ApiResponse:
|
|
155
|
+
r"""
|
|
156
|
+
Starts an execution that was created in preview mode.
|
|
157
|
+
|
|
158
|
+
Path Parameters
|
|
159
|
+
|
|
160
|
+
- ``actionId`` (str): the action. [required]
|
|
161
|
+
- ``executionId`` (str): the execution. [required]
|
|
162
|
+
|
|
163
|
+
Keyword Args
|
|
164
|
+
|
|
165
|
+
- ``advertiserId`` (str): the advertiser header. [required]
|
|
166
|
+
- ``marketplaceId`` (str): the marketplace header. [required]
|
|
167
|
+
- ``omitStepIds``: steps to skip. [optional]
|
|
168
|
+
- ``version`` (str): version in the media type, ``1.0``. [optional]
|
|
169
|
+
|
|
170
|
+
Returns
|
|
171
|
+
ApiResponse, ``200``, with the execution.
|
|
172
|
+
"""
|
|
173
|
+
media_type = 'application/vnd.dspexecution.v' + version.split('.')[0] + '+json'
|
|
174
|
+
headers = {"Accept": media_type}
|
|
175
|
+
headers.update(_identity_headers({"advertiserId": advertiserId, "marketplaceId": marketplaceId}))
|
|
176
|
+
return self._request(fill_query_params(kwargs.pop('path'), actionId, executionId),
|
|
177
|
+
params=kwargs, headers=headers)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""Seats /dsp/v1/seats.
|
|
2
|
+
|
|
3
|
+
Contract: D16GSeatsApiService 3.0, the *Seats* child of the *Seats* section.
|
|
4
|
+
Three routes, plain ``application/json``: create a seat for an advertiser, list
|
|
5
|
+
the current ones, and reconcile.
|
|
6
|
+
|
|
7
|
+
**The reconcile route is the odd one:** ``POST /v1/seats/reconcile``, with no
|
|
8
|
+
``/dsp`` and no headers declared at all. It is the only route in this package
|
|
9
|
+
with an empty parameter list, so it is the only one declared with
|
|
10
|
+
``headers=[]``.
|
|
11
|
+
|
|
12
|
+
``Amazon-Advertising-API-ClientId`` is the only required header on the other
|
|
13
|
+
two; ``Scope`` and ``AccountId`` are optional.
|
|
14
|
+
|
|
15
|
+
Success codes: **202** on the create, which is accepted and processed later, and
|
|
16
|
+
``200`` on the other two.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class DspSeatsManagement(Client):
|
|
23
|
+
r"""Seats - /dsp/v1/seats
|
|
24
|
+
|
|
25
|
+
Documentation: https://advertising.amazon.com/API/docs/en-us/dsp-seats
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
@sp_endpoint('/dsp/v1/seats/advertisers/create', method='POST',
|
|
29
|
+
headers=['Amazon-Advertising-API-Scope', 'Amazon-Ads-AccountId'])
|
|
30
|
+
def create_advertiser_seat(self, **kwargs) -> ApiResponse:
|
|
31
|
+
r"""
|
|
32
|
+
Creates a seat for an advertiser.
|
|
33
|
+
|
|
34
|
+
Keyword Args
|
|
35
|
+
|
|
36
|
+
- ``selector`` (str): ``profile_id`` or ``account_id``. [optional]
|
|
37
|
+
|
|
38
|
+
Returns
|
|
39
|
+
ApiResponse, **202 accepted**: the seat is created asynchronously.
|
|
40
|
+
"""
|
|
41
|
+
headers = {'Accept': 'application/json',
|
|
42
|
+
'Content-Type': 'application/json'}
|
|
43
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
44
|
+
return self._request(kwargs.pop('path'),
|
|
45
|
+
data=body, params=kwargs, headers=headers)
|
|
46
|
+
|
|
47
|
+
@sp_endpoint('/dsp/v1/seats/advertisers/current/list', method='POST',
|
|
48
|
+
headers=['Amazon-Advertising-API-Scope', 'Amazon-Ads-AccountId'])
|
|
49
|
+
def list_current_advertiser_seats(self, **kwargs) -> ApiResponse:
|
|
50
|
+
r"""
|
|
51
|
+
Lists the seats the caller holds right now. Read only, POST because the
|
|
52
|
+
filter goes in the body.
|
|
53
|
+
|
|
54
|
+
Keyword Args
|
|
55
|
+
|
|
56
|
+
- ``selector`` (str): ``profile_id`` or ``account_id``. [optional]
|
|
57
|
+
|
|
58
|
+
Returns
|
|
59
|
+
ApiResponse, ``200``, with the seats.
|
|
60
|
+
"""
|
|
61
|
+
headers = {'Accept': 'application/json',
|
|
62
|
+
'Content-Type': 'application/json'}
|
|
63
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
64
|
+
return self._request(kwargs.pop('path'),
|
|
65
|
+
data=body, params=kwargs, headers=headers)
|
|
66
|
+
|
|
67
|
+
@sp_endpoint('/v1/seats/reconcile', method='POST', headers=[])
|
|
68
|
+
def reconcile_seats(self, **kwargs) -> ApiResponse:
|
|
69
|
+
r"""
|
|
70
|
+
Reconciles the seats of the caller.
|
|
71
|
+
|
|
72
|
+
Returns
|
|
73
|
+
ApiResponse, ``200``.
|
|
74
|
+
|
|
75
|
+
Note
|
|
76
|
+
The contract declares **no parameters at all** for this route: no
|
|
77
|
+
client id, no scope, no account. It is also the only route here
|
|
78
|
+
without ``/dsp`` in the path.
|
|
79
|
+
"""
|
|
80
|
+
headers = {'Accept': 'application/json',
|
|
81
|
+
'Content-Type': 'application/json'}
|
|
82
|
+
body = Utils.convert_body(kwargs.pop('body'), False)
|
|
83
|
+
return self._request(kwargs.pop('path'),
|
|
84
|
+
data=body, params=kwargs, headers=headers)
|
|
@@ -5,7 +5,7 @@ class Benchmarks(Client):
|
|
|
5
5
|
"""
|
|
6
6
|
Use the Amazon Advertising API for Sponsored Brands for campaign, ad group, keyword, negative keyword, drafts, Stores, landing pages, and Brands management operations. For more information about Sponsored Brands, see the Sponsored Brands Support Center. For onboarding information, see the account setup topic.
|
|
7
7
|
"""
|
|
8
|
-
@sp_endpoint('/benchmarks/brands/{}/categories/{}', method='POST')
|
|
8
|
+
@sp_endpoint('/benchmarks/brands/{}/categories/{}', method='POST', headers=['Amazon-Advertising-API-Scope'])
|
|
9
9
|
def list_brand_and_category(self, brandName, categoryId, version: int = 1, **kwargs) -> ApiResponse:
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ class Benchmarks(Client):
|
|
|
18
18
|
return self._request(fill_query_params(kwargs.pop('path'), brandName, categoryId), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
@sp_endpoint('/benchmarks/brands', method='GET')
|
|
21
|
+
@sp_endpoint('/benchmarks/brands', method='GET', headers=['Amazon-Advertising-API-Scope'])
|
|
22
22
|
def list_brands(self, **kwargs) -> ApiResponse:
|
|
23
23
|
"""
|
|
24
24
|
Gets an array of Brand data objects for the Brand associated with the profile ID passed in the header. For more information about Brands, see [Brand Services](https://brandservices.amazon.com/).
|
|
@@ -37,7 +37,7 @@ class Benchmarks(Client):
|
|
|
37
37
|
return self._request(kwargs.pop('path'), params=kwargs)
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
@sp_endpoint('/benchmarks/brandsAndCategories', method='POST')
|
|
40
|
+
@sp_endpoint('/benchmarks/brandsAndCategories', method='POST', headers=['Amazon-Advertising-API-Scope'])
|
|
41
41
|
def list_brands_and_categories(self, version: int = 1, **kwargs) -> ApiResponse:
|
|
42
42
|
"""
|
|
43
43
|
Creates Sponsored Brands campaigns.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.4.2"
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/python_amazon_ad_api.egg-info/SOURCES.txt
RENAMED
|
@@ -21,6 +21,7 @@ ad_api/api/brand_home.py
|
|
|
21
21
|
ad_api/api/brand_metrics.py
|
|
22
22
|
ad_api/api/campaign_diagnostics.py
|
|
23
23
|
ad_api/api/creative_assets.py
|
|
24
|
+
ad_api/api/dsp_ad_creative_association.py
|
|
24
25
|
ad_api/api/dsp_ad_group_and_campaign.py
|
|
25
26
|
ad_api/api/dsp_advertiser.py
|
|
26
27
|
ad_api/api/dsp_audience_create.py
|
|
@@ -50,7 +51,9 @@ ad_api/api/dsp_guidance.py
|
|
|
50
51
|
ad_api/api/dsp_inherited_settings.py
|
|
51
52
|
ad_api/api/dsp_inventory_groups.py
|
|
52
53
|
ad_api/api/dsp_measurement.py
|
|
54
|
+
ad_api/api/dsp_quick_actions.py
|
|
53
55
|
ad_api/api/dsp_seats.py
|
|
56
|
+
ad_api/api/dsp_seats_management.py
|
|
54
57
|
ad_api/api/dsp_target_kpi_recommendations.py
|
|
55
58
|
ad_api/api/dsp_targeting.py
|
|
56
59
|
ad_api/api/eligibility.py
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.4.0"
|
|
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.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/advertising_invitations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/advertising_test_account.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/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
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/campaign_diagnostics.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_ad_group_and_campaign.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_campaign_flights.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_campaign_insights.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_combined_audiences.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_deal_permissions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_deals_management.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_domain_lists.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_geo_locations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_iab_content.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_discovery_products.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_frequency_associations.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_frequency_groups.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_frequency_insights.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_inherited_settings.py
RENAMED
|
File without changes
|
{python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.2}/ad_api/api/dsp_inventory_groups.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|