python-amazon-ad-api 2.2.0__tar.gz → 2.2.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 (148) hide show
  1. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/PKG-INFO +1 -1
  2. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/attribution.py +5 -5
  3. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/audiences.py +2 -2
  4. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/brand_metrics.py +2 -2
  5. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/exports.py +5 -5
  6. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/insights.py +1 -1
  7. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/metadata.py +1 -1
  8. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/portfolios_v3.py +4 -4
  9. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/recommendations.py +3 -3
  10. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/reports.py +18 -3
  11. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/validation_configurations.py +2 -2
  12. python_amazon_ad_api-2.2.1/ad_api/version.py +1 -0
  13. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/python_amazon_ad_api.egg-info/PKG-INFO +1 -1
  14. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/setup.cfg +1 -1
  15. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/setup.py +1 -1
  16. python_amazon_ad_api-2.2.0/ad_api/version.py +0 -1
  17. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/LICENSE +0 -0
  18. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/README.md +0 -0
  19. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/__init__.py +0 -0
  20. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/__init__.py +0 -0
  21. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/account.py +0 -0
  22. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/account_budgets.py +0 -0
  23. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/advertising_invitations.py +0 -0
  24. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/advertising_test_account.py +0 -0
  25. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/advertising_user_permissions.py +0 -0
  26. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/billing.py +0 -0
  27. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/brand_benchmarks.py +0 -0
  28. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/creative_assets.py +0 -0
  29. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/dsp_advertiser.py +0 -0
  30. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/eligibility.py +0 -0
  31. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/history.py +0 -0
  32. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/localization.py +0 -0
  33. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/manager_accounts.py +0 -0
  34. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/marketing_mix_modeling.py +0 -0
  35. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/portfolios.py +0 -0
  36. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/profiles.py +0 -0
  37. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/__init__.py +0 -0
  38. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/ad_creatives_v4.py +0 -0
  39. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/ad_groups.py +0 -0
  40. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/ad_groups_v4.py +0 -0
  41. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/ads_v4.py +0 -0
  42. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/benchmarks.py +0 -0
  43. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/bid_recommendations.py +0 -0
  44. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/brands.py +0 -0
  45. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/budget_rules.py +0 -0
  46. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/campaigns.py +0 -0
  47. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/campaigns_v4.py +0 -0
  48. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/forecast.py +0 -0
  49. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/keywords.py +0 -0
  50. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/keywords_recommendations.py +0 -0
  51. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/landing_page_asins.py +0 -0
  52. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/media.py +0 -0
  53. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/migration.py +0 -0
  54. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/negative_keywords.py +0 -0
  55. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/negative_product_targeting.py +0 -0
  56. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/optimization_rules.py +0 -0
  57. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/product_targeting.py +0 -0
  58. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/recommendations.py +0 -0
  59. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/reports.py +0 -0
  60. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/stores.py +0 -0
  61. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/targeting_categories.py +0 -0
  62. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/targeting_recommendations.py +0 -0
  63. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sb/themes.py +0 -0
  64. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/__init__.py +0 -0
  65. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/ad_groups.py +0 -0
  66. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/bid_recommendations.py +0 -0
  67. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/brand_safety.py +0 -0
  68. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/budget_rules.py +0 -0
  69. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/campaigns.py +0 -0
  70. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/campaigns_budget_usage.py +0 -0
  71. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/creatives.py +0 -0
  72. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/forecast.py +0 -0
  73. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/negative_product_targeting.py +0 -0
  74. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/product_ads.py +0 -0
  75. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/product_targeting.py +0 -0
  76. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/recommendations.py +0 -0
  77. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/reports.py +0 -0
  78. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/snapshots.py +0 -0
  79. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sd/targeting_recommendations.py +0 -0
  80. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/__init__.py +0 -0
  81. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/ad_groups_v3.py +0 -0
  82. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/bid_recommendations_v3.py +0 -0
  83. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/budget_initial_recommendation.py +0 -0
  84. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/budget_recommendations.py +0 -0
  85. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/budget_rules.py +0 -0
  86. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/budget_rules_recommendations.py +0 -0
  87. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/campaign_consolidated_recommendations.py +0 -0
  88. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/campaign_negative_keywords_v3.py +0 -0
  89. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/campaign_negative_targets.py +0 -0
  90. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/campaigns_budget_usage.py +0 -0
  91. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/campaigns_v3.py +0 -0
  92. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/campaings_optimization.py +0 -0
  93. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/global_recommendations.py +0 -0
  94. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/keyword_groups_recommendations.py +0 -0
  95. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/keywords_v3.py +0 -0
  96. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/negative_keywords_v3.py +0 -0
  97. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/negative_product_targeting_v3.py +0 -0
  98. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/product_ads_v3.py +0 -0
  99. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/product_recommendations.py +0 -0
  100. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/product_targeting_v3.py +0 -0
  101. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/ranked_keywords_recommendations.py +0 -0
  102. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/schedule_based_bid_optimization.py +0 -0
  103. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/sp/target_promotion_groups.py +0 -0
  104. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/stores.py +0 -0
  105. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/stream.py +0 -0
  106. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/__init__.py +0 -0
  107. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/ad_associations.py +0 -0
  108. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/ad_extensions.py +0 -0
  109. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/ad_groups.py +0 -0
  110. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/ads.py +0 -0
  111. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/advertiser_accounts.py +0 -0
  112. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/brand_store_edition_publish_versions.py +0 -0
  113. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/brand_store_editions.py +0 -0
  114. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/brand_store_pages.py +0 -0
  115. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/brand_stores.py +0 -0
  116. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/campaigns.py +0 -0
  117. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/geo_locations.py +0 -0
  118. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/label_object_associations.py +0 -0
  119. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/labels.py +0 -0
  120. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/location_indexes.py +0 -0
  121. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/manager_accounts.py +0 -0
  122. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/portfolios.py +0 -0
  123. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/recommendation_types.py +0 -0
  124. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/recommendations.py +0 -0
  125. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/reports.py +0 -0
  126. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/selling_accounts.py +0 -0
  127. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/api/v1/targets.py +0 -0
  128. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/auth/__init__.py +0 -0
  129. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/auth/access_token_client.py +0 -0
  130. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/auth/access_token_response.py +0 -0
  131. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/auth/credentials.py +0 -0
  132. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/auth/exceptions.py +0 -0
  133. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/base/__init__.py +0 -0
  134. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/base/api_response.py +0 -0
  135. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/base/client.py +0 -0
  136. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/base/config.py +0 -0
  137. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/base/credential_provider.py +0 -0
  138. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/base/exceptions.py +0 -0
  139. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/base/helpers.py +0 -0
  140. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/base/marketplaces.py +0 -0
  141. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/base/utils.py +0 -0
  142. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/shared/__init__.py +0 -0
  143. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/ad_api/shared/base_client.py +0 -0
  144. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/pyproject.toml +0 -0
  145. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/python_amazon_ad_api.egg-info/SOURCES.txt +0 -0
  146. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/python_amazon_ad_api.egg-info/dependency_links.txt +0 -0
  147. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.1}/python_amazon_ad_api.egg-info/requires.txt +0 -0
  148. {python_amazon_ad_api-2.2.0 → python_amazon_ad_api-2.2.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.2.0
3
+ Version: 2.2.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
@@ -5,7 +5,7 @@ from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
5
5
  class Attribution(Client):
6
6
  r""" """
7
7
 
8
- @sp_endpoint("/attribution/advertisers", method="GET")
8
+ @sp_endpoint("/attribution/advertisers", method="GET", headers=['Amazon-Advertising-API-Scope'])
9
9
  def get_advertisers(self, **kwargs) -> ApiResponse:
10
10
  r"""
11
11
  Gets a list of advertisers associated with an Amazon Attribution account.
@@ -37,7 +37,7 @@ class Attribution(Client):
37
37
  """
38
38
  return self._request(fill_query_params(kwargs.pop("path")), params=kwargs)
39
39
 
40
- @sp_endpoint("/attribution/publishers", method="GET")
40
+ @sp_endpoint("/attribution/publishers", method="GET", headers=['Amazon-Advertising-API-Scope'])
41
41
  def get_publishers(self, **kwargs) -> ApiResponse:
42
42
  r"""
43
43
  Gets a list of all available publishers.
@@ -70,7 +70,7 @@ class Attribution(Client):
70
70
  """
71
71
  return self._request(fill_query_params(kwargs.pop("path")), params=kwargs)
72
72
 
73
- @sp_endpoint("/attribution/report", method="POST")
73
+ @sp_endpoint("/attribution/report", method="POST", headers=['Amazon-Advertising-API-Scope'])
74
74
  def post_report(self, **kwargs) -> ApiResponse:
75
75
  r"""
76
76
  Gets an attribution report for a specified list of advertisers.
@@ -104,7 +104,7 @@ class Attribution(Client):
104
104
  resp.set_next_token(resp.payload.pop("cursorId"))
105
105
  return resp
106
106
 
107
- @sp_endpoint("/attribution/tags/macroTag", method="GET")
107
+ @sp_endpoint("/attribution/tags/macroTag", method="GET", headers=['Amazon-Advertising-API-Scope'])
108
108
  def get_macro_tag(self, **kwargs) -> ApiResponse:
109
109
  r"""
110
110
  Gets a list of attribution tags for third-party publisher campaigns that support macros.
@@ -124,7 +124,7 @@ class Attribution(Client):
124
124
  """
125
125
  return self._request(kwargs.pop('path'), params=kwargs)
126
126
 
127
- @sp_endpoint("/attribution/tags/nonMacroTemplateTag", method="GET")
127
+ @sp_endpoint("/attribution/tags/nonMacroTemplateTag", method="GET", headers=['Amazon-Advertising-API-Scope'])
128
128
  def get_non_macro_template_tag(self, **kwargs) -> ApiResponse:
129
129
  r"""
130
130
  Gets a list of attribution tags for third-party publisher campaigns that do not support macros.
@@ -4,7 +4,7 @@ from ad_api.base import Client, sp_endpoint, ApiResponse, Utils
4
4
  class Audiences(Client):
5
5
  """ """
6
6
 
7
- @sp_endpoint('/audiences/taxonomy/list', method='POST')
7
+ @sp_endpoint('/audiences/taxonomy/list', method='POST', headers=['Amazon-Advertising-API-Scope'])
8
8
  def list_audiences_taxonomy(self, **kwargs) -> ApiResponse:
9
9
  r"""
10
10
  Returns a list of audience categories for a given category path
@@ -36,7 +36,7 @@ class Audiences(Client):
36
36
  body = Utils.convert_body(kwargs.pop('body'), wrap=False)
37
37
  return self._request(kwargs.pop('path'), data=body, params=kwargs)
38
38
 
39
- @sp_endpoint('/audiences/list', method='POST')
39
+ @sp_endpoint('/audiences/list', method='POST', headers=['Amazon-Advertising-API-Scope'])
40
40
  def list_audiences(self, **kwargs) -> ApiResponse:
41
41
  r"""
42
42
  Returns a list of audience segments for an advertiser. The result set can be filtered by providing an array of Filter objects. Each item in the resulting set will match all specified filters.
@@ -6,7 +6,7 @@ class BrandMetrics(Client):
6
6
  Brand Metrics provides a new measurement solution that quantifies opportunities for your brand at each stage of the customer journey on Amazon, and helps brands understand the value of different shopping engagements that impact stages of that journey. You can now access Awareness and Consideration indices that compare your performance to peers using models predictive of consideration and sales. Brand Metrics quantifies the number of customers in the awareness and consideration marketing funnel stages and is built at scale to measure all shopping engagements with your brand on Amazon, not just ad-attributed engagements. Additionally, BM breaks out key shopping engagements at each stage of the shopping journey, along with the Return on Engagement, so you can measure the historical sales following a consideration event or purchase.
7
7
  """
8
8
 
9
- @sp_endpoint('/insights/brandMetrics/report', method='POST')
9
+ @sp_endpoint('/insights/brandMetrics/report', method='POST', headers=['Amazon-Advertising-API-Scope'])
10
10
  def post_report(self, **kwargs) -> ApiResponse:
11
11
  r"""Requests a Brand Metrics report.
12
12
 
@@ -66,7 +66,7 @@ class BrandMetrics(Client):
66
66
  """
67
67
  return self._request(fill_query_params(kwargs.pop('path')), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs)
68
68
 
69
- @sp_endpoint('/insights/brandMetrics/report/{}', method='GET')
69
+ @sp_endpoint('/insights/brandMetrics/report/{}', method='GET', headers=['Amazon-Advertising-API-Scope'])
70
70
  def get_report(self, reportId, **kwargs) -> ApiResponse:
71
71
  r"""Gets a previously requested report specified by identifier.
72
72
 
@@ -21,7 +21,7 @@ class Exports(Client):
21
21
  built from the entity and the version argument. The service routes on that
22
22
  type, so the wrong one answers 406.
23
23
  """
24
- @sp_endpoint('/ads/export', method='POST')
24
+ @sp_endpoint('/ads/export', method='POST', headers=['Amazon-Advertising-API-Scope'])
25
25
  def ads_export(self, version: int = 1, **kwargs) -> ApiResponse:
26
26
  r"""
27
27
  Requests an export of the ads.
@@ -45,7 +45,7 @@ class Exports(Client):
45
45
  headers = {'Content-Type': content_type, 'Accept': accept}
46
46
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
47
47
 
48
- @sp_endpoint('/campaigns/export', method='POST')
48
+ @sp_endpoint('/campaigns/export', method='POST', headers=['Amazon-Advertising-API-Scope'])
49
49
  def campaigns_export(self, version: int = 1, **kwargs) -> ApiResponse:
50
50
  r"""
51
51
  Requests an export of the campaigns.
@@ -69,7 +69,7 @@ class Exports(Client):
69
69
  headers = {'Content-Type': content_type, 'Accept': accept}
70
70
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
71
71
 
72
- @sp_endpoint('/adGroups/export', method='POST')
72
+ @sp_endpoint('/adGroups/export', method='POST', headers=['Amazon-Advertising-API-Scope'])
73
73
  def adgroups_export(self, version: int = 1, **kwargs) -> ApiResponse:
74
74
  r"""
75
75
  Requests an export of the ad groups.
@@ -93,7 +93,7 @@ class Exports(Client):
93
93
  headers = {'Content-Type': content_type, 'Accept': accept}
94
94
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
95
95
 
96
- @sp_endpoint('/targets/export', method='POST')
96
+ @sp_endpoint('/targets/export', method='POST', headers=['Amazon-Advertising-API-Scope'])
97
97
  def targets_export(self, version: int = 1, **kwargs) -> ApiResponse:
98
98
  r"""
99
99
  Requests an export of the targets.
@@ -123,7 +123,7 @@ class Exports(Client):
123
123
  headers = {'Content-Type': content_type, 'Accept': accept}
124
124
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
125
125
 
126
- @sp_endpoint('/exports/{}', method='GET')
126
+ @sp_endpoint('/exports/{}', method='GET', headers=['Amazon-Advertising-API-Scope'])
127
127
  def get_export(self, exportId, typeExport, version: int = 1, **kwargs) -> ApiResponse:
128
128
  r"""
129
129
  Reads the state of an export requested earlier.
@@ -4,7 +4,7 @@ from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
4
4
  class Insights(Client):
5
5
  """ """
6
6
 
7
- @sp_endpoint('/insights/audiences/{}/overlappingAudiences', method='GET')
7
+ @sp_endpoint('/insights/audiences/{}/overlappingAudiences', method='GET', headers=['Amazon-Advertising-API-Scope'])
8
8
  def get_insights(self, audienceId: str, version: int = 2, **kwargs) -> ApiResponse:
9
9
  r"""
10
10
  Returns the audiences that overlap with the one given, ranked by affinity.
@@ -4,7 +4,7 @@ from ad_api.base import Client, sp_endpoint, ApiResponse, Utils
4
4
  class Metadata(Client):
5
5
  r""" """
6
6
 
7
- @sp_endpoint('/product/metadata', method='POST')
7
+ @sp_endpoint('/product/metadata', method='POST', headers=['Amazon-Advertising-API-Scope', 'Amazon-Ads-AccountId'])
8
8
  def get_products_metadata(self, **kwargs) -> ApiResponse:
9
9
  r"""
10
10
 
@@ -14,7 +14,7 @@ class PortfoliosV3(Client):
14
14
  for anyone pinning an older release.
15
15
  """
16
16
 
17
- @sp_endpoint('/portfolios/list', method='POST')
17
+ @sp_endpoint('/portfolios/list', method='POST', headers=['Amazon-Advertising-API-Scope'])
18
18
  @Utils.deprecated
19
19
  def list_portfolios(self, version: int = 3, prefer: bool = False, **kwargs) -> ApiResponse:
20
20
  r"""
@@ -55,7 +55,7 @@ class PortfoliosV3(Client):
55
55
 
56
56
 
57
57
 
58
- @sp_endpoint('/portfolios', method='POST')
58
+ @sp_endpoint('/portfolios', method='POST', headers=['Amazon-Advertising-API-Scope'])
59
59
  @Utils.deprecated
60
60
  def create_portfolios(self, version: int = 3, prefer: bool = False, **kwargs) -> ApiResponse:
61
61
  r"""
@@ -104,7 +104,7 @@ class PortfoliosV3(Client):
104
104
 
105
105
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
106
106
 
107
- @sp_endpoint('/portfolios', method='PUT')
107
+ @sp_endpoint('/portfolios', method='PUT', headers=['Amazon-Advertising-API-Scope'])
108
108
  @Utils.deprecated
109
109
  def edit_portfolios(self, version: int = 3, prefer: bool = False, **kwargs) -> ApiResponse:
110
110
  r"""
@@ -145,7 +145,7 @@ class PortfoliosV3(Client):
145
145
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
146
146
 
147
147
 
148
- @sp_endpoint('/portfolios/budget/usage', method='POST')
148
+ @sp_endpoint('/portfolios/budget/usage', method='POST', headers=['Amazon-Advertising-API-Scope'])
149
149
  @Utils.deprecated
150
150
  def get_budget_usage_for_portfolios(self, version: int = 1, **kwargs) -> ApiResponse:
151
151
  r"""
@@ -4,7 +4,7 @@ from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse, Uti
4
4
  class Recommendations(Client):
5
5
  """ """
6
6
 
7
- @sp_endpoint('/recommendations/list', method='POST')
7
+ @sp_endpoint('/recommendations/list', method='POST', headers=['Amazon-Advertising-API-Scope'])
8
8
  def list_recommendations(self, version: int = 1, **kwargs) -> ApiResponse:
9
9
  r"""
10
10
  Retrieves a list of recommendations.
@@ -50,7 +50,7 @@ class Recommendations(Client):
50
50
  headers = {"Accept": schema_version, "Content-Type": schema_version}
51
51
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
52
52
 
53
- @sp_endpoint('/recommendations/apply', method='POST')
53
+ @sp_endpoint('/recommendations/apply', method='POST', headers=['Amazon-Advertising-API-Scope'])
54
54
  def apply_recommendations(self, version: int = 1, **kwargs) -> ApiResponse:
55
55
  r"""
56
56
  Applies one or more recommendations.
@@ -77,7 +77,7 @@ class Recommendations(Client):
77
77
  headers = {"Accept": schema_version, "Content-Type": schema_version}
78
78
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs, headers=headers)
79
79
 
80
- @sp_endpoint('/recommendations/{}', method='PUT')
80
+ @sp_endpoint('/recommendations/{}', method='PUT', headers=['Amazon-Advertising-API-Scope'])
81
81
  def update_recommendation(self, recommendationId, version: int = 1, **kwargs) -> ApiResponse:
82
82
  r"""
83
83
  Updates a recommendation.
@@ -7,9 +7,24 @@ class Reports(Client):
7
7
  Documentation: https://advertising.amazon.com/API/docs/en-us/offline-report-prod-3p
8
8
 
9
9
  Creates a report request. Use this operation to request the creation of a new report for Amazon Advertising Products. Use adProduct to specify the Advertising Product of the report.
10
+
11
+ Identity
12
+ --------
13
+ The three routes carry ``headers=['Amazon-Advertising-API-Scope']``.
14
+
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
20
+ part of this contract.
21
+
22
+ A ``GET`` on a report still being generated answers 404, not a status: the
23
+ status and the download url only arrive with ``COMPLETED``, which can take
24
+ twenty minutes or more. An empty report is a valid answer.
10
25
  """
11
26
 
12
- @sp_endpoint('/reporting/reports', method='POST')
27
+ @sp_endpoint('/reporting/reports', method='POST', headers=['Amazon-Advertising-API-Scope'])
13
28
  def post_report(self, **kwargs) -> ApiResponse:
14
29
  r"""
15
30
  Requests a Sponsored Products report.
@@ -37,7 +52,7 @@ class Reports(Client):
37
52
  """
38
53
  return self._request(kwargs.pop('path'), data=Utils.convert_body(kwargs.pop('body'), False), params=kwargs)
39
54
 
40
- @sp_endpoint('/reporting/reports/{}', method='GET')
55
+ @sp_endpoint('/reporting/reports/{}', method='GET', headers=['Amazon-Advertising-API-Scope'])
41
56
  def get_report(self, reportId, **kwargs) -> ApiResponse:
42
57
  r"""
43
58
  Gets a generation status of a report by id. Uses the reportId value from the response of previously requested report via POST /reporting/reports operation. When status is set to COMPLETED, the report will be available to be downloaded at url.
@@ -93,7 +108,7 @@ class Reports(Client):
93
108
  """
94
109
  return self._download(self, params=kwargs, headers={'User-Agent': self.user_agent})
95
110
 
96
- @sp_endpoint('/reporting/reports/{}', method='DELETE')
111
+ @sp_endpoint('/reporting/reports/{}', method='DELETE', headers=['Amazon-Advertising-API-Scope'])
97
112
  def delete_report(self, reportId, **kwargs) -> ApiResponse:
98
113
  r"""
99
114
  Deletes a report by id. Use this operation to cancel a report in a PENDING status.
@@ -9,7 +9,7 @@ class ValidationConfigurations(Client):
9
9
  This API allows users to retrieve campaign validation configuration values per marketplace, entity type, and program type.
10
10
  """
11
11
 
12
- @sp_endpoint('/validationConfigurations/campaigns', method='POST')
12
+ @sp_endpoint('/validationConfigurations/campaigns', method='POST', headers=['Amazon-Advertising-API-Scope'])
13
13
  def retrieve_validation_campaigns(self, **kwargs) -> ApiResponse:
14
14
  r"""
15
15
 
@@ -40,7 +40,7 @@ class ValidationConfigurations(Client):
40
40
  body = Utils.convert_body(kwargs.pop('body'), wrap=False)
41
41
  return self._request(kwargs.pop('path'), data=body, params=kwargs, headers=headers)
42
42
 
43
- @sp_endpoint('/validationConfigurations/targetingClauses', method='POST')
43
+ @sp_endpoint('/validationConfigurations/targetingClauses', method='POST', headers=['Amazon-Advertising-API-Scope'])
44
44
  def retrieve_validation_targeting_clauses(self, **kwargs) -> ApiResponse:
45
45
  r"""
46
46
 
@@ -0,0 +1 @@
1
+ __version__ = "2.2.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amazon-ad-api
3
- Version: 2.2.0
3
+ Version: 2.2.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
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = python-amazon-ad-api
3
- version = 2.2.0
3
+ version = 2.2.1
4
4
  author = Daniel Alvaro
5
5
  author_email = denisneuf@hotmail.com
6
6
  description = Python wrapper for the Amazon Advertising API
@@ -2,7 +2,7 @@ from setuptools import setup
2
2
 
3
3
  setup(
4
4
  name='python-amazon-ad-api',
5
- version='2.2.0',
5
+ version='2.2.1',
6
6
  install_requires=[
7
7
  "requests>=2.27.1,<2.35.0",
8
8
  "six>=1.16,<1.18",
@@ -1 +0,0 @@
1
- __version__ = "2.2.0"