Data source

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.

Hand this to your AI

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

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

The Microsoft Ads data model

The Microsoft Ads data model

3 tables230 fields2 joinsView on GitHub

Ad Performance Report95 fields1 relationshipStart hereCampaigns54 fields2 relationshipsUser Location Performance ReportUser Location Perfor…81 fields1 relationship
Source
  • Microsoft Ads

Microsoft Ads structure and results match on ID only under one filter.

  1. Campaigns is the Bulk download: campaign, ad group, asset group and keyword rows share one table, the Type column says which is which, and ParentId points each row at the row above it, an ad group at its campaign, a campaign at its account.
  2. Ad Performance Report holds one row per ad for each day and each segment, such as device, network, match type and language.
  3. User Location Performance Report holds one row per campaign, ad group and location.
  4. Both reports repeat AccountId, CampaignId and AdGroupId, but a Campaigns row's Id equals a report's CampaignId only when its Type is Campaign, so filter on Type before you match.
  5. 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.
  6. 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.
  7. Campaigns are re-read on every run.
How the tables join (2)

In your data warehouse the Type filter is a WHERE clause away, and as Data Marts you can write it once and reuse it.

Explore on canvas →Import this model

Use it in your tools

The same published Data Marts feed Google Sheets reports and answer questions in ChatGPT or Claude, every number traced to a Data Mart.

Why OWOX

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.

Endpoints

