Repository navigation
Reporting APIs
John Williams edited this page Mar 10, 2026
·
1 revision
| Platform | Report Method | Format | Async? |
|---|---|---|---|
| Google Ads | GAQL queries via Search endpoint | JSON stream | No (streaming) |
| Meta Ads | Insights API on campaign/adset/ad | JSON | Yes (for large reports) |
| Microsoft Ads | Reporting API | CSV/TSV | Yes |
| Amazon Ads | Reporting API v3 | JSON/CSV | Yes |
| LinkedIn Ads | Analytics Finder | JSON | No |
| Pinterest Ads | Analytics endpoint | JSON | No |
| The Trade Desk | MyReports API | CSV | Yes |
| Criteo | Statistics API | JSON | Yes |
Use core/models/metrics.py to normalize metrics across platforms:
from core.models.metrics import NormalizedMetrics
# Same interface regardless of source
google_metrics = NormalizedMetrics(
platform="google-ads", date=today,
impressions=10000, clicks=500, cost=250.00, # Already converted from micros
conversions=25, conversion_value=2500.00
)
print(f"CPC: ${google_metrics.cpc:.2f}") # $0.50
print(f"ROAS: {google_metrics.roas:.1f}x") # 10.0x- Google Ads: Reports cost in micros (multiply by 1,000,000). $5.00 = 5,000,000 micros.
- Meta Ads: Reports cost in account currency units (dollars, not cents).
- Microsoft Ads: Reports cost in micros, same as Google.
- Amazon Ads: Reports cost in dollars.
- LinkedIn Ads: Reports cost in account currency (dollars).
Use core/utils/currency.py to handle conversions.
- Google Ads β‘ MCP Live
- Meta Ads
- Microsoft Ads
- Amazon Ads
- LinkedIn Ads
- Pinterest Ads
- Reddit Ads
- Spotify Ads
- The Trade Desk
- Demandbase
- Criteo
- AdRoll
- Quora Ads
- Agent Guide
- Paid Media Division β‘
- Platform Specialists
- Cross-Platform Agents
- Buddy
- Building Custom Agents
- Authentication Patterns
- Conversion Tracking
- Audience Strategy
- Reporting APIs
- Rate Limiting
- Budget Allocation
- Claude Code Β· Cursor Β· Gemini CLI
- Windsurf Β· Aider Β· OpenCode