Send Microsoft Ads data to AWS Athena
Load Microsoft Advertising, formerly Bing Ads, into Athena tables with OWOX Data Marts: campaigns and performance reports, each in its own table, refreshed on a schedule. Query it beside web analytics and CRM to see which search ads become deals.
AWS AthenaSpendClicksImpre…Daily 09:00Microsoft Ads spend gets judged on the conversions it tracked itself, because it never meets your CRM in AWS Athena.
Paste this into your AI assistant. It creates a Microsoft Ads Data Mart on your AWS Athena storage, loads campaigns and performance reports on a schedule, and writes the query that joins spend to your deals.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /connectors/free-microsoft-ads-connector-to-aws-athena.md. The task: load Microsoft Ads ad performance reports into AWS Athena daily and write a query that compares the conversions and revenue Microsoft Ads tracked with CRM deals, by campaign and month. Tag the links you give me with utm_campaign=ai-task and utm_term=data-foundation. Use what you know about my context and goals
Microsoft Ads Endpoints
3 Microsoft Ads endpoints you can import. Each lands in its own table in your data warehouse.
Ad Performance Report
Daily ad performance — impressions, clicks, spend, and conversions segmented by device, network, and match type.
95 fieldsTime seriesCampaigns
Your campaign and ad group structure — type, status, bid strategy, budget, and keyword settings.
54 fieldsUser Location Performance Report
Daily performance by user physical location — impressions, clicks, spend, and conversions broken down by country, state, and city.
81 fieldsTime series
Why query Microsoft Ads with your web analytics and CRM in Athena
Microsoft Advertising reports spend, clicks and the conversions and revenue it tracked. Where Bing search share is material, those clicks need the same scrutiny as Google's: spend joined with website touch points and CRM deals in one warehouse you query with Athena SQL.
- Add Microsoft Ads to the same spend table as Google, Facebook and LinkedIn
- Connect Microsoft Ads clicks and form fills to the deals they became
- Compare the Revenue Microsoft reports with the revenue in your CRM
Your data warehouseAdTouch pointDealJoined by idSearch ad clickedDeal months laterOne Athena query links the ad to the deal.Step 1: Connect Microsoft Ads and pick the fields
Step 2: Load Microsoft Ads into an Athena database and table
Choose the Athena database and table, or keep the pre-filled ones. Run it and the first load lands in your own AWS account.
- Each report gets its own table, such as microsoft_ads_ad_performance_report
- Rows are dated by TimePeriod, with campaign, ad group and ad ids beside the names
- Query results go to the S3 output bucket you set up for Athena
DestinationDatabasemicrosoft_adsTablead_performance_reportRun
Tablemicrosoft_ads.ad_performance_…Step 3: Know every column before you write the query
Once the first run finishes, the output schema lists every field with a plain-words description, not a report column code. Your quality checks can read it too.
- Account, campaign, ad group and ad names sit beside their ids
- Anyone on the team can read the table
microsoft_ads.ad_performance_reportOutput schemaFieldDescriptionTimePeriodThe time period of each report…SpendThe cost per click (CPC) summed…ImpressionsThe number of times an ad has…ClicksClicks are what you pay for.ConversionsThe number of conversions.RevenueThe revenue optionally reported…Step 4: Connect the Microsoft Ads tables in Athena
Campaigns and the two performance reports are separate Athena tables, joined by CampaignId. Join them and they form one Microsoft Ads model.
- The ad report and the user location report both carry CampaignId
- FinalUrl gives each ad's landing page, ready to match web analytics
Step 5: Schedule the Athena load and backfill history
Set it up once. A scheduled refresh keeps the Athena tables current, and a manual backfill brings in any period you missed.
- Each incremental run reloads today plus a lookback window you set
- Backfill a custom start and end date
Step 6: Use the same Athena tables in every tool
The same tables feed your model, , , assistants like Claude and ChatGPT, and scheduled AI insights in Slack or email.
- Show search spend from Microsoft and Google side by side
- All reports read the same Athena tables
- 0.41.0Rotating a warehouse key is one change: Storages share reusable Credentials
- 0.41.0Shared SQL logic stays in one place: build a Data Mart on top of another
- 0.41.0Rotating a connector key is one change: Sources share reusable Credentials
- 0.39.0Reload a year of history in one backfill, not twelve
- 0.38.0Athena query results are cleaned up when the Output Bucket names a folder
Why OWOX for Microsoft Ads in AWS Athena
Hand-built reporting API scripts, a generic ETL tool or exports from the Microsoft Advertising interface each get the data out. OWOX also lands it in your AWS account, readable and ready to model.
- You own the data. It lands in your own AWS account, in tables you control.
- Report tables you can read. Performance reports arrive as ordinary tables with described columns, instead of files to download and parse.
- Ready for a data model. Campaigns and reports joined by CampaignId, built to connect to Google Ads, web analytics and CRM.
- Maintained for you. No API scripts for you to patch when Microsoft changes its reporting API.
- Free to self-host. The open-source OWOX Data Marts runs in your own infrastructure, with Athena as its data storage.
You are booked. The invitation is on its way to , with the calendar invite and the meeting link.