Ad Performance Report schema

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?
Microsoft Ads Ad Performance Report fields
FieldTypeDescription
AccountNameSTRINGThe account name.
AccountNumberSTRINGThe Microsoft Advertising assigned number of an account.
AccountIdPKSTRINGThe Microsoft Advertising assigned identifier of an account.
TimePeriodPKDATEThe time period of each report row.
CampaignNameSTRINGThe campaign name.
CampaignIdPKSTRINGThe Microsoft Advertising assigned identifier of a campaign.
AdGroupNameSTRINGThe ad group name.
AdIdPKSTRINGThe Microsoft Advertising assigned identifier of an ad.
AdGroupIdPKSTRINGThe Microsoft Advertising assigned identifier of an ad group.
AdTitleSTRINGThe ad title.
AdDescriptionSTRINGThe first ad description that appears below the path in your ad.
AdDescription2STRINGThe second ad description that appears below the path in your ad.
AdTypeSTRINGThe ad type.
CurrencyCodePKSTRINGThe account currency type.
AdDistributionPKSTRINGThe network where you want your ads to show.
ImpressionsINTEGERThe number of times an ad has been displayed on search results pages.
ClicksINTEGERClicks are what you pay for.
CtrNUMBERThe click-through rate (CTR) is the number of times an ad was clicked, divided by the number of times the ad was shown.
AverageCpcNUMBERThe average cost per click (CPC).
SpendNUMBERThe cost per click (CPC) summed for each click.
AveragePositionNUMBERThe average position of the ad on a webpage.
ConversionsINTEGERThe number of conversions.
ConversionRateNUMBERThe conversion rate as a percentage.
CostPerConversionNUMBERThe cost per conversion.
DestinationUrlSTRINGThe destination URL attribute of the ad.
DestinationUrlParsedSTRINGDestinationUrl resolved to its landing page when it is a short link; otherwise the same value. Requires DestinationUrl and Process Short Links.
DeviceTypePKSTRINGThe type of device which showed ads.
LanguagePKSTRINGThe language of the publisher where the ad was shown.
DisplayUrlSTRINGThe ad display URL.
AdStatusSTRINGThe ad status.
NetworkPKSTRINGThe entire Microsoft Advertising Network made up of Microsoft sites and select traffic, and only partner traffic.
TopVsOtherPKSTRINGIndicates whether the ad impression appeared in a top position or elsewhere.
BidMatchTypePKSTRINGThe keyword bid match type.
DeliveredMatchTypePKSTRINGThe match type used to deliver an ad.
DeviceOSPKSTRINGThe operating system of the device reported in the DeviceType column.
AssistsSTRINGThe number of conversions from other ads within the same account that were preceded by one or more clicks from this ad.
RevenueSTRINGThe revenue optionally reported by the advertiser as a result of conversions.
ReturnOnAdSpendNUMBERThe return on ad spend (ROAS).
CostPerAssistNUMBERThe cost per assist.
RevenuePerConversionSTRINGThe revenue per conversion.
RevenuePerAssistSTRINGThe revenue per assist.
TrackingTemplateSTRINGThe current tracking template of the ad.
CustomParametersSTRINGThe current custom parameters set of the ad.
FinalUrlSTRINGThe Final URL of the ad.
FinalUrlParsedSTRINGFinalUrl resolved to its landing page when it is a short link; otherwise the same value. Requires FinalUrl and Process Short Links.
FinalMobileUrlSTRINGThe Final Mobile URL of the ad.
FinalMobileUrlParsedSTRINGFinalMobileUrl resolved to its landing page when it is a short link; otherwise the same value. Requires FinalMobileUrl and Process Short Links.
FinalAppUrlSTRINGReserved for future use.
AccountStatusSTRINGThe account status.
CampaignStatusSTRINGThe campaign status.
AdGroupStatusSTRINGThe ad group status.
TitlePart1STRINGThe title part 1 attribute of an ad.
TitlePart2STRINGThe title part 2 attribute of an ad.
TitlePart3STRINGThe title part 3 attribute of an ad.
HeadlineSTRINGThe shorter of two possible responsive ad headlines.
LongHeadlineSTRINGThe longer of two possible responsive ad headlines.
BusinessNameSTRINGDepending on your responsive ad's placement, your business's name may appear in your ad.
Path1STRINGThe path 1 attribute of an ad.
Path2STRINGThe path 2 attribute of an ad.
AdLabelsSTRINGThe labels applied to the ad.
CustomerIdINTEGERThe Microsoft Advertising assigned identifier of a customer.
CustomerNameSTRINGThe customer name.
CampaignTypePKSTRINGThe campaign type.
BaseCampaignIdINTEGERThe Microsoft Advertising assigned identifier of an experiment campaign.
AllConversionsINTEGERThe number of conversions.
AllRevenueSTRINGThe revenue optionally reported by the advertiser as a result of conversions.
AllConversionRateNUMBERThe conversion rate as a percentage.
AllCostPerConversionNUMBERThe cost per conversion.
AllReturnOnAdSpendNUMBERThe return on ad spend (ROAS).
AllRevenuePerConversionSTRINGThe revenue per conversion.
FinalUrlSuffixSTRINGA place in your final URL where you can add parameters that will be attached to the end of your landing page URL.
ViewThroughConversionsINTEGERView-through conversions are conversions that people make after they have seen your ad, even though they did not click the ad.
GoalSTRINGThe name of the goal you set for the conversions you want.
GoalTypeSTRINGThe type of conversion goal.
AbsoluteTopImpressionRatePercentNUMBERHow often your ad was in the first position of all results, as a percentage of your total impressions.
TopImpressionRatePercentNUMBERThe percentage of times your ad showed in the mainline, the top placement where ads appear above the search results.
AverageCpmNUMBERThe total advertising cost divided by the number of impressions (in thousands).
ConversionsQualifiedINTEGERThe number of conversions.
AllConversionsQualifiedINTEGERThe number of conversions.
ViewThroughConversionsQualifiedINTEGERView-through conversions are conversions that people make after they have seen your ad, even though they did not click the ad.
ViewThroughRevenueSTRINGThe revenue optionally reported by the advertiser as a result of view-through conversions.
VideoViewsINTEGERThe number of times the video was played and watched for at least two continuous seconds with more than 50% of the screen in view.
ViewThroughRateNUMBERThe number of video views divided by the number of impressions.
AverageCPVNUMBERAverage total spend divided by video views.
VideoViewsAt25PercentINTEGERThe number of times a person completed at least 25% of a video.
VideoViewsAt50PercentINTEGERThe number of times a person completed at least 50% of a video.
VideoViewsAt75PercentINTEGERThe number of times a person completed at least 75% of a video.
CompletedVideoViewsINTEGERNumber of times a person watched the entire video to completion.
VideoCompletionRateINTEGERThe number of completed video views divided by the total number of impressions, multiplied by 100.
TotalWatchTimeInMSDATETotal amount of time a person spent watching the video in milliseconds.
AverageWatchTimePerVideoViewINTEGERTotal watch time divided by the number of video views.
AverageWatchTimePerImpressionNUMBERTotal watch time, in milliseconds, divided by the number of impressions.
AdStrengthSTRINGThe ad strength score of responsive search ads.
AdStrengthActionItemsSTRINGThe suggestion based on ad strength of your responsive search ads.
GoalIdINTEGERThe Microsoft Advertising assigned identifier of a conversion goal.

