Hand this to your AI

Google Ads stops at the click while the deal it opened closes months later, and Snowflake never sees the two together.

Paste this into your AI assistant. It sets up a Google Ads Data Mart on your Snowflake storage with the endpoints and fields you pick, on your schedule, and joins search spend to web analytics and CRM.

The prompt

load Google Ads campaigns and campaign stats into Snowflake every day and build a Data Mart that ties CRM pipeline to campaigns, with cost per opportunity by month

Endpoints

S00 · Why

Why Google Ads belongs next to your CRM in Snowflake

Google Ads shows clicks and the conversions it counted, and stops there. The deal a search click opened may close months later in your CRM. Spend, touch points and deals need to be tables in one data warehouse for SQL to connect them.

  • Compare Google Ads spend with Facebook, Microsoft and TikTok in one result set
  • Trace a campaign click through your site to the deal
  • Keep conversions and conversion value in tables you control
Google AdsSearch spend
Web analyticsClicks, form fills
CRMOpportunities, deals
Your data warehouseSnowflakeCampaignVisitDealJoined by idCampaign clickedDeal months laterOne SQL join links search to the deal.

S01 · Step 1

Step 1: Connect Google Ads and choose the fields

Create a Data Mart on Snowflake and pick Google Ads as the data source. Authorize with Google or a service account, enter the Customer ID and tick the fields you need.

  • 9 endpoints and 166 fields cover campaigns, ad groups, ads, keywords and geo
  • Stats endpoints need an ad account Customer ID; structure endpoints also accept a manager account
New Data MartChoose a sourceFacebook AdsGoogle AdsMicrosoft AdsAuthorizeConnectedEndpointCampaigns StatsAd Group Ads StatsAd GroupsAd Groups Stats
Campaigns Stats28 fieldsdatecost_microsimpressionsclicksconversionsconversions_value

S02 · Step 2

Step 2: Load Google Ads into a Snowflake table

Select the Snowflake database, schema and table; they come pre-filled and you can edit them. The first run lands the data in your own account.

  • One table per endpoint, for example campaign stats beside ad group stats
  • cost_micros arrives in micros; divide by 1,000,000 once in a view
  • Run History records every load
DestinationSnowflakeDatabaseSchemagoogle_adsTablecampaigns_statsRun
Run HistoryPendingRunningSuccessIncremental load
Tablegoogle_ads.campaigns_stats

S03 · Step 3

Step 3: Read the output schema in plain words

After the first run OWOX lists each column with a readable description. Your data quality checks can read it too.

  • Units are spelled out, for instance that cost_micros is cost in micros
  • Statuses such as ENABLED, PAUSED and REMOVED are explained
google_ads.campaigns_statsOutput schemaFieldDescriptiondateDate for time series datacost_microsCost in MicrosimpressionsNumber of ImpressionsclicksNumber of ClicksconversionsNumber of Conversionsconversions_valueTotal Conversion Value

S04 · Step 4

Step 4: Join the Google Ads tables in SQL

Campaigns, ad groups, ad stats and campaign stats are separate tables that repeat ids. Joined in Snowflake they form one Google Ads data model.

  • campaign_id and ad_group_id appear in several tables, so every stats row finds its parents
  • Join the model to web analytics and CRM through the campaign
Campaignscampaign_idcampaign_namecampaign_status
Ad Groupsad_group_idcampaign_idad_group_name
Ad Group Ads Statsad_idad_group_idcost_micros
Campaigns Statscampaign_idcost_micros

S05 · Step 5

Step 5: Schedule the load and backfill history

Set a schedule once and a scheduled refresh reloads the Snowflake tables for you. Manual runs cover older periods.

  • Each incremental run reloads today plus a lookback window you choose, which picks up recent changes
  • Backfill any start and end date
ScheduleRun on a scheduleDaily 09:00
BackfillRun backfill
Run HistoryDaily scheduleManual backfillDaily schedule

S06 · Step 6

Step 6: Use the same Snowflake tables in every report

Feed your data model, spreadsheets, dashboards, AI assistants like Claude and ChatGPT and scheduled reports in Slack or email from the same tables.

  • Combine Google Ads, Facebook and Microsoft spend in one model
  • One definition, many reports
Google AdsData MartPublished
Blended ad spend
Google Sheets
Data Studio dashboards
Claude, ChatGPT
Slack, email

Recent updates

Why OWOX

Why OWOX for Google Ads in Snowflake

Scripts and generic ETL tools each get Google Ads rows into Snowflake. OWOX loads them as tables you own, shaped to meet the rest of your marketing sources.

  • The same method for every source. Google Ads, Facebook, TikTok and Microsoft load the same way, so blended spend is one model.
  • You choose endpoints and fields. Tick the campaign, ad group, ad, keyword or geo columns you want, not a fixed report set.
  • Your schedule and period. Set a cadence with a lookback window, then backfill any range.
  • Ready to model. Tables join on campaign, ad group and ad ids to web analytics and CRM.
  • Free when self-hosted. The open-source OWOX Data Marts runs on your own infrastructure at no licence cost.

Book a callGet Started Free

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