Skip to content

Commit d54a701

Browse files
committed
feat: expose all 94 API paths in AmazonAdsClient (v2.2.0)
Rewrote client.py to expose every generated API class through the client property tree. Key additions: - L1 Core: SB themes/media/reports_v2/optimization/forecasts/targeting, SD reports/optimization/locations/brand_safety, DSP target_kpi, Accounts budgets/advertising/test - L1 Cross-cutting: audiences_discovery, product_selector, locations, exports - L2 Reference: AMC sub-module (administration/audiences/reporting), RetailAdService sub-module (campaigns/ad_groups/product_ads/targets), DataProvider sub-module, Unified API - L3 Services: Reporting sub-module (reports_v3/stores_analytics/ brand_metrics/mmm), Insights sub-module (audience/keyword), Common sub-module (stores/assets/history/attribution), MediaPlanning, AdsDataManager, BrandAssociations - L4 Experimental: SponsoredTV sub-module (campaigns/ad_groups/ads/ targeting/creatives), Moderation sub-module (pre/unified), persona_builder, partner_opportunities - Changed experimental from method to property All 94 paths verified against noterp-ai integration layer. Made-with: Cursor
1 parent 90e8ba4 commit d54a701

4 files changed

Lines changed: 666 additions & 428 deletions

File tree

amazon_ads_api/__init__.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,21 @@
2121
campaigns = await client.sp.campaigns.list_campaigns()
2222
2323
# L2: 显式命名空间
24-
result = await client.reference.amc.run_query(...)
24+
result = await client.reference.amc.queries.run_query(...)
2525
2626
# L3: 服务层
27-
report = await client.services.reporting.create_report(...)
27+
report = await client.services.reporting.reports_v3.create_report(...)
2828
29-
# L4: 需确认风险
30-
exp = client.experimental(acknowledge_risk=True)
31-
await exp.sponsored_tv.create_campaign(...)
29+
# L4: 实验性
30+
await client.experimental.ad_library.list_ads(...)
3231
3332
详细文档:
3433
- API_TIER.md - 分级规则详解
3534
- API_CLASSIFICATION.md - 335 个 API 分级列表
3635
- README.md - 快速开始指南
3736
"""
3837

39-
__version__ = "2.1.0"
38+
__version__ = "2.2.0"
4039
__author__ = "Amazon Ads SDK Team"
4140

4241
# 主入口

0 commit comments

Comments
 (0)