Google Ads data model for your data warehouse: tables, keys and joins
A wrong join returns a plausible number, not an error.
- Open source. OWOX Data Marts is open source: you can read the code that loads and models your data, and run it yourself.
- You own the data. Google Ads tables load into your data warehouse, under your account. If you leave OWOX, they stay where they are.
- MCP-ready. Once the data is in, Claude or ChatGPT can work from your Data Marts through OWOX MCP.
Don't wire up Google Ads by hand. Have your AI assistant load it into your data warehouse.
Your assistant sets up the Google 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/google-ads.md. The task: set up the Google 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 Google Ads data model
A Google Ads account is a hierarchy, and these tables follow it: campaigns hold ad groups, and ad groups hold ads and targeting rows such as keywords.
- Campaigns, Ad Groups and Criterion carry settings as they stand today; Campaigns Stats, Ad Groups Stats, Ad Group Ads Stats, Keywords Stats and Geo Stats carry daily performance; Geo Target Constants turns a country ID into a name.
- Every stats table repeats the IDs of the levels above it, so it joins to its parent on
campaign_idorad_group_id. - A keyword joins to its row in Criterion on
keyword_id=criterion_idtogether withad_group_idandcampaign_id, because Google identifies a keyword by its ad group ID and its criterion ID together. - Fields ending in _micros hold millionths of the account currency, so divide them by 1,000,000 to read them as currency.
How the tables join (9)
Ad Group Ads Stats joins to Ad Groupson
ad_group_idN:1 (many to one)The ad group the ad belongs to.
Ad Group Ads Stats schemaAd Groups schema
Fields of Ad Group Ads Stats as the connector defines them (GitHub)
Ad Groups joins to Campaignson
campaign_idN:1 (many to one)The campaign the ad group belongs to.
Ad Groups Stats joins to Ad Groupson
ad_group_idN:1 (many to one)The ad group the daily row reports on.
Ad Groups Stats schemaAd Groups schema
Fields of Ad Groups Stats as the connector defines them (GitHub)
Campaigns Stats joins to Campaignson
campaign_idN:1 (many to one)The campaign the daily row reports on.
Campaigns Stats schemaCampaigns schema
Fields of Campaigns Stats as the connector defines them (GitHub)
Criterion joins to Ad Groupson
ad_group_idN:1 (many to one)The ad group the criterion targets for.
Geo Stats joins to Campaignson
campaign_idN:1 (many to one)The campaign the country row reports on.
Geo Stats joins to Geo Target Constantson
country_criterion_id = geo_target_constant_idN:1 (many to one)The country's name and ISO code.
Keywords Stats joins to Ad Groupson
ad_group_idN:1 (many to one)The ad group the keyword sits in.
Keywords Stats schemaAd Groups schema
Fields of Keywords Stats as the connector defines them (GitHub)
Keywords Stats joins to Criterionon
keyword_id = criterion_id,ad_group_id,campaign_idN:1 (many to one)The keyword's targeting row; a criterion ID is only unique together with its ad group.
Load the model into your warehouse, or import it as Data Marts and keep the joins.
OWOX or Google's BigQuery transfer for Google Ads data
Google's BigQuery Data Transfer Service loads Google Ads into BigQuery only, no more often than every 24 hours, as report tables named for each Customer ID. If BigQuery is your only warehouse and a daily load is enough, it does the job. OWOX loads the same data into the data warehouse you actually run, as tables whose keys and joins are already drawn.
- The data warehouse you already query. The Google Ads tables load into Google BigQuery, Snowflake, AWS Redshift, AWS Athena or Databricks, so the model above lives next to the rest of your data.
- A model, not only report tables. The keys and joins are drawn, including the one that trips people up: Google identifies a keyword by its ad group and its keyword ID together, so a keyword joins to Criterion on keyword_id, ad_group_id and campaign_id. Open the model on the canvas or import every table as a Data Mart.
- Fields you choose. Pick the fields of each table when you set up the connector, and each one arrives with a plain-language description of what it holds.
- History on your terms. Load any past period by start and end date, and set how many recent days each scheduled refresh reloads.
- Beyond the data warehouse. The Data Marts built on these tables feed , and assistants such as Claude and ChatGPT.
- Code you can read. The connector is open source on GitHub, so you can check exactly how a field is read from the Google Ads API.
Google Ads Endpoints
9 Google Ads endpoints you can import. Each lands in its own table in your data warehouse.
Ad Group Ads Stats
Daily performance for individual ads — impressions, clicks, cost, and conversions.
27 fieldsTime seriesAd Groups
Your ad group settings — type, status, and bid configuration within each campaign.
9 fieldsAd Groups Stats
Daily ad group performance — impressions, clicks, cost, and conversions.
24 fieldsTime seriesCampaigns
Your campaign settings — channel type, bidding strategy, budget, and scheduling.
11 fieldsCampaigns Stats
Daily campaign performance — impressions, clicks, cost, and conversions.
28 fieldsTime seriesCriterion
Ad group targeting criteria — keywords, placements, and negative exclusions with bid settings.
18 fieldsGeo Stats
Daily performance by country and targeting type — impressions, clicks, cost, and conversions.
18 fieldsTime seriesGeo Target Constants
Reference table of geographic targets — join with geo_stats on country_criterion_id to resolve country names.
7 fieldsKeywords Stats
Daily keyword performance — impressions, clicks, cost, conversions, and quality score.
26 fieldsTime series
Google Ads Ad Group Ads Stats schema
27 fieldsTime seriesSchema on GitHubgoogle_ads_ad_group_ads_stats
Daily performance for individual ads — impressions, clicks, cost, and conversions.
Questions this table answers
- Which ads have the lowest click-through rate within their ad group?
- Which landing pages (final URLs) bring the cheapest conversions?
- How do ad types compare on cost per conversion?
| Field | Type | Description |
|---|---|---|
ad_idPK | STRING | Ad ID |
ad_status | STRING | Ad Status (ENABLED, PAUSED, REMOVED) |
ad_final_urls | ARRAY | Final URLs for the Ad |
ad_final_urls_parsed | ARRAY | ad_final_urls with each short link resolved to its landing page; other URLs stay unchanged. Requires ad_final_urls and Process Short Links. |
ad_group_id | STRING | Ad Group ID |
campaign_id | STRING | Campaign ID |
datePK | STRING | Date for time series data |
impressions | NUMBER | Number of Impressions |
clicks | NUMBER | Number of Clicks |
cost_micros | NUMBER | Cost in Micros |
conversions | NUMBER | Number of Conversions |
ctr | NUMBER | Click-Through Rate |
average_cpc | NUMBER | Average Cost Per Click |
conversions_value | NUMBER | Total Conversion Value |
cost_per_conversion | NUMBER | Cost Per Conversion |
ad_type | STRING | Ad Type (TEXT_AD, EXPANDED_TEXT_AD, RESPONSIVE_SEARCH_AD, etc.) |
ad_name | STRING | Ad Name |
ad_group_name | STRING | Ad Group Name |
campaign_name | STRING | Campaign Name |
conversion_rate | NUMBER | Conversion Rate |
view_through_conversions | NUMBER | View-Through Conversions |
all_conversions | NUMBER | All Conversions |
all_conversions_value | NUMBER | All Conversions Value |
average_cost | NUMBER | Average Cost |
average_cpm | NUMBER | Average CPM |
interactions | NUMBER | Number of Interactions |
interaction_rate | NUMBER | Interaction Rate |
Google Ads Ad Groups schema
9 fieldsSchema on GitHubgoogle_ads_ad_groups
Your ad group settings — type, status, and bid configuration within each campaign.
Questions this table answers
- How many ad groups does each campaign have, and how many are paused?
- Which ad groups carry the highest CPC bids?
- Which ad group types does each campaign use?
| Field | Type | Description |
|---|---|---|
ad_group_idPK | STRING | Ad Group ID |
ad_group_name | STRING | Ad Group Name |
ad_group_status | STRING | Ad Group Status (ENABLED, PAUSED, REMOVED) |
ad_group_type | STRING | Ad Group Type (SEARCH_STANDARD, DISPLAY_STANDARD, etc.) |
campaign_id | STRING | Campaign ID |
campaign_name | STRING | Campaign Name |
ad_group_cpc_bid_micros | NUMBER | Ad Group CPC Bid in Micros |
ad_group_cpm_bid_micros | NUMBER | Ad Group CPM Bid in Micros |
ad_group_target_cpa_micros | NUMBER | Ad Group Target CPA in Micros |
Google Ads Ad Groups Stats schema
24 fieldsTime seriesSchema on GitHubgoogle_ads_ad_groups_stats
Daily ad group performance — impressions, clicks, cost, and conversions.
Questions this table answers
- Which ad groups account for most of each campaign's cost?
- Which ad groups have a falling click-through rate week over week?
- What is the cost per conversion of each ad group last month?
| Field | Type | Description |
|---|---|---|
ad_group_idPK | STRING | Ad Group ID |
ad_group_name | STRING | Ad Group Name |
ad_group_status | STRING | Ad Group Status (ENABLED, PAUSED, REMOVED) |
campaign_id | STRING | Campaign ID |
datePK | STRING | Date for time series data |
impressions | NUMBER | Number of Impressions |
clicks | NUMBER | Number of Clicks |
cost_micros | NUMBER | Cost in Micros |
conversions | NUMBER | Number of Conversions |
ctr | NUMBER | Click-Through Rate |
average_cpc | NUMBER | Average Cost Per Click |
conversions_value | NUMBER | Total Conversion Value |
cost_per_conversion | NUMBER | Cost Per Conversion |
conversion_rate | NUMBER | Conversion Rate |
view_through_conversions | NUMBER | View-Through Conversions |
all_conversions | NUMBER | All Conversions |
all_conversions_value | NUMBER | All Conversions Value |
cost_per_all_conversions | NUMBER | Cost Per All Conversions |
average_cost | NUMBER | Average Cost |
average_cpm | NUMBER | Average CPM |
interactions | NUMBER | Number of Interactions |
interaction_rate | NUMBER | Interaction Rate |
engagement_rate | NUMBER | Engagement Rate |
engagements | NUMBER | Number of Engagements |
Google Ads Campaigns schema
11 fieldsSchema on GitHubgoogle_ads_campaigns
Your campaign settings — channel type, bidding strategy, budget, and scheduling.
Questions this table answers
- Which campaigns are enabled, and which bidding strategy does each use?
- How many campaigns run on each advertising channel type?
- Which campaigns have an end date that has already passed but are still enabled?
| Field | Type | Description |
|---|---|---|
campaign_idPK | STRING | Campaign ID |
campaign_name | STRING | Campaign Name |
campaign_status | STRING | Campaign Status (ENABLED, PAUSED, REMOVED) |
campaign_advertising_channel_type | STRING | Advertising Channel Type (SEARCH, DISPLAY, VIDEO, etc.) |
campaign_start_date | STRING | Campaign Start Date |
campaign_end_date | STRING | Campaign End Date |
campaign_bidding_strategy_type | STRING | Bidding Strategy Type (MANUAL_CPC, TARGET_CPA, TARGET_ROAS, etc.) |
campaign_budget_amount_micros | NUMBER | Campaign Budget Amount in Micros |
campaign_target_cpa_micros | NUMBER | Target CPA in Micros (if using Target CPA bidding) |
campaign_target_roas | NUMBER | Target ROAS (if using Target ROAS bidding) |
campaign_advertising_channel_sub_type | STRING | Advertising Channel Sub Type |
Google Ads Campaigns Stats schema
28 fieldsTime seriesSchema on GitHubgoogle_ads_campaigns_stats
Daily campaign performance — impressions, clicks, cost, and conversions.
Questions this table answers
- What did each campaign spend and return per day over the last 30 days?
- Which search campaigns lose the most impression share to budget, and which to rank?
- How does conversion value per unit of cost compare across advertising channel types?
| Field | Type | Description |
|---|---|---|
campaign_idPK | STRING | Campaign ID |
campaign_name | STRING | Campaign Name |
campaign_status | STRING | Campaign Status (ENABLED, PAUSED, REMOVED) |
datePK | STRING | Date for time series data |
impressions | NUMBER | Number of Impressions |
clicks | NUMBER | Number of Clicks |
cost_micros | NUMBER | Cost in Micros |
conversions | NUMBER | Number of Conversions |
ctr | NUMBER | Click-Through Rate |
average_cpc | NUMBER | Average Cost Per Click |
conversions_value | NUMBER | Total Conversion Value |
cost_per_conversion | NUMBER | Cost Per Conversion |
conversion_rate | NUMBER | Conversion Rate |
view_through_conversions | NUMBER | View-Through Conversions |
all_conversions | NUMBER | All Conversions |
all_conversions_value | NUMBER | All Conversions Value |
cost_per_all_conversions | NUMBER | Cost Per All Conversions |
average_cost | NUMBER | Average Cost |
average_cpm | NUMBER | Average CPM |
engagement_rate | NUMBER | Engagement Rate |
engagements | NUMBER | Number of Engagements |
interactions | NUMBER | Number of Interactions |
interaction_rate | NUMBER | Interaction Rate |
search_impression_share | NUMBER | Search Impression Share |
search_budget_lost_impression_share | NUMBER | Search Budget Lost Impression Share |
search_rank_lost_impression_share | NUMBER | Search Rank Lost Impression Share |
video_views | NUMBER | Video Views (for Video campaigns) |
video_view_rate | NUMBER | Video View Rate |
Google Ads Criterion schema
18 fieldsSchema on GitHubgoogle_ads_criterion
Ad group targeting criteria — keywords, placements, and negative exclusions with bid settings.
Questions this table answers
- How many keywords and negative keywords does each ad group have?
- Which keywords have a CPC bid below the estimated first-page bid?
- Which placements are targeted rather than excluded?
| Field | Type | Description |
|---|---|---|
criterion_idPK | STRING | Criterion ID |
criterion_type | STRING | Criterion Type (KEYWORD, PLACEMENT, etc.) |
criterion_status | STRING | Criterion Status (ENABLED, PAUSED, REMOVED) |
keyword_text | STRING | Keyword Text |
keyword_match_type | STRING | Keyword Match Type (EXACT, PHRASE, BROAD) |
ad_group_idPK | STRING | Ad Group ID |
campaign_idPK | STRING | Campaign ID |
quality_score | NUMBER | Quality Score |
final_urls | ARRAY | Final URLs |
final_urls_parsed | ARRAY | final_urls with each short link resolved to its landing page; other URLs stay unchanged. Requires final_urls and Process Short Links. |
negative | BOOLEAN | Whether to target (false) or exclude (true) the criterion |
cpc_bid_micros | NUMBER | CPC Bid in Micros |
effective_cpc_bid_micros | NUMBER | Effective CPC Bid in Micros (includes bid modifiers) |
position_estimates_first_page_cpc_micros | NUMBER | Estimated CPC Bid needed to appear on first page |
position_estimates_top_of_page_cpc_micros | NUMBER | Estimated CPC Bid needed to appear at top of page |
position_estimates_first_position_cpc_micros | NUMBER | Estimated CPC Bid needed to appear in first position |
ad_group_name | STRING | Ad Group Name |
campaign_name | STRING | Campaign Name |
Google Ads Geo Stats schema
18 fieldsTime seriesSchema on GitHubgoogle_ads_geo_stats
Daily performance by country and targeting type — impressions, clicks, cost, and conversions.
Questions this table answers
- Which countries bring the most conversions, and at what cost per conversion?
- Do people in a country convert differently from people searching for it?
- Which campaigns spend in countries outside the intended markets?
| Field | Type | Description |
|---|---|---|
country_criterion_idPK | STRING | Criterion ID for the country (maps to geo_target_constant_id in geo_target_constants table) |
location_typePK | STRING | Geo targeting type: AREA_OF_INTEREST (user searched for this location) or LOCATION_OF_PRESENCE (user was physically in this location) |
datePK | STRING | Date for time series data |
campaign_idPK | STRING | Campaign ID |
campaign_name | STRING | Campaign Name |
campaign_status | STRING | Campaign Status (ENABLED, PAUSED, REMOVED) |
impressions | NUMBER | Number of Impressions |
clicks | NUMBER | Number of Clicks |
cost_micros | NUMBER | Cost in Micros |
conversions | NUMBER | Number of Conversions |
conversions_value | NUMBER | Total Conversion Value |
ctr | NUMBER | Click-Through Rate |
average_cpc | NUMBER | Average Cost Per Click |
all_conversions | NUMBER | All Conversions (includes cross-device and view-through) |
all_conversions_value | NUMBER | All Conversions Value |
view_through_conversions | NUMBER | View-Through Conversions |
cost_per_conversion | NUMBER | Cost Per Conversion |
conversion_rate | NUMBER | Conversion Rate |
Google Ads Geo Target Constants schema
7 fieldsSchema on GitHubgoogle_ads_geo_target_constants
Reference table of geographic targets — join with geo_stats on country_criterion_id to resolve country names.
Questions this table answers
- What are the names behind the country IDs in the Geo Stats table?
- Which countries are flagged as removal planned?
- Which ISO country code belongs to each country ID?
| Field | Type | Description |
|---|---|---|
geo_target_constant_idPK | STRING | Criterion ID - join key with country_criterion_id in geo_stats |
name | STRING | English name of the geo target (e.g. United States, California, New York) |
country_code | STRING | ISO-3166-1 alpha-2 country code (e.g. US, GB, DE) |
target_type | STRING | Type of geo target (e.g. Country, Region, City, MetroArea, PostalCode) |
status | STRING | Status of the geo target constant (ENABLED or REMOVAL_PLANNED) |
canonical_name | STRING | Fully qualified name including parent targets (e.g. New York,New York,United States) |
parent_geo_target | STRING | Resource name of the parent geo target constant |
Google Ads Keywords Stats schema
26 fieldsTime seriesSchema on GitHubgoogle_ads_keywords_stats
Daily keyword performance — impressions, clicks, cost, conversions, and quality score.
Questions this table answers
- Which keywords spend the most without a conversion?
- How does quality score relate to cost per click across keywords?
- Which match type returns the most conversions per unit of cost?
| Field | Type | Description |
|---|---|---|
keyword_idPK | STRING | Keyword Criterion ID |
keyword_text | STRING | Keyword Text |
keyword_match_type | STRING | Keyword Match Type (EXACT, PHRASE, BROAD) |
keyword_status | STRING | Criterion Status (ENABLED, PAUSED, REMOVED) |
ad_group_id | STRING | Ad Group ID |
campaign_id | STRING | Campaign ID |
datePK | STRING | Date for time series data |
impressions | NUMBER | Number of Impressions |
clicks | NUMBER | Number of Clicks |
cost_micros | NUMBER | Cost in Micros |
conversions | NUMBER | Number of Conversions |
ctr | NUMBER | Click-Through Rate |
average_cpc | NUMBER | Average Cost Per Click |
conversions_value | NUMBER | Total Conversion Value |
cost_per_conversion | NUMBER | Cost Per Conversion |
quality_score | NUMBER | Quality Score |
conversion_rate | NUMBER | Conversion Rate |
view_through_conversions | NUMBER | View-Through Conversions |
all_conversions | NUMBER | All Conversions (including cross-device, store visits, etc.) |
all_conversions_value | NUMBER | All Conversions Value |
average_cost | NUMBER | Average Cost Per Interaction |
average_cpm | NUMBER | Average CPM (Cost Per Thousand Impressions) |
search_impression_share | NUMBER | Search Impression Share |
search_rank_lost_impression_share | NUMBER | Search Rank Lost Impression Share |
top_impression_percentage | NUMBER | Top Impression Percentage |
absolute_top_impression_percentage | NUMBER | Absolute Top Impression Percentage |
What Google Ads data answers
Across the tables
- Which campaigns spend the most for the fewest conversions, once cost is divided by conversions?
- How does cost per conversion change from campaign to ad group to keyword for the same budget?
- Which countries do campaigns spend in, and which of them convert?
Industry data models that use Google Ads
Industry data models that use Google 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
- HealthcareHealthcare8 data marts, 56 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 Google Ads data goes
Data warehouses
AI assistants
Spreadsheets
Dashboards
Messages
API
- 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
- 0.33.0Resumable incremental imports for Microsoft Ads, Google Ads, Reddit Ads, Criteo, and X Ads
- 0.32.0Google Ads, LinkedIn Ads, LinkedIn Pages, and Shopify connectors use supported API versions
You are booked. The invitation is on its way to , with the calendar invite and the meeting link.