python-amazon-ad-api 2.2.5__tar.gz → 2.2.7__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 (162) hide show
  1. {python_amazon_ad_api-2.2.5/python_amazon_ad_api.egg-info → python_amazon_ad_api-2.2.7}/PKG-INFO +1 -1
  2. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/__init__.py +4 -0
  3. python_amazon_ad_api-2.2.7/ad_api/api/ads_data_manager.py +390 -0
  4. python_amazon_ad_api-2.2.7/ad_api/api/ras_campaign_management.py +533 -0
  5. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/ras_retailer_identity.py +1 -1
  6. python_amazon_ad_api-2.2.7/ad_api/version.py +1 -0
  7. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7/python_amazon_ad_api.egg-info}/PKG-INFO +1 -1
  8. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/python_amazon_ad_api.egg-info/SOURCES.txt +2 -0
  9. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/setup.cfg +1 -1
  10. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/setup.py +1 -1
  11. python_amazon_ad_api-2.2.5/ad_api/version.py +0 -1
  12. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/LICENSE +0 -0
  13. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/README.md +0 -0
  14. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/__init__.py +0 -0
  15. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/account.py +0 -0
  16. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/account_budgets.py +0 -0
  17. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/advertising_invitations.py +0 -0
  18. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/advertising_test_account.py +0 -0
  19. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/advertising_user_permissions.py +0 -0
  20. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/attribution.py +0 -0
  21. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/audiences.py +0 -0
  22. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/billing.py +0 -0
  23. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/brand_benchmarks.py +0 -0
  24. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/brand_home.py +0 -0
  25. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/brand_metrics.py +0 -0
  26. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/creative_assets.py +0 -0
  27. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/dsp_advertiser.py +0 -0
  28. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/eligibility.py +0 -0
  29. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/exports.py +0 -0
  30. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/history.py +0 -0
  31. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/insights.py +0 -0
  32. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/localization.py +0 -0
  33. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/manager_accounts.py +0 -0
  34. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/marketing_mix_modeling.py +0 -0
  35. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/metadata.py +0 -0
  36. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/portfolios.py +0 -0
  37. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/portfolios_v3.py +0 -0
  38. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/profiles.py +0 -0
  39. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/recommendations.py +0 -0
  40. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/reports.py +0 -0
  41. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/__init__.py +0 -0
  42. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/ad_creatives_v4.py +0 -0
  43. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/ad_groups.py +0 -0
  44. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/ad_groups_v4.py +0 -0
  45. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/ads_v4.py +0 -0
  46. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/benchmarks.py +0 -0
  47. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/bid_recommendations.py +0 -0
  48. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/brands.py +0 -0
  49. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/budget_rules.py +0 -0
  50. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/campaigns.py +0 -0
  51. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/campaigns_v4.py +0 -0
  52. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/forecast.py +0 -0
  53. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/keywords.py +0 -0
  54. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/keywords_recommendations.py +0 -0
  55. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/landing_page_asins.py +0 -0
  56. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/media.py +0 -0
  57. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/migration.py +0 -0
  58. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/negative_keywords.py +0 -0
  59. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/negative_product_targeting.py +0 -0
  60. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/optimization_rules.py +0 -0
  61. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/product_targeting.py +0 -0
  62. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/recommendations.py +0 -0
  63. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/reports.py +0 -0
  64. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/stores.py +0 -0
  65. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/targeting_categories.py +0 -0
  66. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/targeting_recommendations.py +0 -0
  67. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sb/themes.py +0 -0
  68. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/__init__.py +0 -0
  69. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/ad_groups.py +0 -0
  70. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/bid_recommendations.py +0 -0
  71. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/brand_safety.py +0 -0
  72. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/budget_rules.py +0 -0
  73. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/campaigns.py +0 -0
  74. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/campaigns_budget_usage.py +0 -0
  75. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/creatives.py +0 -0
  76. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/forecast.py +0 -0
  77. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/negative_product_targeting.py +0 -0
  78. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/product_ads.py +0 -0
  79. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/product_targeting.py +0 -0
  80. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/recommendations.py +0 -0
  81. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/reports.py +0 -0
  82. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/snapshots.py +0 -0
  83. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sd/targeting_recommendations.py +0 -0
  84. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/__init__.py +0 -0
  85. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/ad_groups_v3.py +0 -0
  86. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/bid_recommendations_v3.py +0 -0
  87. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/budget_initial_recommendation.py +0 -0
  88. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/budget_recommendations.py +0 -0
  89. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/budget_rules.py +0 -0
  90. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/budget_rules_recommendations.py +0 -0
  91. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/campaign_consolidated_recommendations.py +0 -0
  92. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/campaign_negative_keywords_v3.py +0 -0
  93. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/campaign_negative_targets.py +0 -0
  94. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/campaigns_budget_usage.py +0 -0
  95. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/campaigns_v3.py +0 -0
  96. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/campaings_optimization.py +0 -0
  97. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/global_recommendations.py +0 -0
  98. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/keyword_groups_recommendations.py +0 -0
  99. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/keywords_v3.py +0 -0
  100. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/negative_keywords_v3.py +0 -0
  101. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/negative_product_targeting_v3.py +0 -0
  102. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/product_ads_v3.py +0 -0
  103. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/product_recommendations.py +0 -0
  104. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/product_targeting_v3.py +0 -0
  105. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/ranked_keywords_recommendations.py +0 -0
  106. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/schedule_based_bid_optimization.py +0 -0
  107. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/sp/target_promotion_groups.py +0 -0
  108. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/__init__.py +0 -0
  109. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/ad_groups.py +0 -0
  110. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/ads.py +0 -0
  111. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/campaigns.py +0 -0
  112. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/creatives.py +0 -0
  113. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/creatives_moderations.py +0 -0
  114. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/creatives_preview.py +0 -0
  115. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/forecasts.py +0 -0
  116. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/locations.py +0 -0
  117. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/st/targets.py +0 -0
  118. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/stores.py +0 -0
  119. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/stream.py +0 -0
  120. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/__init__.py +0 -0
  121. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/ad_associations.py +0 -0
  122. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/ad_extensions.py +0 -0
  123. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/ad_groups.py +0 -0
  124. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/ads.py +0 -0
  125. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/advertiser_accounts.py +0 -0
  126. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/brand_store_edition_publish_versions.py +0 -0
  127. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/brand_store_editions.py +0 -0
  128. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/brand_store_pages.py +0 -0
  129. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/brand_stores.py +0 -0
  130. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/campaigns.py +0 -0
  131. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/geo_locations.py +0 -0
  132. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/label_object_associations.py +0 -0
  133. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/labels.py +0 -0
  134. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/location_indexes.py +0 -0
  135. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/manager_accounts.py +0 -0
  136. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/portfolios.py +0 -0
  137. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/recommendation_types.py +0 -0
  138. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/recommendations.py +0 -0
  139. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/reports.py +0 -0
  140. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/selling_accounts.py +0 -0
  141. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/v1/targets.py +0 -0
  142. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/api/validation_configurations.py +0 -0
  143. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/auth/__init__.py +0 -0
  144. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/auth/access_token_client.py +0 -0
  145. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/auth/access_token_response.py +0 -0
  146. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/auth/credentials.py +0 -0
  147. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/auth/exceptions.py +0 -0
  148. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/base/__init__.py +0 -0
  149. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/base/api_response.py +0 -0
  150. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/base/client.py +0 -0
  151. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/base/config.py +0 -0
  152. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/base/credential_provider.py +0 -0
  153. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/base/exceptions.py +0 -0
  154. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/base/helpers.py +0 -0
  155. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/base/marketplaces.py +0 -0
  156. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/base/utils.py +0 -0
  157. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/shared/__init__.py +0 -0
  158. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/ad_api/shared/base_client.py +0 -0
  159. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/pyproject.toml +0 -0
  160. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/python_amazon_ad_api.egg-info/dependency_links.txt +0 -0
  161. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/python_amazon_ad_api.egg-info/requires.txt +0 -0
  162. {python_amazon_ad_api-2.2.5 → python_amazon_ad_api-2.2.7}/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.5
