Agent context
Amazon Advertising models
4 SQL models that turn the raw Amazon Advertising tables into the reports people ask about. Deploy them in Weld and your agent queries the definitions behind every number.
How the set is built
- 9Raw tables
- 4Core
- 4Analytics
Staging cleans each raw table once, core holds the logic, and analytics is the table dashboards and agents read.
- Campaign ReportExtracts a comprehensive report of advertising performance for Amazon's Sponsored Products, grouped by campaigns and accounts. This report integrates data from the campaign report with the account and campaign tables to provide metrics such as cost, clicks, and impressions for each campaign.grain: day x profile x campaign · 3 raw tables
- Ad Group ReportThis template extracts a comprehensive breakdown of advertising performance on Amazon, grouped by ad groups for sponsored products. It integrates data from the sponsored product ad group report with the profile and ad group tables to deliver metrics like cost, clicks, and impressions for each ad group.grain: day x profile x campaign x ad group · 3 raw tables
- Keyword ReportThis template extracts a comprehensive breakdown of advertising performance on Amazon, grouped by keywords for sponsored products. It integrates data from the sponsored product keyword report with the profile and keyword tables to deliver metrics like cost, clicks, and impressions for each keyword.grain: day x profile x campaign x keyword · 3 raw tables
- Ad ReportThis template extracts a comprehensive breakdown of advertising performance on Amazon, grouped by product ads for sponsored products. It integrates data from the sponsored product product ad report with the profile and ad tables to deliver metrics like cost, clicks, and impressions for each product ad.grain: day x profile x campaign x product ad · 3 raw tables
- Weld or dbt
- The same SQL in both dialects. Sync the folder with GitHub Sync, or copy the dbt models into your project.
- Check before you rely on it
- Reconcile a month against Amazon Advertising's own reports first. Each model's notes say what the synced data can and can't support.
Connect Amazon Advertising.
Your agents start with context.
Sync Amazon Advertising to your warehouse, deploy these models, and query them from Claude, Cursor or ChatGPT over MCP. Free for 14 days, no credit card.