python-amazon-ad-api 2.4.0__tar.gz → 2.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. {python_amazon_ad_api-2.4.0/python_amazon_ad_api.egg-info → python_amazon_ad_api-2.4.1}/PKG-INFO +1 -1
  2. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/__init__.py +6 -0
  3. python_amazon_ad_api-2.4.1/ad_api/api/dsp_ad_creative_association.py +147 -0
  4. python_amazon_ad_api-2.4.1/ad_api/api/dsp_quick_actions.py +177 -0
  5. python_amazon_ad_api-2.4.1/ad_api/api/dsp_seats_management.py +84 -0
  6. python_amazon_ad_api-2.4.1/ad_api/version.py +1 -0
  7. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1/python_amazon_ad_api.egg-info}/PKG-INFO +1 -1
  8. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/python_amazon_ad_api.egg-info/SOURCES.txt +3 -0
  9. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/setup.cfg +1 -1
  10. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/setup.py +1 -1
  11. python_amazon_ad_api-2.4.0/ad_api/version.py +0 -1
  12. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/LICENSE +0 -0
  13. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/README.md +0 -0
  14. {python_amazon_ad_api-2.4.0/ad_api/shared → python_amazon_ad_api-2.4.1/ad_api}/__init__.py +0 -0
  15. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/account.py +0 -0
  16. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/account_budgets.py +0 -0
  17. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/ad_library.py +0 -0
  18. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/ads_data_manager.py +0 -0
  19. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/advertising_invitations.py +0 -0
  20. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/advertising_test_account.py +0 -0
  21. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/advertising_user_permissions.py +0 -0
  22. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/attribution.py +0 -0
  23. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/audiences.py +0 -0
  24. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/billing.py +0 -0
  25. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/brand_benchmarks.py +0 -0
  26. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/brand_home.py +0 -0
  27. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/brand_metrics.py +0 -0
  28. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/campaign_diagnostics.py +0 -0
  29. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/creative_assets.py +0 -0
  30. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_ad_group_and_campaign.py +0 -0
  31. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_advertiser.py +0 -0
  32. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_audience_create.py +0 -0
  33. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_bid_adjustments.py +0 -0
  34. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_campaign_flights.py +0 -0
  35. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_campaign_insights.py +0 -0
  36. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_combined_audiences.py +0 -0
  37. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_conversion_tracking_products.py +0 -0
  38. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_conversions.py +0 -0
  39. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_creatives.py +0 -0
  40. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_deal_permissions.py +0 -0
  41. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_deal_proposals.py +0 -0
  42. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_deals.py +0 -0
  43. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_deals_management.py +0 -0
  44. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_discovery_advertised_product_categories.py +0 -0
  45. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_discovery_apps.py +0 -0
  46. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_discovery_domain_lists.py +0 -0
  47. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_discovery_geo_locations.py +0 -0
  48. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_discovery_iab_content.py +0 -0
  49. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_discovery_inventory_source_exchanges.py +0 -0
  50. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_discovery_products.py +0 -0
  51. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_discovery_third_party_target_segments.py +0 -0
  52. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_frequency_associations.py +0 -0
  53. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_frequency_groups.py +0 -0
  54. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_frequency_insights.py +0 -0
  55. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_guidance.py +0 -0
  56. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_inherited_settings.py +0 -0
  57. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_inventory_groups.py +0 -0
  58. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_measurement.py +0 -0
  59. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_seats.py +0 -0
  60. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_target_kpi_recommendations.py +0 -0
  61. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/dsp_targeting.py +0 -0
  62. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/eligibility.py +0 -0
  63. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/exports.py +0 -0
  64. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/forecast.py +0 -0
  65. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/hashed_records.py +0 -0
  66. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/historic_reach.py +0 -0
  67. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/history.py +0 -0
  68. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/insights.py +0 -0
  69. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/localization.py +0 -0
  70. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/locations.py +0 -0
  71. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/manager_accounts.py +0 -0
  72. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/marketing_mix_modeling.py +0 -0
  73. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/metadata.py +0 -0
  74. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/moderation.py +0 -0
  75. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/partner_opportunities.py +0 -0
  76. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/persona_builder.py +0 -0
  77. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/plan_management.py +0 -0
  78. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/portfolios.py +0 -0
  79. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/portfolios_v3.py +0 -0
  80. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/pre_moderation.py +0 -0
  81. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/profiles.py +0 -0
  82. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/ras_campaign_management.py +0 -0
  83. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/ras_retailer_identity.py +0 -0
  84. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/recommendations.py +0 -0
  85. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/record_management.py +0 -0
  86. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/reports.py +0 -0
  87. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/__init__.py +0 -0
  88. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/ad_creatives_v4.py +0 -0
  89. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/ad_groups.py +0 -0
  90. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/ad_groups_v4.py +0 -0
  91. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/ads_v4.py +0 -0
  92. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/benchmarks.py +0 -0
  93. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/bid_recommendations.py +0 -0
  94. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/brands.py +0 -0
  95. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/budget_rules.py +0 -0
  96. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/campaigns.py +0 -0
  97. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/campaigns_v4.py +0 -0
  98. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/forecast.py +0 -0
  99. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/keywords.py +0 -0
  100. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/keywords_recommendations.py +0 -0
  101. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/landing_page_asins.py +0 -0
  102. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/media.py +0 -0
  103. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/migration.py +0 -0
  104. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/negative_keywords.py +0 -0
  105. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/negative_product_targeting.py +0 -0
  106. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/optimization_rules.py +0 -0
  107. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/product_targeting.py +0 -0
  108. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/recommendations.py +0 -0
  109. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/reports.py +0 -0
  110. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/stores.py +0 -0
  111. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/targeting_categories.py +0 -0
  112. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/targeting_recommendations.py +0 -0
  113. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sb/themes.py +0 -0
  114. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/__init__.py +0 -0
  115. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/ad_groups.py +0 -0
  116. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/bid_recommendations.py +0 -0
  117. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/brand_safety.py +0 -0
  118. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/budget_rules.py +0 -0
  119. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/campaigns.py +0 -0
  120. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/campaigns_budget_usage.py +0 -0
  121. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/creatives.py +0 -0
  122. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/forecast.py +0 -0
  123. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/negative_product_targeting.py +0 -0
  124. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/product_ads.py +0 -0
  125. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/product_targeting.py +0 -0
  126. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/recommendations.py +0 -0
  127. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/reports.py +0 -0
  128. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/snapshots.py +0 -0
  129. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sd/targeting_recommendations.py +0 -0
  130. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/__init__.py +0 -0
  131. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/ad_groups_v3.py +0 -0
  132. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/bid_recommendations_v3.py +0 -0
  133. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/budget_initial_recommendation.py +0 -0
  134. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/budget_recommendations.py +0 -0
  135. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/budget_rules.py +0 -0
  136. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/budget_rules_recommendations.py +0 -0
  137. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/campaign_consolidated_recommendations.py +0 -0
  138. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/campaign_negative_keywords_v3.py +0 -0
  139. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/campaign_negative_targets.py +0 -0
  140. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/campaigns_budget_usage.py +0 -0
  141. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/campaigns_v3.py +0 -0
  142. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/campaings_optimization.py +0 -0
  143. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/global_recommendations.py +0 -0
  144. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/keyword_groups_recommendations.py +0 -0
  145. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/keywords_v3.py +0 -0
  146. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/negative_keywords_v3.py +0 -0
  147. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/negative_product_targeting_v3.py +0 -0
  148. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/product_ads_v3.py +0 -0
  149. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/product_recommendations.py +0 -0
  150. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/product_targeting_v3.py +0 -0
  151. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/ranked_keywords_recommendations.py +0 -0
  152. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/schedule_based_bid_optimization.py +0 -0
  153. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/sp/target_promotion_groups.py +0 -0
  154. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/__init__.py +0 -0
  155. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/ad_groups.py +0 -0
  156. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/ads.py +0 -0
  157. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/campaigns.py +0 -0
  158. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/creatives.py +0 -0
  159. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/creatives_moderations.py +0 -0
  160. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/creatives_preview.py +0 -0
  161. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/forecasts.py +0 -0
  162. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/locations.py +0 -0
  163. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/st/targets.py +0 -0
  164. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/stores.py +0 -0
  165. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/stream.py +0 -0
  166. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/targetable_entities.py +0 -0
  167. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/__init__.py +0 -0
  168. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/ad_associations.py +0 -0
  169. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/ad_extensions.py +0 -0
  170. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/ad_groups.py +0 -0
  171. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/ads.py +0 -0
  172. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/advertiser_accounts.py +0 -0
  173. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/brand_store_edition_publish_versions.py +0 -0
  174. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/brand_store_editions.py +0 -0
  175. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/brand_store_pages.py +0 -0
  176. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/brand_stores.py +0 -0
  177. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/campaigns.py +0 -0
  178. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/geo_locations.py +0 -0
  179. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/label_object_associations.py +0 -0
  180. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/labels.py +0 -0
  181. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/location_indexes.py +0 -0
  182. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/manager_accounts.py +0 -0
  183. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/portfolios.py +0 -0
  184. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/recommendation_types.py +0 -0
  185. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/recommendations.py +0 -0
  186. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/reports.py +0 -0
  187. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/selling_accounts.py +0 -0
  188. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/v1/targets.py +0 -0
  189. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/api/validation_configurations.py +0 -0
  190. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/auth/__init__.py +0 -0
  191. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/auth/access_token_client.py +0 -0
  192. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/auth/access_token_response.py +0 -0
  193. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/auth/credentials.py +0 -0
  194. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/auth/exceptions.py +0 -0
  195. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/base/__init__.py +0 -0
  196. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/base/api_response.py +0 -0
  197. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/base/client.py +0 -0
  198. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/base/config.py +0 -0
  199. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/base/credential_provider.py +0 -0
  200. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/base/exceptions.py +0 -0
  201. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/base/helpers.py +0 -0
  202. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/base/marketplaces.py +0 -0
  203. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/base/utils.py +0 -0
  204. {python_amazon_ad_api-2.4.0/ad_api → python_amazon_ad_api-2.4.1/ad_api/shared}/__init__.py +0 -0
  205. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/ad_api/shared/base_client.py +0 -0
  206. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/pyproject.toml +0 -0
  207. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/python_amazon_ad_api.egg-info/dependency_links.txt +0 -0
  208. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/python_amazon_ad_api.egg-info/requires.txt +0 -0
  209. {python_amazon_ad_api-2.4.0 → python_amazon_ad_api-2.4.1}/python_amazon_ad_api.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amazon-ad-api
