python-amazon-ad-api 2.2.4__tar.gz → 2.2.6__tar.gz

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