python-amazon-ad-api 2.3.0__tar.gz → 2.3.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 (175) hide show
  1. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/PKG-INFO +1 -1
  2. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/__init__.py +14 -0
  3. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/campaign_diagnostics.py +1 -1
  4. python_amazon_ad_api-2.3.1/ad_api/api/forecast.py +130 -0
  5. python_amazon_ad_api-2.3.1/ad_api/api/hashed_records.py +39 -0
  6. python_amazon_ad_api-2.3.1/ad_api/api/historic_reach.py +148 -0
  7. python_amazon_ad_api-2.3.1/ad_api/api/locations.py +57 -0
  8. python_amazon_ad_api-2.3.1/ad_api/api/plan_management.py +1268 -0
  9. python_amazon_ad_api-2.3.1/ad_api/api/record_management.py +121 -0
  10. python_amazon_ad_api-2.3.1/ad_api/api/targetable_entities.py +89 -0
  11. python_amazon_ad_api-2.3.1/ad_api/version.py +1 -0
  12. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/python_amazon_ad_api.egg-info/PKG-INFO +1 -1
  13. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/python_amazon_ad_api.egg-info/SOURCES.txt +7 -0
  14. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/setup.cfg +1 -1
  15. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/setup.py +1 -1
  16. python_amazon_ad_api-2.3.0/ad_api/version.py +0 -1
  17. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/LICENSE +0 -0
  18. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/README.md +0 -0
  19. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/__init__.py +0 -0
  20. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/account.py +0 -0
  21. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/account_budgets.py +0 -0
  22. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/ad_library.py +0 -0
  23. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/ads_data_manager.py +0 -0
  24. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/advertising_invitations.py +0 -0
  25. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/advertising_test_account.py +0 -0
  26. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/advertising_user_permissions.py +0 -0
  27. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/attribution.py +0 -0
  28. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/audiences.py +0 -0
  29. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/billing.py +0 -0
  30. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/brand_benchmarks.py +0 -0
  31. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/brand_home.py +0 -0
  32. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/brand_metrics.py +0 -0
  33. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/creative_assets.py +0 -0
  34. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/dsp_advertiser.py +0 -0
  35. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/eligibility.py +0 -0
  36. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/exports.py +0 -0
  37. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/history.py +0 -0
  38. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/insights.py +0 -0
  39. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/localization.py +0 -0
  40. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/manager_accounts.py +0 -0
  41. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/marketing_mix_modeling.py +0 -0
  42. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/metadata.py +0 -0
  43. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/moderation.py +0 -0
  44. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/partner_opportunities.py +0 -0
  45. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/persona_builder.py +0 -0
  46. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/portfolios.py +0 -0
  47. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/portfolios_v3.py +0 -0
  48. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/pre_moderation.py +0 -0
  49. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/profiles.py +0 -0
  50. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/ras_campaign_management.py +0 -0
  51. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/ras_retailer_identity.py +0 -0
  52. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/recommendations.py +0 -0
  53. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/reports.py +0 -0
  54. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/__init__.py +0 -0
  55. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/ad_creatives_v4.py +0 -0
  56. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/ad_groups.py +0 -0
  57. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/ad_groups_v4.py +0 -0
  58. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/ads_v4.py +0 -0
  59. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/benchmarks.py +0 -0
  60. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/bid_recommendations.py +0 -0
  61. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/brands.py +0 -0
  62. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/budget_rules.py +0 -0
  63. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/campaigns.py +0 -0
  64. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/campaigns_v4.py +0 -0
  65. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/forecast.py +0 -0
  66. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/keywords.py +0 -0
  67. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/keywords_recommendations.py +0 -0
  68. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/landing_page_asins.py +0 -0
  69. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/media.py +0 -0
  70. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/migration.py +0 -0
  71. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/negative_keywords.py +0 -0
  72. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/negative_product_targeting.py +0 -0
  73. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/optimization_rules.py +0 -0
  74. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/product_targeting.py +0 -0
  75. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/recommendations.py +0 -0
  76. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/reports.py +0 -0
  77. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/stores.py +0 -0
  78. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/targeting_categories.py +0 -0
  79. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/targeting_recommendations.py +0 -0
  80. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sb/themes.py +0 -0
  81. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/__init__.py +0 -0
  82. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/ad_groups.py +0 -0
  83. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/bid_recommendations.py +0 -0
  84. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/brand_safety.py +0 -0
  85. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/budget_rules.py +0 -0
  86. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/campaigns.py +0 -0
  87. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/campaigns_budget_usage.py +0 -0
  88. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/creatives.py +0 -0
  89. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/forecast.py +0 -0
  90. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/negative_product_targeting.py +0 -0
  91. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/product_ads.py +0 -0
  92. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/product_targeting.py +0 -0
  93. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/recommendations.py +0 -0
  94. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/reports.py +0 -0
  95. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/snapshots.py +0 -0
  96. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sd/targeting_recommendations.py +0 -0
  97. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/__init__.py +0 -0
  98. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/ad_groups_v3.py +0 -0
  99. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/bid_recommendations_v3.py +0 -0
  100. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/budget_initial_recommendation.py +0 -0
  101. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/budget_recommendations.py +0 -0
  102. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/budget_rules.py +0 -0
  103. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/budget_rules_recommendations.py +0 -0
  104. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/campaign_consolidated_recommendations.py +0 -0
  105. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/campaign_negative_keywords_v3.py +0 -0
  106. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/campaign_negative_targets.py +0 -0
  107. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/campaigns_budget_usage.py +0 -0
  108. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/campaigns_v3.py +0 -0
  109. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/campaings_optimization.py +0 -0
  110. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/global_recommendations.py +0 -0
  111. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/keyword_groups_recommendations.py +0 -0
  112. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/keywords_v3.py +0 -0
  113. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/negative_keywords_v3.py +0 -0
  114. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/negative_product_targeting_v3.py +0 -0
  115. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/product_ads_v3.py +0 -0
  116. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/product_recommendations.py +0 -0
  117. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/product_targeting_v3.py +0 -0
  118. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/ranked_keywords_recommendations.py +0 -0
  119. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/schedule_based_bid_optimization.py +0 -0
  120. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/sp/target_promotion_groups.py +0 -0
  121. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/__init__.py +0 -0
  122. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/ad_groups.py +0 -0
  123. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/ads.py +0 -0
  124. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/campaigns.py +0 -0
  125. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/creatives.py +0 -0
  126. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/creatives_moderations.py +0 -0
  127. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/creatives_preview.py +0 -0
  128. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/forecasts.py +0 -0
  129. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/locations.py +0 -0
  130. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/st/targets.py +0 -0
  131. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/stores.py +0 -0
  132. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/stream.py +0 -0
  133. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/__init__.py +0 -0
  134. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/ad_associations.py +0 -0
  135. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/ad_extensions.py +0 -0
  136. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/ad_groups.py +0 -0
  137. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/ads.py +0 -0
  138. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/advertiser_accounts.py +0 -0
  139. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/brand_store_edition_publish_versions.py +0 -0
  140. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/brand_store_editions.py +0 -0
  141. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/brand_store_pages.py +0 -0
  142. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/brand_stores.py +0 -0
  143. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/campaigns.py +0 -0
  144. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/geo_locations.py +0 -0
  145. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/label_object_associations.py +0 -0
  146. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/labels.py +0 -0
  147. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/location_indexes.py +0 -0
  148. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/manager_accounts.py +0 -0
  149. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/portfolios.py +0 -0
  150. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/recommendation_types.py +0 -0
  151. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/recommendations.py +0 -0
  152. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/reports.py +0 -0
  153. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/selling_accounts.py +0 -0
  154. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/v1/targets.py +0 -0
  155. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/api/validation_configurations.py +0 -0
  156. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/auth/__init__.py +0 -0
  157. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/auth/access_token_client.py +0 -0
  158. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/auth/access_token_response.py +0 -0
  159. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/auth/credentials.py +0 -0
  160. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/auth/exceptions.py +0 -0
  161. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/base/__init__.py +0 -0
  162. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/base/api_response.py +0 -0
  163. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/base/client.py +0 -0
  164. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/base/config.py +0 -0
  165. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/base/credential_provider.py +0 -0
  166. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/base/exceptions.py +0 -0
  167. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/base/helpers.py +0 -0
  168. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/base/marketplaces.py +0 -0
  169. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/base/utils.py +0 -0
  170. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/shared/__init__.py +0 -0
  171. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/ad_api/shared/base_client.py +0 -0
  172. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/pyproject.toml +0 -0
  173. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/python_amazon_ad_api.egg-info/dependency_links.txt +0 -0
  174. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.1}/python_amazon_ad_api.egg-info/requires.txt +0 -0
  175. {python_amazon_ad_api-2.3.0 → python_amazon_ad_api-2.3.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.3.0
3
+ Version: 2.3.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
@@ -41,6 +41,13 @@ from .campaign_diagnostics import CampaignDiagnostics
41
41
  from .pre_moderation import PreModeration
42
42
  from .moderation import Moderation
43
43
  from .ad_library import AdLibrary
44
+ from .targetable_entities import TargetableEntities
45
+ from .locations import Locations
46
+ from .forecast import Forecast
47
+ from .plan_management import MediaPlan
48
+ from .historic_reach import HistoricReach
49
+ from .record_management import RecordManagement
50
+ from .hashed_records import HashedRecords
44
51
 
45
52
  __all__ = [
46
53
  "v1",
@@ -88,5 +95,12 @@ __all__ = [
88
95
  "PreModeration",
89
96
  "Moderation",
90
97
  "AdLibrary",
98
+ "TargetableEntities",
99
+ "Locations",
100
+ "Forecast",
101
+ "MediaPlan",
102
+ "HistoricReach",
103
+ "RecordManagement",
104
+ "HashedRecords",
91
105
  "Account"
92
106
  ]
@@ -18,7 +18,7 @@ class CampaignDiagnostics(Client):
18
18
 
19
19
  Documentation: https://advertising.amazon.com/API/docs/en-us/campaign-diagnostics
20
20
 
21
- .. deprecated::
21
+ .. deprecated:: 2.3.0
22
22
 
23
23
  Retired on 1 December 2025. New callers cannot onboard since 20 June 2025.
24
24
  """
@@ -0,0 +1,130 @@
1
+ """Reach and performance forecasting /mediaPlan/v1.
2
+
3
+ Contract: Reach Planning Service 3.0. Five ``POST`` routes, plain
4
+ ``application/json`` in body and answer, all of them under ``/mediaPlan/v1``, the
5
+ same prefix *Plan management* uses. It is the second child of *Media Planning*.
6
+
7
+ Three routes create work and answer **207**, not 200: ``reachForecasts``,
8
+ ``deduplicatedReachForecasts`` and ``performanceForecasts``. The other two read:
9
+ ``reachForecasts/list`` and ``reachForecasts/targets/list``.
10
+
11
+ Only ``Amazon-Advertising-API-ClientId`` is marked required in the contract;
12
+ the scope and the account headers are optional there. The scope is what
13
+ identifies the account in practice.
14
+ """
15
+
16
+ from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
17
+
18
+
19
+ class Forecast(Client):
20
+ r"""Forecast - reach and performance forecasting, /mediaPlan/v1
21
+
22
+ Documentation: https://advertising.amazon.com/API/docs/en-us/reach-and-performance-forecasting
23
+ """
24
+
25
+ @sp_endpoint('/mediaPlan/v1/reachForecasts/list', method='POST',
26
+ headers=['Amazon-Advertising-API-Scope'])
27
+ def list_reach_forecasts(self, **kwargs) -> ApiResponse:
28
+ r"""
29
+ Lists the reach forecasts of the account. Read only.
30
+
31
+ Request Body [Required]
32
+ | **reachForecastIds** (list): one to a hundred UUIDs, from a
33
+ | previous create.
34
+
35
+ Request Body [Optional]
36
+ | **maxResults** (int): default 100, from 1 to 100.
37
+ | **nextToken** (str): token from a previous answer.
38
+
39
+ Returns
40
+ ApiResponse with ``reachForecasts`` and ``nextToken``. An account
41
+ without forecasts answers ``200`` with an empty list.
42
+ """
43
+ headers = {'Accept': 'application/json',
44
+ 'Content-Type': 'application/json'}
45
+ body = Utils.convert_body(kwargs.pop('body'), False)
46
+ return self._request(fill_query_params(kwargs.pop('path')),
47
+ data=body, params=kwargs, headers=headers)
48
+
49
+ @sp_endpoint('/mediaPlan/v1/reachForecasts', method='POST',
50
+ headers=['Amazon-Advertising-API-Scope'])
51
+ def create_reach_forecast(self, **kwargs) -> ApiResponse:
52
+ r"""
53
+ Creates one or more reach forecasts. Answers **207**, the multi-status
54
+ code, because each forecast can succeed or fail on its own.
55
+
56
+ Request Body [Required]
57
+ | **reachForecasts** (list): the forecasts to create.
58
+
59
+ Request Body [Optional]
60
+ | **commonTargets** (object): targets shared by every forecast in
61
+ | the request.
62
+
63
+ Returns
64
+ ApiResponse, one entry per forecast.
65
+ """
66
+ headers = {'Accept': 'application/json',
67
+ 'Content-Type': 'application/json'}
68
+ body = Utils.convert_body(kwargs.pop('body'), False)
69
+ return self._request(fill_query_params(kwargs.pop('path')),
70
+ data=body, params=kwargs, headers=headers)
71
+
72
+ @sp_endpoint('/mediaPlan/v1/deduplicatedReachForecasts', method='POST',
73
+ headers=['Amazon-Advertising-API-Scope'])
74
+ def create_deduplicated_reach_forecasts(self, **kwargs) -> ApiResponse:
75
+ r"""
76
+ Creates reach forecasts that account for overlap with each other, so the
77
+ combined reach is not double counted. Answers **207**.
78
+
79
+ Request Body [Required]
80
+ | **deduplicatedReachForecasts** (list): the forecasts to create.
81
+
82
+ Returns
83
+ ApiResponse, one entry per forecast.
84
+ """
85
+ headers = {'Accept': 'application/json',
86
+ 'Content-Type': 'application/json'}
87
+ body = Utils.convert_body(kwargs.pop('body'), False)
88
+ return self._request(fill_query_params(kwargs.pop('path')),
89
+ data=body, params=kwargs, headers=headers)
90
+
91
+ @sp_endpoint('/mediaPlan/v1/performanceForecasts', method='POST',
92
+ headers=['Amazon-Advertising-API-Scope'])
93
+ def generate_performance_forecasts(self, **kwargs) -> ApiResponse:
94
+ r"""
95
+ Generates the performance forecast of a plan: impressions, clicks and
96
+ the rest. Answers **207**.
97
+
98
+ Request Body [Required]
99
+ | **performanceForecasts** (list): what to forecast.
100
+
101
+ Returns
102
+ ApiResponse, one entry per forecast.
103
+ """
104
+ headers = {'Accept': 'application/json',
105
+ 'Content-Type': 'application/json'}
106
+ body = Utils.convert_body(kwargs.pop('body'), False)
107
+ return self._request(fill_query_params(kwargs.pop('path')),
108
+ data=body, params=kwargs, headers=headers)
109
+
110
+ @sp_endpoint('/mediaPlan/v1/reachForecasts/targets/list', method='POST',
111
+ headers=['Amazon-Advertising-API-Scope'])
112
+ def list_reach_forecast_targets(self, **kwargs) -> ApiResponse:
113
+ r"""
114
+ Lists the targets one reach forecast was built from. Read only.
115
+
116
+ Request Body [Required]
117
+ | **reachForecastId** (str): the forecast, a UUID.
118
+
119
+ Request Body [Optional]
120
+ | **maxResults** (int): page size.
121
+ | **nextToken** (str): token from a previous answer.
122
+
123
+ Returns
124
+ ApiResponse with the targets and ``nextToken``.
125
+ """
126
+ headers = {'Accept': 'application/json',
127
+ 'Content-Type': 'application/json'}
128
+ body = Utils.convert_body(kwargs.pop('body'), False)
129
+ return self._request(fill_query_params(kwargs.pop('path')),
130
+ data=body, params=kwargs, headers=headers)
@@ -0,0 +1,39 @@
1
+ """Hashed records /dp/records/hashed.
2
+
3
+ Contract: Hashed Records 3.0, the *Hashed records* child of *Data provider*.
4
+ One route: ``POST /dp/records/hashed``, plain ``application/json``.
5
+
6
+ It takes records whose identifiers are already hashed, so a data provider never
7
+ ships raw cookies or emails to Amazon.
8
+
9
+ Like its sibling, the contract asks for no identity header: only
10
+ ``Authorization``, ``Amazon-Advertising-API-ClientId`` and ``Content-Type``.
11
+ This client is not allowed to call it: the service answers
12
+ ``403 Client is not allowed to call this API``.
13
+ """
14
+
15
+ from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
16
+
17
+
18
+ class HashedRecords(Client):
19
+ r"""Hashed records - /dp/records/hashed
20
+
21
+ Documentation: https://advertising.amazon.com/API/docs/en-us/data-provider/hashed-records
22
+ """
23
+
24
+ @sp_endpoint('/dp/records/hashed', method='POST', headers=[])
25
+ def post_hashed_records(self, **kwargs) -> ApiResponse:
26
+ r"""
27
+ Sends records with hashed identifiers.
28
+
29
+ Request Body [Required]
30
+ The records the contract publishes, with their hashed ids.
31
+
32
+ Returns
33
+ ApiResponse with the outcome. Access denied answers ``403``.
34
+ """
35
+ headers = {'Accept': 'application/json',
36
+ 'Content-Type': 'application/json'}
37
+ body = Utils.convert_body(kwargs.pop('body'), False)
38
+ return self._request(fill_query_params(kwargs.pop('path')),
39
+ data=body, params=kwargs, headers=headers)
@@ -0,0 +1,148 @@
1
+ """Historic reach /mediaPlan/historicalReachCurves and /mediaPlan/v2.
2
+
3
+ Contract: Media Insights Hub 3.0, the *Historic reach* family of *Media
4
+ Planning*. Five ``POST`` and ``GET`` routes across two prefixes: the two ``list``
5
+ routes live under ``/mediaPlan/historicalReachCurves`` and speak
6
+ ``application/vnd.mediaplanhistoricalreachcurves.v1+json``; the report routes
7
+ live under ``/mediaPlan/v2`` and speak plain ``application/json``. Errors come
8
+ as ``application/vnd.error.v1+json`` on the v1 lists.
9
+
10
+ Header: ``Amazon-Advertising-API-ClientId`` is required; the contract lists
11
+ ``Amazon-Ads-AccountId``, the DSP advertiser id, and
12
+ ``Amazon-Advertising-API-Scope`` as optional. Both identity headers are
13
+ declared, so a DSP caller can send the account id and a profile caller the
14
+ scope; ``selector`` picks one.
15
+
16
+ The two ``list`` routes require a ``targeting`` object and, inside it,
17
+ ``geography``. Sending a body without it answers
18
+ ``400 Value null at targeting failed to satisfy constraint``, which reads
19
+ like an access problem and is not one. With it, the route answers ``200``.
20
+ """
21
+
22
+ from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
23
+
24
+
25
+ class HistoricReach(Client):
26
+ r"""Historic reach - /mediaPlan
27
+
28
+ Documentation: https://advertising.amazon.com/API/docs/en-us/historic-reach
29
+ """
30
+
31
+ @sp_endpoint('/mediaPlan/historicalReachCurves/list', method='POST',
32
+ headers=['Amazon-Advertising-API-Scope',
33
+ 'Amazon-Ads-AccountId'])
34
+ def list_historical_reach_curves(self, version: str = "1", **kwargs) -> ApiResponse:
35
+ r"""
36
+ Lists the historic reach curves of the account. Read only.
37
+
38
+ Request Body [Required]
39
+ | **targeting** (dict): at least ``geography``, such as ``ES``.
40
+ | It also takes ``channels``, ``demographics`` and ``reachType``
41
+ | (``INDIVIDUALS`` or ``HOUSEHOLDS``).
42
+
43
+ Request Body [Optional]
44
+ | **month** (str): ``MM/YYYY``. Defaults to the most recent month the
45
+ | geography has.
46
+ | **maxResults** (int): default 1000, from 1 to 1000.
47
+ | **nextToken** (str): token from a previous answer.
48
+
49
+ Keyword Args
50
+
51
+ - ``version`` (str): media type version. Defaults to ``1``. [optional]
52
+
53
+ Returns
54
+ ApiResponse with ``historicalReachCurves`` and ``totalResults``.
55
+ """
56
+ media_type = ('application/vnd.mediaplanhistoricalreachcurves.v'
57
+ + version + '+json')
58
+ headers = {'Accept': media_type, 'Content-Type': media_type}
59
+ body = Utils.convert_body(kwargs.pop('body'), False)
60
+ return self._request(fill_query_params(kwargs.pop('path')),
61
+ data=body, params=kwargs, headers=headers)
62
+
63
+ @sp_endpoint('/mediaPlan/historicalReachCurvesMetadata/list', method='POST',
64
+ headers=['Amazon-Advertising-API-Scope',
65
+ 'Amazon-Ads-AccountId'])
66
+ def list_historical_reach_curve_metadata(self, version: str = "1", **kwargs) -> ApiResponse:
67
+ r"""
68
+ Lists the metadata of the historic reach curves. Read only.
69
+
70
+ Request Body
71
+ The list body the contract publishes for this resource.
72
+
73
+ Keyword Args
74
+
75
+ - ``version`` (str): media type version. Defaults to ``1``. [optional]
76
+
77
+ Returns
78
+ ApiResponse with the metadata.
79
+ """
80
+ media_type = ('application/vnd.mediaplanhistoricalreachcurves.v'
81
+ + version + '+json')
82
+ headers = {'Accept': media_type, 'Content-Type': media_type}
83
+ body = Utils.convert_body(kwargs.pop('body'), False)
84
+ return self._request(fill_query_params(kwargs.pop('path')),
85
+ data=body, params=kwargs, headers=headers)
86
+
87
+ @sp_endpoint('/mediaPlan/v2/historicalReachCurves', method='POST',
88
+ headers=['Amazon-Advertising-API-Scope',
89
+ 'Amazon-Ads-AccountId'])
90
+ def create_historical_reach_curve_report(self, **kwargs) -> ApiResponse:
91
+ r"""
92
+ Asks for a historic reach curve report. It is asynchronous: the answer
93
+ carries a ``reportId`` and its state is read with
94
+ ``get_historical_reach_curve_report_status``.
95
+
96
+ Request Body [Required]
97
+ The report body the contract publishes.
98
+
99
+ Returns
100
+ ApiResponse with the created report.
101
+ """
102
+ headers = {'Accept': 'application/json',
103
+ 'Content-Type': 'application/json'}
104
+ body = Utils.convert_body(kwargs.pop('body'), False)
105
+ return self._request(fill_query_params(kwargs.pop('path')),
106
+ data=body, params=kwargs, headers=headers)
107
+
108
+ @sp_endpoint('/mediaPlan/v2/historicalReachCurves/{}', method='GET',
109
+ headers=['Amazon-Advertising-API-Scope',
110
+ 'Amazon-Ads-AccountId'])
111
+ def get_historical_reach_curve_report(self, reportId, **kwargs) -> ApiResponse:
112
+ r"""
113
+ Reads a historic reach curve report. Read only.
114
+
115
+ Path Parameters
116
+
117
+ - ``reportId`` (str): the report. [required]
118
+
119
+ Keyword Args
120
+
121
+ - ``maxResults`` (int): page size. [optional]
122
+ - ``nextToken`` (str): token from a previous answer. [optional]
123
+
124
+ Returns
125
+ ApiResponse with the report rows.
126
+ """
127
+ headers = {'Accept': 'application/json'}
128
+ return self._request(fill_query_params(kwargs.pop('path'), reportId),
129
+ params=kwargs, headers=headers)
130
+
131
+ @sp_endpoint('/mediaPlan/v2/historicalReachCurves/{}/status', method='GET',
132
+ headers=['Amazon-Advertising-API-Scope',
133
+ 'Amazon-Ads-AccountId'])
134
+ def get_historical_reach_curve_report_status(self, reportId, **kwargs) -> ApiResponse:
135
+ r"""
136
+ Reads the state of a report: whether it is still being built or ready to
137
+ be fetched. Read only.
138
+
139
+ Path Parameters
140
+
141
+ - ``reportId`` (str): the report. [required]
142
+
143
+ Returns
144
+ ApiResponse with the status.
145
+ """
146
+ headers = {'Accept': 'application/json'}
147
+ return self._request(fill_query_params(kwargs.pop('path'), reportId),
148
+ params=kwargs, headers=headers)
@@ -0,0 +1,57 @@
1
+ """Locations /locations/list.
2
+
3
+ Contract: Locations 3.0. One ``POST`` route, plain ``application/json`` in the
4
+ body and in the answer, so there is no media type version to build here. It is
5
+ the second child of *Discovery*, next to *Targetable entities*.
6
+
7
+ **US only, and that is two things at once.** The route lives in the NA
8
+ partition, so a US profile must go to ``advertising-api.amazon.com``: sent to
9
+ the EU host it answers ``400 Profile not found``. And even in the right
10
+ partition an EU profile, which is legitimate on the EU host, gets ``200`` with
11
+ ``{"locations": []}``: the route only carries data for the United States.
12
+ """
13
+
14
+ from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Utils
15
+
16
+
17
+ class Locations(Client):
18
+ r"""Locations - /locations/list
19
+
20
+ Documentation: https://advertising.amazon.com/API/docs/en-us/locations
21
+ """
22
+
23
+ @sp_endpoint('/locations/list', method='POST',
24
+ headers=['Amazon-Advertising-API-Scope'])
25
+ def list_locations(self, **kwargs) -> ApiResponse:
26
+ r"""
27
+ Lists the locations that match the filters given. Read only.
28
+
29
+ Request Body [Required in practice]
30
+ | **filters** (list): at least one filter. The contract does not
31
+ | mark it required, but sending a body without it answers
32
+ | ``400 Value null at ``filters`` failed to satisfy constraint``.
33
+
34
+ Each filter takes ``field`` and ``values``:
35
+
36
+ - ``field`` (str): ``locationId``, ``name`` or ``category``.
37
+ - ``values`` (list): the values to match. The ``name`` field is a
38
+ fuzzy search; for ``category`` the values are ``CITY``, ``STATE``,
39
+ ``DMA``, ``COUNTRY`` or ``POSTAL_CODE``.
40
+
41
+ The filters combine with AND: an item must match all of them.
42
+
43
+ Returns
44
+ ApiResponse with ``locations``, a list of items carrying
45
+ ``locationId``, ``name`` and ``category``. There is no pagination
46
+ in the answer.
47
+
48
+ **US only.** A US profile answers on the NA host; on the EU host it is
49
+ ``400 Profile not found``. An EU profile on its own host answers ``200``
50
+ with ``locations: []``, because the route only carries data for the
51
+ United States.
52
+ """
53
+ headers = {'Accept': 'application/json',
54
+ 'Content-Type': 'application/json'}
55
+ body = Utils.convert_body(kwargs.pop('body'), False)
56
+ return self._request(fill_query_params(kwargs.pop('path')),
57
+ data=body, params=kwargs, headers=headers)