3
- Version: 2.4.0
3
+ Version: 2.4.1
4
4
  Summary: Python wrapper for the Amazon Advertising API
5
5
  Home-page: https://github.com/denisneuf/python-amazon-ad-api
6
6
  Author: Daniel Alvaro
@@ -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)
@@ -0,0 +1 @@
1
+ __version__ = "2.4.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amazon-ad-api
3
- Version: 2.4.0
3
+ Version: 2.4.1
4
4
  Summary: Python wrapper for the Amazon Advertising API
5
5
  Home-page: https://github.com/denisneuf/python-amazon-ad-api
6
6
  Author: Daniel Alvaro
@@ -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,6 +1,6 @@
1
1
  [metadata]
2
2
  name = python-amazon-ad-api
3
- version = 2.4.0
3
+ version = 2.4.1
4
4
  author = Daniel Alvaro
5
5
  author_email = denisneuf@hotmail.com
6
6
  description = Python wrapper for the Amazon Advertising API
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='python-amazon-ad-api',
5
- version='2.4.0',
5
+ version='2.4.1',
6
6
  install_requires=[
7
7
  "requests>=2.27.1,<2.35.0",
8
8
  "six>=1.16,<1.18",
@@ -1 +0,0 @@
1
- __version__ = "2.4.0"