Microsoft Ads data model: account structure from Bulk, daily results from Reporting
Microsoft Ads account structure and daily ad results as tables, with the filter that makes an ID match written down.
01 · Free self-managed edition
OWOX Data Marts is open source: you can read the code that loads and models your data, and run it yourself.
02 · You own the data
Microsoft Ads tables load into your data warehouse, under your account. If you leave OWOX, they stay where they are.
03 · MCP-ready
Once the data is in, Claude or ChatGPT can work from your Data Marts through OWOX MCP.
Don't wire up Microsoft Ads by hand. Have your AI assistant load it into your data warehouse.
Your assistant sets up the Microsoft Ads connector with you and loads the tables you pick; OWOX keeps them in your data warehouse, ready to use.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /data-sources/microsoft-ads.md. The task: set up the Microsoft Ads connector in OWOX Data Marts, let me pick the tables I need, load them into my data warehouse and show me the first rows. Tag the links you give me with utm_campaign=ai-task and utm_term=data-source. Use what you know about my context and goals
Prefer to start on your own? Get started free
The Microsoft Ads data model
- Microsoft Ads
Microsoft Ads structure and results match on ID only under one filter.
- Campaigns is the Bulk download: campaign, ad group, asset group and keyword rows share one table, the Type column says which is which, and
ParentIdpoints each row at the row above it, an ad group at its campaign, a campaign at its account. - Ad Performance Report holds one row per ad for each day and each segment, such as device, network, match type and language.
- User Location Performance Report holds one row per campaign, ad group and location.
- Both reports repeat
AccountId,CampaignIdandAdGroupId, but a Campaigns row's Id equals a report'sCampaignIdonly when its Type is Campaign, so filter on Type before you match. - Because one ad on one day can fill several report rows, sum them before you compare days or ads, and read Spend together with
CurrencyCode. - Freshness: by default each incremental load reads the two report tables from 2 days before the last loaded date through today, in London time unless you change it, including days Microsoft has not yet marked complete.
- Campaigns are re-read on every run.
How the tables join (2)
Ad Performance Report joins to Campaignson
CampaignId = IdN:1 (many to one)The campaign the row reports on; match the rows of Campaigns whose Type is Campaign.
Ad Performance Report schemaCampaigns schema
Fields of Ad Performance Report as the connector defines them (GitHub)
User Location Performance Report joins to Campaignson
CampaignId = IdN:1 (many to one)The campaign the row reports on; match the rows of Campaigns whose Type is Campaign.
User Location Performance Report schemaCampaigns schema
Fields of User Location Performance Report as the connector defines them (GitHub)
In your warehouse the Type filter is a WHERE clause away, and as Data Marts you can write it once and reuse it.
- Google Sheets
- ChatGPT
- Claude
The same published Data Marts feed Google Sheets reports and answer questions in ChatGPT or Claude, every number traced to a Data Mart.
OWOX for Microsoft Ads data: Bulk and Reporting in one connector
Microsoft splits an account into a Bulk service for its structure and a Reporting service for its results, and their IDs only match under a filter. OWOX runs both for you, loads the result into Google BigQuery, Snowflake, AWS Redshift, AWS Athena or Databricks as tables, and the model writes that filter down where you will read it.
- Both services run for you. The connector runs the Bulk download for the account's structure and the Reporting jobs for its daily results, so you write neither request.
- A day at a time. The connector asks for each account's report day by day, and the aggregation level stays yours to set (Daily by default), so TimePeriod is a day until you change it.
- Every segment kept. Both reports keep device, device OS, match type and top-versus-other position in their keys, and the ad report adds network and language, so a row is one segment combination, not a blend.
- Money beside its currency. CurrencyCode is part of each report's key, so Spend is always read in the account's own currency.
- Deprecated fields flagged. The vendor reference marks Conversions, AllConversions and AveragePosition as deprecated and returning zero, and the model says to read ConversionsQualified instead.
- Where users were, apart from what they searched. User Location Performance Report holds the country, state, metro area, city and postal code where the user was when they clicked, and keeps the location a query was about in separate columns.
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
Microsoft Ads Ad Performance Report schema
95 fieldsTime seriesSchema on GitHubmicrosoft_ads_ad_performance_report
Daily ad performance — impressions, clicks, spend, and conversions segmented by device, network, and match type.
Questions this table answers
- Which ads have the lowest click-through rate, and what do they spend?
- How do spend and qualified conversions compare between device types and networks?
- Which delivered match types return the most qualified conversions for the same spend?
| Field | Type | Description |
|---|---|---|
AccountName | STRING | The account name. |
AccountNumber | STRING | The Microsoft Advertising assigned number of an account. |
AccountIdPK | STRING | The Microsoft Advertising assigned identifier of an account. |
TimePeriodPK | DATE | The time period of each report row. |
CampaignName | STRING | The campaign name. |
CampaignIdPK | STRING | The Microsoft Advertising assigned identifier of a campaign. |
AdGroupName | STRING | The ad group name. |
AdIdPK | STRING | The Microsoft Advertising assigned identifier of an ad. |
AdGroupIdPK | STRING | The Microsoft Advertising assigned identifier of an ad group. |
AdTitle | STRING | The ad title. |
AdDescription | STRING | The first ad description that appears below the path in your ad. |
AdDescription2 | STRING | The second ad description that appears below the path in your ad. |
AdType | STRING | The ad type. |
CurrencyCodePK | STRING | The account currency type. |
AdDistributionPK | STRING | The network where you want your ads to show. |
Impressions | INTEGER | The number of times an ad has been displayed on search results pages. |
Clicks | INTEGER | Clicks are what you pay for. |
Ctr | NUMBER | The click-through rate (CTR) is the number of times an ad was clicked, divided by the number of times the ad was shown. |
AverageCpc | NUMBER | The average cost per click (CPC). |
Spend | NUMBER | The cost per click (CPC) summed for each click. |
AveragePosition | NUMBER | The average position of the ad on a webpage. |
Conversions | INTEGER | The number of conversions. |
ConversionRate | NUMBER | The conversion rate as a percentage. |
CostPerConversion | NUMBER | The cost per conversion. |
DestinationUrl | STRING | The destination URL attribute of the ad. |
DestinationUrlParsed | STRING | DestinationUrl resolved to its landing page when it is a short link; otherwise the same value. Requires DestinationUrl and Process Short Links. |
DeviceTypePK | STRING | The type of device which showed ads. |
LanguagePK | STRING | The language of the publisher where the ad was shown. |
DisplayUrl | STRING | The ad display URL. |
AdStatus | STRING | The ad status. |
NetworkPK | STRING | The entire Microsoft Advertising Network made up of Microsoft sites and select traffic, and only partner traffic. |
TopVsOtherPK | STRING | Indicates whether the ad impression appeared in a top position or elsewhere. |
BidMatchTypePK | STRING | The keyword bid match type. |
DeliveredMatchTypePK | STRING | The match type used to deliver an ad. |
DeviceOSPK | STRING | The operating system of the device reported in the DeviceType column. |
Assists | STRING | The number of conversions from other ads within the same account that were preceded by one or more clicks from this ad. |
Revenue | STRING | The revenue optionally reported by the advertiser as a result of conversions. |
ReturnOnAdSpend | NUMBER | The return on ad spend (ROAS). |
CostPerAssist | NUMBER | The cost per assist. |
RevenuePerConversion | STRING | The revenue per conversion. |
RevenuePerAssist | STRING | The revenue per assist. |
TrackingTemplate | STRING | The current tracking template of the ad. |
CustomParameters | STRING | The current custom parameters set of the ad. |
FinalUrl | STRING | The Final URL of the ad. |
FinalUrlParsed | STRING | FinalUrl resolved to its landing page when it is a short link; otherwise the same value. Requires FinalUrl and Process Short Links. |
FinalMobileUrl | STRING | The Final Mobile URL of the ad. |
FinalMobileUrlParsed | STRING | FinalMobileUrl resolved to its landing page when it is a short link; otherwise the same value. Requires FinalMobileUrl and Process Short Links. |
FinalAppUrl | STRING | Reserved for future use. |
AccountStatus | STRING | The account status. |
CampaignStatus | STRING | The campaign status. |
AdGroupStatus | STRING | The ad group status. |
TitlePart1 | STRING | The title part 1 attribute of an ad. |
TitlePart2 | STRING | The title part 2 attribute of an ad. |
TitlePart3 | STRING | The title part 3 attribute of an ad. |
Headline | STRING | The shorter of two possible responsive ad headlines. |
LongHeadline | STRING | The longer of two possible responsive ad headlines. |
BusinessName | STRING | Depending on your responsive ad's placement, your business's name may appear in your ad. |
Path1 | STRING | The path 1 attribute of an ad. |
Path2 | STRING | The path 2 attribute of an ad. |
AdLabels | STRING | The labels applied to the ad. |
CustomerId | INTEGER | The Microsoft Advertising assigned identifier of a customer. |
CustomerName | STRING | The customer name. |
CampaignTypePK | STRING | The campaign type. |
BaseCampaignId | INTEGER | The Microsoft Advertising assigned identifier of an experiment campaign. |
AllConversions | INTEGER | The number of conversions. |
AllRevenue | STRING | The revenue optionally reported by the advertiser as a result of conversions. |
AllConversionRate | NUMBER | The conversion rate as a percentage. |
AllCostPerConversion | NUMBER | The cost per conversion. |
AllReturnOnAdSpend | NUMBER | The return on ad spend (ROAS). |
AllRevenuePerConversion | STRING | The revenue per conversion. |
FinalUrlSuffix | STRING | A place in your final URL where you can add parameters that will be attached to the end of your landing page URL. |
ViewThroughConversions | INTEGER | View-through conversions are conversions that people make after they have seen your ad, even though they did not click the ad. |
Goal | STRING | The name of the goal you set for the conversions you want. |
GoalType | STRING | The type of conversion goal. |
AbsoluteTopImpressionRatePercent | NUMBER | How often your ad was in the first position of all results, as a percentage of your total impressions. |
TopImpressionRatePercent | NUMBER | The percentage of times your ad showed in the mainline, the top placement where ads appear above the search results. |
AverageCpm | NUMBER | The total advertising cost divided by the number of impressions (in thousands). |
ConversionsQualified | INTEGER | The number of conversions. |
AllConversionsQualified | INTEGER | The number of conversions. |
ViewThroughConversionsQualified | INTEGER | View-through conversions are conversions that people make after they have seen your ad, even though they did not click the ad. |
ViewThroughRevenue | STRING | The revenue optionally reported by the advertiser as a result of view-through conversions. |
VideoViews | INTEGER | The number of times the video was played and watched for at least two continuous seconds with more than 50% of the screen in view. |
ViewThroughRate | NUMBER | The number of video views divided by the number of impressions. |
AverageCPV | NUMBER | Average total spend divided by video views. |
VideoViewsAt25Percent | INTEGER | The number of times a person completed at least 25% of a video. |
VideoViewsAt50Percent | INTEGER | The number of times a person completed at least 50% of a video. |
VideoViewsAt75Percent | INTEGER | The number of times a person completed at least 75% of a video. |
CompletedVideoViews | INTEGER | Number of times a person watched the entire video to completion. |
VideoCompletionRate | INTEGER | The number of completed video views divided by the total number of impressions, multiplied by 100. |
TotalWatchTimeInMS | DATE | Total amount of time a person spent watching the video in milliseconds. |
AverageWatchTimePerVideoView | INTEGER | Total watch time divided by the number of video views. |
AverageWatchTimePerImpression | NUMBER | Total watch time, in milliseconds, divided by the number of impressions. |
AdStrength | STRING | The ad strength score of responsive search ads. |
AdStrengthActionItems | STRING | The suggestion based on ad strength of your responsive search ads. |
GoalId | INTEGER | The Microsoft Advertising assigned identifier of a conversion goal. |
Microsoft Ads Campaigns schema
54 fieldsSchema on GitHubmicrosoft_ads_campaigns
Your campaign and ad group structure — type, status, bid strategy, budget, and keyword settings.
Questions this table answers
- Which campaigns are active, and which bid strategy type and budget does each have?
- How many ad groups does each campaign have, counting the ad group rows by ParentId?
- Which keywords and match types are defined, and with which bids?
| Field | Type | Description |
|---|---|---|
Type | STRING | Row type: Account, Campaign, Ad Group, Keyword, etc. |
Status | STRING | Status of the entity (Active, Paused, Deleted, etc.) |
IdPK | STRING | Unique ID for the entity (Campaign, Ad Group, etc.) |
ParentId | STRING | Parent entity ID (e.g., Account for Campaign, Campaign for Ad Group) |
CampaignId | STRING | Campaign unique ID |
Campaign | STRING | Campaign name |
CampaignType | STRING | Type of campaign (Search, Shopping, Audience, etc.) |
CampaignSubType | STRING | Sub-type of the campaign |
StartDate | STRING | Start date for the campaign or ad group (YYYY-MM-DD) |
EndDate | STRING | End date for the campaign or ad group (YYYY-MM-DD) |
Budget | NUMBER | Campaign budget |
BudgetType | STRING | Type of budget (Daily, Monthly, etc.) |
BidStrategyName | STRING | Name of the bid strategy |
BidStrategyType | STRING | Type of bid strategy (Manual CPC, Target CPA, etc.) |
Language | STRING | Language targeting |
AdGroup | STRING | Ad group name |
AdGroupType | STRING | Type of ad group (e.g., Standard, Hotel) |
AssetGroup | STRING | Asset group name (if using Asset Groups/PMax) |
AssetGroupId | STRING | Asset group unique ID |
Keyword | STRING | Keyword text |
MatchType | STRING | Keyword match type (Broad, Phrase, Exact) |
Bid | NUMBER | Bid amount for the keyword/ad group/campaign |
DeviceType | STRING | Device type (Computer, Mobile, Tablet) |
OSNames | STRING | Device operating systems targeted |
CountryCode | STRING | Country code (e.g., US, GB) |
StateOrProvinceCode | STRING | State or province code |
City | STRING | City name |
Clicks | NUMBER | Number of clicks received |
Impressions | NUMBER | Number of times the ad was shown |
Spend | NUMBER | Total cost or spend |
CurrencyCode | STRING | Currency used for reporting |
AvgCPC | NUMBER | Average cost per click |
AvgCPM | NUMBER | Average cost per thousand impressions |
CTR | NUMBER | Click-through rate |
Avgposition | NUMBER | Average ad position |
QualityScore | NUMBER | Quality score (if available) |
Conversions | NUMBER | Number of conversions |
CPA | NUMBER | Cost per acquisition/conversion |
TrackingTemplate | STRING | URL tracking template for this entity |
FinalUrlSuffix | STRING | Suffix appended to the final URL for tracking |
FinalUrl | STRING | The actual landing page URL |
FinalUrlParsed | STRING | FinalUrl resolved to its landing page when it is a short link; otherwise the same value. Requires FinalUrl and Process Short Links. |
MobileFinalUrl | STRING | Mobile-specific landing page URL |
MobileFinalUrlParsed | STRING | MobileFinalUrl resolved to its landing page when it is a short link; otherwise the same value. Requires MobileFinalUrl and Process Short Links. |
DisplayUrl | STRING | Display URL shown in the ad |
Domain | STRING | Domain of the landing page |
Promotion | STRING | Promotion details (if any) |
DevicePreference | STRING | Device preference setting (All, Mobile only, etc.) |
EditorialStatus | STRING | Editorial status for compliance (e.g., Approved, Disapproved) |
EditorialReasonCode | STRING | Code describing editorial review reason |
FeedId | STRING | Feed ID if used with product ads |
SitelinkExtensionLinkText | STRING | Sitelink extension visible text |
BusinessName | STRING | Name of the business |
PhoneNumber | STRING | Phone number associated with the ad |
User Location Performance Report schema
Microsoft Ads User Location Performance Report schema
81 fieldsTime seriesSchema on GitHubmicrosoft_ads_user_location_performance_report
Daily performance by user physical location — impressions, clicks, spend, and conversions broken down by country, state, and city.
Questions this table answers
- Which countries bring the most clicks, and at what spend?
- Which cities have the most qualified conversions, and what is the spend there?
- Which states and metro areas inside a country receive most of a campaign's impressions?
| Field | Type | Description |
|---|---|---|
AccountName | STRING | The account name. |
AccountNumber | STRING | The Microsoft Advertising assigned number of an account. |
AccountIdPK | STRING | The Microsoft Advertising assigned identifier of an account. |
TimePeriodPK | DATE | The time period of each report row. |
CampaignName | STRING | The campaign name. |
CampaignIdPK | STRING | The Microsoft Advertising assigned identifier of a campaign. |
AdGroupName | STRING | The ad group name. |
AdGroupIdPK | STRING | The Microsoft Advertising assigned identifier of an ad group. |
Country | STRING | The country where the user was located when they clicked the ad. |
State | STRING | The state where the user was located when they clicked the ad. |
MetroArea | STRING | The metro area where the user was located when they clicked the ad. |
CurrencyCodePK | STRING | The account currency type. |
AdDistributionPK | STRING | The network where you want your ads to show. |
Impressions | INTEGER | The number of times an ad has been displayed on search results pages. |
Clicks | INTEGER | Clicks are what you pay for. |
Ctr | NUMBER | The click-through rate (CTR) is the number of times an ad was clicked, divided by the number of times the ad was shown. |
AverageCpc | NUMBER | The average cost per click (CPC). |
Spend | NUMBER | The cost per click (CPC) summed for each click. |
AveragePosition | NUMBER | The average position of the ad on a webpage. |
ProximityTargetLocation | STRING | The location being targeted. |
Radius | STRING | The radius of the location target. |
Language | STRING | The language of the publisher where the ad was shown. |
City | STRING | The city where the user was located when they clicked the ad. |
QueryIntentCountry | STRING | The country that the user was searching for. |
QueryIntentState | STRING | The state that the user was searching for. |
QueryIntentCity | STRING | The city that the user was searching for. |
QueryIntentDMA | STRING | The DMA that the user was searching for. |
BidMatchTypePK | STRING | The keyword bid match type. |
DeliveredMatchTypePK | STRING | The match type used to deliver an ad. |
Network | STRING | The entire Microsoft Advertising Network made up of Microsoft sites and select traffic, and only partner traffic. |
TopVsOtherPK | STRING | Indicates whether the ad impression appeared in a top position or elsewhere. |
DeviceTypePK | STRING | The type of device which showed ads. |
DeviceOSPK | STRING | The operating system of the device reported in the DeviceType column. |
Assists | STRING | The number of conversions from other ads within the same account that were preceded by one or more clicks from this ad. |
Conversions | INTEGER | The number of conversions. |
ConversionRate | NUMBER | The conversion rate as a percentage. |
Revenue | STRING | The revenue optionally reported by the advertiser as a result of conversions. |
ReturnOnAdSpend | NUMBER | The return on ad spend (ROAS). |
CostPerConversion | NUMBER | The cost per conversion. |
CostPerAssist | NUMBER | The cost per assist. |
RevenuePerConversion | STRING | The revenue per conversion. |
RevenuePerAssist | STRING | The revenue per assist. |
County | STRING | The county where the user was located when they clicked the ad. |
PostalCode | STRING | The postal code where the user was located when they clicked the ad. |
QueryIntentCounty | STRING | The county that the user was searching for. |
QueryIntentPostalCode | STRING | The postal code that the user was searching for. |
LocationIdPK | STRING | The Microsoft Advertising identifier of the location where the user was physically located when they clicked the ad. |
QueryIntentLocationId | INTEGER | The Microsoft Advertising identifier of the location that the user was searching for. |
AllConversions | INTEGER | The number of conversions. |
AllRevenue | STRING | The revenue optionally reported by the advertiser as a result of conversions. |
AllConversionRate | NUMBER | The conversion rate as a percentage. |
AllCostPerConversion | NUMBER | The cost per conversion. |
AllReturnOnAdSpend | NUMBER | The return on ad spend (ROAS). |
AllRevenuePerConversion | STRING | The revenue per conversion. |
ViewThroughConversions | INTEGER | View-through conversions are conversions that people make after they have seen your ad, even though they did not click the ad. |
Goal | STRING | The name of the goal you set for the conversions you want. |
GoalType | STRING | The type of conversion goal. |
AbsoluteTopImpressionRatePercent | NUMBER | How often your ad was in the first position of all results, as a percentage of your total impressions. |
TopImpressionRatePercent | NUMBER | The percentage of times your ad showed in the mainline, the top placement where ads appear above the search results. |
AverageCpm | NUMBER | The total advertising cost divided by the number of impressions (in thousands). |
ConversionsQualified | INTEGER | The number of conversions. |
AllConversionsQualified | INTEGER | The number of conversions. |
ViewThroughConversionsQualified | INTEGER | View-through conversions are conversions that people make after they have seen your ad, even though they did not click the ad. |
Neighborhood | STRING | The neighborhood where the user was located when they clicked the ad. |
QueryIntentNeighborhood | STRING | The neighborhood that the user was searching for. |
ViewThroughRevenue | STRING | The revenue optionally reported by the advertiser as a result of view-through conversions. |
CampaignTypePK | STRING | The campaign type. |
AssetGroupIdPK | STRING | The Microsoft Advertising assigned identifier of an asset group. |
AssetGroupName | STRING | The asset group name. |
Downloads | INTEGER | The number of downloads. |
PostClickDownloadRate | NUMBER | The download rate after click. |
CostPerDownload | NUMBER | The cost per download. |
AppInstalls | INTEGER | The number of app installs. |
PostClickInstallRate | NUMBER | The install rate after click. |
CPI | NUMBER | Cost per install. |
Purchases | INTEGER | The number of purchases. |
PostInstallPurchaseRate | NUMBER | The purchase rate after install. |
CPP | NUMBER | Cost per purchase. |
Subscriptions | INTEGER | The number of subscriptions. |
PostInstallSubscriptionRate | NUMBER | The subscription rate after install. |
CPS | NUMBER | Cost per subscription. |
What Microsoft Ads data answers
What Microsoft Ads data answers
Across the tables
- Which campaigns are active, and which bid strategy type does each use?
- How do spend and qualified conversions differ between devices and networks?
- Which countries and cities bring the most clicks, and which of them convert?
Industry data models that use Microsoft Ads
Industry data models that use Microsoft Ads
- E-CommerceEcommerce12 data marts, 87 fields
- E-Commerce ExtendedEcommerce20 data marts, 125 fields
- E-commerce Subscription StoreEcommerce15 data marts, 189 fields
- FinanceFinance8 data marts, 66 fields
- Healthcare Clinic AttributionHealthcare14 data marts, 132 fields
- Healthcare Clinic NetworkHealthcare10 data marts, 150 fields
- Marketing LeadgenAgency9 data marts, 81 fields
- MarketplaceEcommerce8 data marts, 66 fields
- Retail ChainRetail10 data marts, 128 fields
- SaaSSaaS10 data marts, 99 fields
- SEO18 data marts, 111 fields
- TradingFinance8 data marts, 168 fields
Where Microsoft Ads data goes
Data warehouses
AI assistants
Spreadsheets
Dashboards
Messages
API
- 0.45.0Microsoft Ads imports no longer shift columns when a value contains a comma
- 0.44.0Microsoft Ads imports work for advertisers who sign in with Google
- 0.41.0Rotating a connector key is one change: Sources share reusable Credentials
- 0.37.0Short links resolve only on known short link services and domains you allow
- 0.36.0Resolve short links in every ads connector, with nested paths and a per-Data-Mart cache
The Data Partner You Can Trust
users
166K Source: Internal OWOX data as of 2026-11-15
Executives and data analysts across 20+ industries
Customers
You are booked. The invitation is on its way to , with the calendar invite and the meeting link.