Campaigns schema

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?
Microsoft Ads Campaigns fields
FieldTypeDescription
TypeSTRINGRow type: Account, Campaign, Ad Group, Keyword, etc.
StatusSTRINGStatus of the entity (Active, Paused, Deleted, etc.)
IdPKSTRINGUnique ID for the entity (Campaign, Ad Group, etc.)
ParentIdSTRINGParent entity ID (e.g., Account for Campaign, Campaign for Ad Group)
CampaignIdSTRINGCampaign unique ID
CampaignSTRINGCampaign name
CampaignTypeSTRINGType of campaign (Search, Shopping, Audience, etc.)
CampaignSubTypeSTRINGSub-type of the campaign
StartDateSTRINGStart date for the campaign or ad group (YYYY-MM-DD)
EndDateSTRINGEnd date for the campaign or ad group (YYYY-MM-DD)
BudgetNUMBERCampaign budget
BudgetTypeSTRINGType of budget (Daily, Monthly, etc.)
BidStrategyNameSTRINGName of the bid strategy
BidStrategyTypeSTRINGType of bid strategy (Manual CPC, Target CPA, etc.)
LanguageSTRINGLanguage targeting
AdGroupSTRINGAd group name
AdGroupTypeSTRINGType of ad group (e.g., Standard, Hotel)
AssetGroupSTRINGAsset group name (if using Asset Groups/PMax)
AssetGroupIdSTRINGAsset group unique ID
KeywordSTRINGKeyword text
MatchTypeSTRINGKeyword match type (Broad, Phrase, Exact)
BidNUMBERBid amount for the keyword/ad group/campaign
DeviceTypeSTRINGDevice type (Computer, Mobile, Tablet)
OSNamesSTRINGDevice operating systems targeted
CountryCodeSTRINGCountry code (e.g., US, GB)
StateOrProvinceCodeSTRINGState or province code
CitySTRINGCity name
ClicksNUMBERNumber of clicks received
ImpressionsNUMBERNumber of times the ad was shown
SpendNUMBERTotal cost or spend
CurrencyCodeSTRINGCurrency used for reporting
AvgCPCNUMBERAverage cost per click
AvgCPMNUMBERAverage cost per thousand impressions
CTRNUMBERClick-through rate
AvgpositionNUMBERAverage ad position
QualityScoreNUMBERQuality score (if available)
ConversionsNUMBERNumber of conversions
CPANUMBERCost per acquisition/conversion
TrackingTemplateSTRINGURL tracking template for this entity
FinalUrlSuffixSTRINGSuffix appended to the final URL for tracking
FinalUrlSTRINGThe actual landing page URL
FinalUrlParsedSTRINGFinalUrl resolved to its landing page when it is a short link; otherwise the same value. Requires FinalUrl and Process Short Links.
MobileFinalUrlSTRINGMobile-specific landing page URL
MobileFinalUrlParsedSTRINGMobileFinalUrl resolved to its landing page when it is a short link; otherwise the same value. Requires MobileFinalUrl and Process Short Links.
DisplayUrlSTRINGDisplay URL shown in the ad
DomainSTRINGDomain of the landing page
PromotionSTRINGPromotion details (if any)
DevicePreferenceSTRINGDevice preference setting (All, Mobile only, etc.)
EditorialStatusSTRINGEditorial status for compliance (e.g., Approved, Disapproved)
EditorialReasonCodeSTRINGCode describing editorial review reason
FeedIdSTRINGFeed ID if used with product ads
SitelinkExtensionLinkTextSTRINGSitelink extension visible text
BusinessNameSTRINGName of the business
PhoneNumberSTRINGPhone 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?
Microsoft Ads User Location Performance Report fields
FieldTypeDescription
AccountNameSTRINGThe account name.
AccountNumberSTRINGThe Microsoft Advertising assigned number of an account.
AccountIdPKSTRINGThe Microsoft Advertising assigned identifier of an account.
TimePeriodPKDATEThe time period of each report row.
CampaignNameSTRINGThe campaign name.
CampaignIdPKSTRINGThe Microsoft Advertising assigned identifier of a campaign.
AdGroupNameSTRINGThe ad group name.
AdGroupIdPKSTRINGThe Microsoft Advertising assigned identifier of an ad group.
CountrySTRINGThe country where the user was located when they clicked the ad.
StateSTRINGThe state where the user was located when they clicked the ad.
MetroAreaSTRINGThe metro area where the user was located when they clicked the ad.
CurrencyCodePKSTRINGThe account currency type.
AdDistributionPKSTRINGThe network where you want your ads to show.
ImpressionsINTEGERThe number of times an ad has been displayed on search results pages.
ClicksINTEGERClicks are what you pay for.
CtrNUMBERThe click-through rate (CTR) is the number of times an ad was clicked, divided by the number of times the ad was shown.
AverageCpcNUMBERThe average cost per click (CPC).
SpendNUMBERThe cost per click (CPC) summed for each click.
AveragePositionNUMBERThe average position of the ad on a webpage.
ProximityTargetLocationSTRINGThe location being targeted.
RadiusSTRINGThe radius of the location target.
LanguageSTRINGThe language of the publisher where the ad was shown.
CitySTRINGThe city where the user was located when they clicked the ad.
QueryIntentCountrySTRINGThe country that the user was searching for.
QueryIntentStateSTRINGThe state that the user was searching for.
QueryIntentCitySTRINGThe city that the user was searching for.
QueryIntentDMASTRINGThe DMA that the user was searching for.
BidMatchTypePKSTRINGThe keyword bid match type.
DeliveredMatchTypePKSTRINGThe match type used to deliver an ad.
NetworkSTRINGThe entire Microsoft Advertising Network made up of Microsoft sites and select traffic, and only partner traffic.
TopVsOtherPKSTRINGIndicates whether the ad impression appeared in a top position or elsewhere.
DeviceTypePKSTRINGThe type of device which showed ads.
DeviceOSPKSTRINGThe operating system of the device reported in the DeviceType column.
AssistsSTRINGThe number of conversions from other ads within the same account that were preceded by one or more clicks from this ad.
ConversionsINTEGERThe number of conversions.
ConversionRateNUMBERThe conversion rate as a percentage.
RevenueSTRINGThe revenue optionally reported by the advertiser as a result of conversions.
ReturnOnAdSpendNUMBERThe return on ad spend (ROAS).
CostPerConversionNUMBERThe cost per conversion.
CostPerAssistNUMBERThe cost per assist.
RevenuePerConversionSTRINGThe revenue per conversion.
RevenuePerAssistSTRINGThe revenue per assist.
CountySTRINGThe county where the user was located when they clicked the ad.
PostalCodeSTRINGThe postal code where the user was located when they clicked the ad.
QueryIntentCountySTRINGThe county that the user was searching for.
QueryIntentPostalCodeSTRINGThe postal code that the user was searching for.
LocationIdPKSTRINGThe Microsoft Advertising identifier of the location where the user was physically located when they clicked the ad.
QueryIntentLocationIdINTEGERThe Microsoft Advertising identifier of the location that the user was searching for.
AllConversionsINTEGERThe number of conversions.
AllRevenueSTRINGThe revenue optionally reported by the advertiser as a result of conversions.
AllConversionRateNUMBERThe conversion rate as a percentage.
AllCostPerConversionNUMBERThe cost per conversion.
AllReturnOnAdSpendNUMBERThe return on ad spend (ROAS).
AllRevenuePerConversionSTRINGThe revenue per conversion.
ViewThroughConversionsINTEGERView-through conversions are conversions that people make after they have seen your ad, even though they did not click the ad.
GoalSTRINGThe name of the goal you set for the conversions you want.
GoalTypeSTRINGThe type of conversion goal.
AbsoluteTopImpressionRatePercentNUMBERHow often your ad was in the first position of all results, as a percentage of your total impressions.
TopImpressionRatePercentNUMBERThe percentage of times your ad showed in the mainline, the top placement where ads appear above the search results.
AverageCpmNUMBERThe total advertising cost divided by the number of impressions (in thousands).
ConversionsQualifiedINTEGERThe number of conversions.
AllConversionsQualifiedINTEGERThe number of conversions.
ViewThroughConversionsQualifiedINTEGERView-through conversions are conversions that people make after they have seen your ad, even though they did not click the ad.
NeighborhoodSTRINGThe neighborhood where the user was located when they clicked the ad.
QueryIntentNeighborhoodSTRINGThe neighborhood that the user was searching for.
ViewThroughRevenueSTRINGThe revenue optionally reported by the advertiser as a result of view-through conversions.
CampaignTypePKSTRINGThe campaign type.
AssetGroupIdPKSTRINGThe Microsoft Advertising assigned identifier of an asset group.
AssetGroupNameSTRINGThe asset group name.
DownloadsINTEGERThe number of downloads.
PostClickDownloadRateNUMBERThe download rate after click.
CostPerDownloadNUMBERThe cost per download.
AppInstallsINTEGERThe number of app installs.
PostClickInstallRateNUMBERThe install rate after click.
CPINUMBERCost per install.
PurchasesINTEGERThe number of purchases.
PostInstallPurchaseRateNUMBERThe purchase rate after install.
CPPNUMBERCost per purchase.
SubscriptionsINTEGERThe number of subscriptions.
PostInstallSubscriptionRateNUMBERThe subscription rate after install.
CPSNUMBERCost 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

Where Microsoft Ads data goes

Recent updates

Other data sources

Trust

The Data Partner You Can Trust

users

166K Source: Internal OWOX data as of 2026-11-15

Executives and data analysts across 20+ industries

G2 rating

4.9★2

“A trusted data analytics partner” — verified review

npm installs

171K3

In Open Source We Trust

Customers