3
+ Version: 2.2.7
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
@@ -33,6 +33,8 @@ from .exports import Exports
33
33
  from .stores import Stores
34
34
  from .brand_home import BrandHome
35
35
  from .ras_retailer_identity import RasRetailerIdentity
36
+ from .ras_campaign_management import RasCampaignManagement
37
+ from .ads_data_manager import AdsDataManager
36
38
 
37
39
  __all__ = [
38
40
  "v1",
@@ -72,5 +74,7 @@ __all__ = [
72
74
  "Stores",
73
75
  "BrandHome",
74
76
  "RasRetailerIdentity",
77
+ "RasCampaignManagement",
78
+ "AdsDataManager",
75
79
  "Account"
76
80
  ]
@@ -0,0 +1,390 @@
1
+ """Ads Data Manager /adm.
2
+
3
+ Contract: Ads Data Manager 3.0, every route under ``/adm``. The family
4
+ identifies the caller with ``Amazon-Ads-AccountId``, so each route declares
5
+ that header.
6
+
7
+ Three routes carry a vendor media type: the two Datasets ones use
8
+ ``admmetrics.v1`` and the audiences ingest route uses ``admAudiences.v1``.
9
+ Those build the schema in the body of the method, as Sponsored TV does with
10
+ ``stCampaign.v<version>``, and send it as ``Accept`` and ``Content-Type``.
11
+
12
+ The routes that delete a DataSet or an identity, and the one that revokes a
13
+ sharing rule, are final. Nothing in the client calls them on its own.
14
+ """
15
+
16
+ from ad_api.base import Client, sp_endpoint, ApiResponse, Utils, fill_query_params
17
+
18
+
19
+ class AdsDataManager(Client):
20
+ r"""Ads Data Manager - /adm"""
21
+
22
+ # ------------------------------------------------------------------
23
+ # Audiences
24
+ # ------------------------------------------------------------------
25
+
26
+ @sp_endpoint('/adm/audiences', method='GET', headers=['Amazon-Ads-AccountId'])
27
+ def list_audience_datasets(self, **kwargs) -> ApiResponse:
28
+ r"""
29
+ Lists all Audience DataSets. Read only.
30
+
31
+ Keyword Args
32
+
33
+ - ``selector`` (str): ``'account_id'``. [optional]
34
+ - ``nextToken`` (str): pagination token. [optional]
35
+ - ``limit`` (int): page size. [optional]
36
+
37
+ Returns
38
+ ApiResponse with ``dataSets`` and ``nextToken``.
39
+ """
40
+ return self._request(kwargs.pop('path'), params=kwargs)
41
+
42
+ @sp_endpoint('/adm/audiences/{}', method='GET', headers=['Amazon-Ads-AccountId'])
43
+ def get_audience_dataset(self, dataSetId, **kwargs) -> ApiResponse:
44
+ r"""
45
+ Gets one Audience DataSet. Read only.
46
+
47
+ Path Parameters
48
+
49
+ - ``dataSetId`` (str): the DataSet. [required]
50
+
51
+ Keyword Args
52
+
53
+ - ``selector`` (str): ``'account_id'``. [optional]
54
+
55
+ Returns
56
+ ApiResponse with ``dataSetId``, ``name``, ``clientName``,
57
+ ``countryCode``, ``createdBy``, ``dateCreated``, ``dataSetType``,
58
+ ``lastModified``, ``lastModifiedBy``, ``schema``, ``description``,
59
+ ``idRetention``, ``metadata``, ``partitionedBy`` and ``teeEnabled``.
60
+ """
61
+ return self._request(fill_query_params(kwargs.pop('path'), dataSetId), params=kwargs)
62
+
63
+ @sp_endpoint('/adm/audiences', method='POST', headers=['Amazon-Ads-AccountId'])
64
+ def create_audience_dataset(self, **kwargs) -> ApiResponse:
65
+ r"""
66
+ Creates an Audience DataSet. It holds no members until they are ingested.
67
+
68
+ Request Body [Required]
69
+ | **name** (str): the DataSet name.
70
+ | **countryCode** (str): ISO 3166-1 alpha-2.
71
+ | **description** (str). [optional]
72
+ | **idRetention** (bool). [optional]
73
+ | **teeEnabled** (bool). [optional]
74
+
75
+ Keyword Args
76
+
77
+ - ``selector`` (str): ``'account_id'``. [optional]
78
+
79
+ Returns
80
+ ApiResponse with the new ``dataSetId`` and the DataSet as stored.
81
+ """
82
+ body = Utils.convert_body(kwargs.pop('body'), False)
83
+ return self._request(kwargs.pop('path'), data=body, params=kwargs)
84
+
85
+ @sp_endpoint('/adm/audiences/{}/members', method='POST', headers=['Amazon-Ads-AccountId'])
86
+ def ingest_audiences(self, dataSetId, version: int = 1, **kwargs) -> ApiResponse:
87
+ r"""
88
+ Adds or removes members of one Audience DataSet.
89
+
90
+ Path Parameters
91
+
92
+ - ``dataSetId`` (str): the DataSet. [required]
93
+
94
+ Request Body [Required]
95
+ | **members** (list): each entry has **action** (``CREATE`` or
96
+ | ``DELETE``), **externalUserId**, **userIdentity** and an
97
+ | optional **userConsent**.
98
+
99
+ Keyword Args
100
+
101
+ - ``version`` (int): media type version. Defaults to 1.
102
+ - ``selector`` (str): ``'account_id'``. [optional]
103
+
104
+ Returns
105
+ ApiResponse with ``ingressId`` and the rejected ``errors``.
106
+ """
107
+ schema = 'application/vnd.admAudiences.v' + str(version) + '+json'
108
+ headers = {'Accept': schema, 'Content-Type': schema}
109
+ body = Utils.convert_body(kwargs.pop('body'), False)
110
+ return self._request(fill_query_params(kwargs.pop('path'), dataSetId), data=body, params=kwargs, headers=headers)
111
+
112
+ # ------------------------------------------------------------------
113
+ # Terms
114
+ # ------------------------------------------------------------------
115
+
116
+ @sp_endpoint('/adm/terms', method='GET', headers=['Amazon-Ads-AccountId'])
117
+ def get_terms(self, **kwargs) -> ApiResponse:
118
+ r"""
119
+ Gets the Ads Data Manager Terms and Conditions. Read only.
120
+
121
+ Keyword Args
122
+
123
+ - ``selector`` (str): ``'account_id'``. [optional]
124
+
125
+ Returns
126
+ ApiResponse with ``hasAccepted``, the ``agreementToken`` that
127
+ acceptance needs and the ``agreementContent`` as HTML.
128
+ """
129
+ return self._request(kwargs.pop('path'), params=kwargs)
130
+
131
+ @sp_endpoint('/adm/terms', method='PATCH', headers=['Amazon-Ads-AccountId'])
132
+ def set_terms_acceptance(self, **kwargs) -> ApiResponse:
133
+ r"""
134
+ Accepts the Ads Data Manager Terms. This is a legal acceptance on the
135
+ account; nothing calls it for you.
136
+
137
+ Request Body [Required]
138
+ | **agreementToken** (str): from ``get_terms``.
139
+ | **hasAccepted** (bool): true.
140
+
141
+ Keyword Args
142
+
143
+ - ``selector`` (str): ``'account_id'``. [optional]
144
+
145
+ Returns
146
+ ApiResponse, 204 No Content on success.
147
+ """
148
+ body = Utils.convert_body(kwargs.pop('body'), False)
149
+ return self._request(kwargs.pop('path'), data=body, params=kwargs)
150
+
151
+ # ------------------------------------------------------------------
152
+ # Data rooms
153
+ # ------------------------------------------------------------------
154
+
155
+ @sp_endpoint('/adm/datarooms', method='GET', headers=['Amazon-Ads-AccountId'])
156
+ def get_dataroom(self, **kwargs) -> ApiResponse:
157
+ r"""
158
+ Gets the Data room assigned to the account. Read only. Answers 404 while
159
+ the room does not exist.
160
+
161
+ Keyword Args
162
+
163
+ - ``selector`` (str): ``'account_id'``. [optional]
164
+
165
+ Returns
166
+ ApiResponse with ``accountId``, ``assignedToAccountId``,
167
+ ``creationDateTime`` and ``region``.
168
+ """
169
+ return self._request(kwargs.pop('path'), params=kwargs)
170
+
171
+ @sp_endpoint('/adm/datarooms', method='POST', headers=['Amazon-Ads-AccountId'])
172
+ def create_dataroom(self, **kwargs) -> ApiResponse:
173
+ r"""
174
+ Creates the Data room for the account. No body: the service assigns the
175
+ region.
176
+
177
+ Keyword Args
178
+
179
+ - ``selector`` (str): ``'account_id'``. [optional]
180
+
181
+ Returns
182
+ ApiResponse with ``accountId``, ``assignedToAccountId``,
183
+ ``creationDateTime`` and ``region``.
184
+ """
185
+ return self._request(kwargs.pop('path'), params=kwargs)
186
+
187
+ @sp_endpoint('/adm/datarooms/metadata', method='GET', headers=['Amazon-Ads-AccountId'])
188
+ def get_dataroom_metadata(self, **kwargs) -> ApiResponse:
189
+ r"""
190
+ Gets the Data room counters. Read only.
191
+
192
+ Keyword Args
193
+
194
+ - ``selector`` (str): ``'account_id'``. [optional]
195
+
196
+ Returns
197
+ ApiResponse with ``totalDataSets``, ``dataSetsInUse``,
198
+ ``activeDestinations`` and ``linkedAccounts``.
199
+ """
200
+ return self._request(kwargs.pop('path'), params=kwargs)
201
+
202
+ # ------------------------------------------------------------------
203
+ # Datasets
204
+ # ------------------------------------------------------------------
205
+
206
+ @sp_endpoint('/adm/datasets/list', method='POST', headers=['Amazon-Ads-AccountId'])
207
+ def list_dataset_details(self, version: int = 1, **kwargs) -> ApiResponse:
208
+ r"""
209
+ Lists the DataSets registered in the account. Read only.
210
+
211
+ Request Body [Optional]
212
+ | **datasetIds** (list): narrow to these ids.
213
+
214
+ Keyword Args
215
+
216
+ - ``version`` (int): media type version. Defaults to 1.
217
+ - ``search`` (str): free text over the names. [optional]
218
+ - ``order`` (str): sort order. [optional]
219
+ - ``nextToken`` (str): pagination token. [optional]
220
+ - ``maxResults`` (int): page size. [optional]
221
+ - ``selector`` (str): ``'account_id'``. [optional]
222
+
223
+ Returns
224
+ ApiResponse with ``datasets`` and ``nextToken``.
225
+ """
226
+ schema = 'application/vnd.admmetrics.v' + str(version) + '+json'
227
+ headers = {'Accept': schema, 'Content-Type': schema}
228
+ body = Utils.convert_body(kwargs.pop('body', {}), False)
229
+ return self._request(kwargs.pop('path'), data=body, params=kwargs, headers=headers)
230
+
231
+ @sp_endpoint('/adm/datasets/{}', method='DELETE', headers=['Amazon-Ads-AccountId'])
232
+ def delete_dataset(self, dataSetId, **kwargs) -> ApiResponse:
233
+ r"""
234
+ Deletes a DataSet and the data in it. Final; nothing calls it.
235
+
236
+ Path Parameters
237
+
238
+ - ``dataSetId`` (str): the DataSet. [required]
239
+
240
+ Keyword Args
241
+
242
+ - ``selector`` (str): ``'account_id'``. [optional]
243
+
244
+ Returns
245
+ ApiResponse, 204 No Content on success.
246
+ """
247
+ return self._request(fill_query_params(kwargs.pop('path'), dataSetId), params=kwargs)
248
+
249
+ @sp_endpoint('/adm/datasets/{}/metrics', method='GET', headers=['Amazon-Ads-AccountId'])
250
+ def get_dataset_metrics(self, dataSetId, **kwargs) -> ApiResponse:
251
+ r"""
252
+ Gets the counters and the match rate of one DataSet. Read only.
253
+
254
+ Path Parameters
255
+
256
+ - ``dataSetId`` (str): the DataSet. [required]
257
+
258
+ Keyword Args
259
+
260
+ - ``selector`` (str): ``'account_id'``. [optional]
261
+
262
+ Returns
263
+ ApiResponse with ``dataSetId``, ``dataSetType``, ``dataSetSource``,
264
+ ``acceptedCount``, ``invalidRecordCount``, ``matchRecordPercentage``,
265
+ ``dateCreated``, ``lastModified``, ``description``, ``countryCode``
266
+ and ``metadata``.
267
+ """
268
+ return self._request(fill_query_params(kwargs.pop('path'), dataSetId), params=kwargs)
269
+
270
+ @sp_endpoint('/adm/datasets/{}/metrics/aggregates', method='POST', headers=['Amazon-Ads-AccountId'])
271
+ def get_dataset_aggregates(self, dataSetId, version: int = 1, **kwargs) -> ApiResponse:
272
+ r"""
273
+ Gets the time series of one DataSet between two dates. Read only.
274
+
275
+ Path Parameters
276
+
277
+ - ``dataSetId`` (str): the DataSet. [required]
278
+
279
+ Request Body [Required]
280
+ | **startDate** (str): first day, ISO date.
281
+ | **endDate** (str): last day, ISO date.
282
+ | **metrics** (list): ``CONSENTED``, ``RECEIVED``, ``RESOLVED``
283
+ | or ``VALID`. [optional]
284
+
285
+ Keyword Args
286
+
287
+ - ``version`` (int): media type version. Defaults to 1.
288
+ - ``selector`` (str): ``'account_id'``. [optional]
289
+
290
+ Returns
291
+ ApiResponse with ``metrics``, the DatasetTimeSeries.
292
+ """
293
+ schema = 'application/vnd.admmetrics.v' + str(version) + '+json'
294
+ headers = {'Accept': schema, 'Content-Type': schema}
295
+ body = Utils.convert_body(kwargs.pop('body'), False)
296
+ return self._request(fill_query_params(kwargs.pop('path'), dataSetId), data=body, params=kwargs, headers=headers)
297
+
298
+ # ------------------------------------------------------------------
299
+ # Identity Deletion
300
+ # ------------------------------------------------------------------
301
+
302
+ @sp_endpoint('/adm/identities/delete', method='POST', headers=['Amazon-Ads-AccountId'])
303
+ def delete_identities(self, **kwargs) -> ApiResponse:
304
+ r"""
305
+ Deletes end-user identities from the DataSets. Final; nothing calls it.
306
+
307
+ Request Body [Required]
308
+ | **targetIdentities** (list): each entry is ``{"externalUserId": ...}``
309
+ | or ``{"identity": {...}}`` with hashed PII.
310
+
311
+ Keyword Args
312
+
313
+ - ``selector`` (str): ``'account_id'``. [optional]
314
+
315
+ Returns
316
+ ApiResponse with the result of the deletion.
317
+ """
318
+ body = Utils.convert_body(kwargs.pop('body'), False)
319
+ return self._request(kwargs.pop('path'), data=body, params=kwargs)
320
+
321
+ # ------------------------------------------------------------------
322
+ # Sharing Rules
323
+ # ------------------------------------------------------------------
324
+
325
+ @sp_endpoint('/adm/sharingRules', method='POST', headers=['Amazon-Ads-AccountId'])
326
+ def create_sharing_rule(self, **kwargs) -> ApiResponse:
327
+ r"""
328
+ Shares one DataSet with another account or application.
329
+
330
+ Request Body [Required]
331
+ | **application** (str): ``AMAZON_MARKETING_CLOUD``, ``AUDIENCE_HUB``,
332
+ | ``DSP_AUDIENCES``, ``EVENTS_MANAGER``, ``GEO_LOCATIONS`` or
333
+ | ``PG_DEALS``.
334
+ | **dataSetId** (str).
335
+ | **destinationAccountId** (str).
336
+ | **marketplaceId** (str).
337
+ | **metadata** (object): application metadata.
338
+ | **accountEntityId** (str). [optional]
339
+
340
+ Keyword Args
341
+
342
+ - ``selector`` (str): ``'account_id'``. [optional]
343
+
344
+ Returns
345
+ ApiResponse with the ``sharingRuleId``, its ``status`` and the rule.
346
+ """
347
+ body = Utils.convert_body(kwargs.pop('body'), False)
348
+ return self._request(kwargs.pop('path'), data=body, params=kwargs)
349
+
350
+ @sp_endpoint('/adm/sharingRules/list', method='POST', headers=['Amazon-Ads-AccountId'])
351
+ def list_sharing_rules(self, **kwargs) -> ApiResponse:
352
+ r"""
353
+ Lists the sharing rules of the account. Read only.
354
+
355
+ Request Body [Optional]
356
+ | **datasetIds**, **statuses** (lists), **destinationAccountId**,
357
+ | **application**, **activatedAfter**, **activatedBefore**,
358
+ | **nextToken**, **maxResults**.
359
+ | Status values: ``ACTIVE``, ``PENDING``, ``SHADOW``,
360
+ | ``REVOKED_BY_DATASET``, ``REVOKED_BY_SHARING_GRANT``,
361
+ | ``REVOKED_BY_USER``.
362
+
363
+ Keyword Args
364
+
365
+ - ``selector`` (str): ``'account_id'``. [optional]
366
+
367
+ Returns
368
+ ApiResponse with ``sharingRules`` and ``nextToken``.
369
+ """
370
+ body = Utils.convert_body(kwargs.pop('body', {}), False)
371
+ return self._request(kwargs.pop('path'), data=body, params=kwargs)
372
+
373
+ @sp_endpoint('/adm/sharingRules/{}/revoke', method='PATCH', headers=['Amazon-Ads-AccountId'])
374
+ def revoke_sharing_rule(self, sharingRuleId, **kwargs) -> ApiResponse:
375
+ r"""
376
+ Revokes one sharing rule. Final; the DataSet stops being visible to the
377
+ destination.
378
+
379
+ Path Parameters
380
+
381
+ - ``sharingRuleId`` (str): the rule. [required]
382
+
383
+ Keyword Args
384
+
385
+ - ``selector`` (str): ``'account_id'``. [optional]
386
+
387
+ Returns
388
+ ApiResponse, 204 No Content on success.
389
+ """
390
+ return self._request(fill_query_params(kwargs.pop('path'), sharingRuleId), params=kwargs)