Supermetrics for Databricks

Connect Facebook Ads to Databricks — Lakehouse-Powered Ad Intelligence

Facebook Ads logo
Facebook Ads
via Supermetrics
Databricks logo
Databricks

Load your complete Facebook Ads history into Databricks as Delta tables. Query with SQL or PySpark, version every change with Delta Lake time travel, build ML models on ad performance data, and govern everything through Unity Catalog — all without writing a single line of ETL code.

✓ No setup required ✓ Free 14-day trial ✓ No credit card needed

Why Connect Facebook Ads to Databricks?

Ads Manager was built for campaign management, not data science. Move your Facebook Ads data into Databricks and unlock Delta Lake versioning, Spark-powered transformations, ML-ready feature tables, and unified governance through Unity Catalog.

Delta Lake versioning and time travel

Every write to your Facebook Ads Delta table is versioned automatically. Roll back changes, audit data mutations, and query historical snapshots at any point in the transaction log.

Learn more
Delta Lake maintains a complete transaction log for every table. When Supermetrics loads yesterday's Facebook Ads data, it creates a new version. If Meta reprocesses attribution data and numbers shift, you can run SELECT * FROM facebook_ads VERSION AS OF 42 to compare the before and after. Use DESCRIBE HISTORY to see every load, merge, and schema change with timestamps and user info.

SQL and PySpark — use both

Databricks supports standard SQL for dashboards and ad-hoc queries, plus PySpark and pandas DataFrames for advanced transformations, statistical analysis, and ML pipelines — all on the same data.

Learn more
Marketing analysts can query Facebook Ads data with familiar SQL in the Databricks SQL Warehouse, while data scientists access the exact same Delta table from a notebook using PySpark or the pandas API on Spark. No data duplication, no separate ETL paths. The same table serves both a Tableau dashboard and a creative fatigue prediction model.

ML-ready feature tables

Transform Facebook Ads data into feature tables for ML models — predict creative fatigue, forecast spend, or classify high-performing audiences — all within the Databricks ecosystem.

Learn more
Databricks Feature Store integrates directly with your Delta tables. Compute features like 7-day rolling CPA, audience saturation scores, or creative engagement decay rates from your Facebook Ads data, register them as features, and use them in MLflow experiments. The same features serve both training and real-time inference, ensuring consistency between offline and online models.

Unity Catalog for enterprise governance

Manage access to Facebook Ads data with fine-grained permissions, column masking, row filters, and data lineage — all through Unity Catalog across every workspace in your organization.

Learn more
Unity Catalog provides a three-level namespace (catalog.schema.table) with inherited permissions. Grant the marketing team SELECT on the facebook_ads table, mask the spend column for junior analysts, and apply row filters so each business unit sees only their own campaigns. Data lineage tracks which notebooks and SQL queries read from the table, giving you auditability from ingestion to dashboards.

Photon engine for blazing-fast SQL

Databricks Photon is a vectorized query engine written in C++ that accelerates SQL queries on Delta tables by 2-8x compared to standard Spark SQL — making heavy Facebook Ads aggregations near-instant.

Learn more
Photon is enabled by default on Databricks SQL Warehouses. Your GROUP BY campaign_name queries, window functions for trailing averages, and multi-table JOINs for cross-channel attribution all benefit from Photon's columnar execution and SIMD optimizations. No code changes needed — the same SQL runs faster automatically.

Automated ingestion with zero maintenance

Supermetrics handles Delta table creation, MERGE operations, schema evolution, and partition management automatically. No custom notebooks, no Airflow DAGs, no manual OPTIMIZE runs.

Learn more
Each transfer creates Delta tables with properly typed columns — DATE for dates, STRING for text fields, DOUBLE for monetary values, LONG for count metrics. Schema changes from the Facebook Ads API trigger automatic schema evolution with mergeSchema enabled. Supermetrics also handles deduplication via MERGE, so you never get duplicate rows from overlapping date windows.

How to Connect Facebook Ads to Databricks

Three steps. Under two minutes. Zero code.

  1. 1

    Create a data transfer

    Log into Supermetrics, select your data source and Databricks as your destination.

  2. 2

    Authorize and configure

    Connect your data source account, provide your Databricks workspace URL and access token, choose your catalog and schema, and select the data you want to transfer.

  3. 3

    Set schedule and start transfer

    Choose your refresh frequency (hourly, daily, or weekly) and click Start. Your data begins flowing into Databricks Delta tables automatically.

Facebook Ads Data Schema in Databricks

Supermetrics creates and maintains clean, typed tables automatically. Here's what your Facebook Ads data looks like in Databricks.

Column Type Description
date DATE The reporting date for the row
campaign_name STRING Name of the Facebook Ads campaign
ad_set_name STRING Name of the ad set within the campaign
ad_name STRING Name of the individual ad creative
impressions LONG Number of times the ad was displayed
clicks LONG Number of clicks on the ad
spend DOUBLE Total amount spent in account currency
conversions DOUBLE Number of conversion events attributed to the ad
cost_per_conversion DOUBLE Average cost per conversion (spend / conversions)
purchase_roas DOUBLE Return on ad spend for purchase events

Data Freshness & Scheduling

Facebook Ads data is typically available in Databricks within 3-6 hours of the reporting period end. Schedule daily transfers to have yesterday's complete data ready each morning. Supermetrics uses Delta Lake MERGE for efficient incremental loading. Historical backfill is available for up to 37 months.

What Facebook Ads Data Can You Pull into Databricks?

Supermetrics gives Databricks access to your full Facebook Ads reporting data — metrics and dimensions you already know from the Facebook Ads interface.

Key Metrics

  • Impressions
  • Clicks
  • Spend
  • ROAS
  • CPA
  • CTR
  • CPM
  • Conversions
  • Reach
  • Frequency
  • Video views
  • Link clicks
  • Cost per result
  • Purchase value
  • Add to cart

Key Dimensions

  • Campaign name
  • Ad set name
  • Ad name
  • Age
  • Gender
  • Placement
  • Device
  • Country
  • Region
  • Platform
  • Objective
  • Delivery status
  • Creative ID

View all Facebook Ads fields, metrics, and dimensions →

Why Supermetrics for Databricks?

Purpose-built for marketing data since 2009. 200,000+ companies trust Supermetrics to move 15% of global ad spend into reporting and analytics destinations.

No Vendor Lock-In

Your data lands in Databricks — infrastructure you own and control. Use any BI tool, any transformation layer, any ML platform. If you ever switch providers, your data and dashboards stay with you.

170+ Marketing Data Sources

Purpose-built for marketing data — not a generic ETL tool. Supermetrics covers 99% of metrics and dimensions from each source, with pre-structured tables ready for analysis. No transformation layer required.

Managed Schema

Supermetrics creates and maintains your Facebook Ads tables automatically. Schema changes from the source API are handled for you — no broken pipelines, no manual migrations.

Your Data, Your Infrastructure

Supermetrics moves data directly to your destination — nothing is stored on our servers. SOC 2 Type II certified, GDPR and CCPA compliant. Your data stays in infrastructure you control, simplifying privacy and compliance reviews.

Flat-Rate, Predictable Pricing

Fixed annual pricing regardless of data volume — no per-row charges, no surprise bills during peak campaign seasons. Transfer as much Facebook Ads data as you need without worrying about cost spikes.

No Data Limits

Query any date range, any number of campaigns, any level of granularity. No row limits, no sampling, no restrictions on the data you can pull.

Frequently Asked Questions

How do I connect Facebook Ads to Databricks with Supermetrics?

Log into the Supermetrics Hub, create a new data transfer, select Facebook Ads as the source and Databricks as the destination. Authorize your Facebook Ads account, provide your Databricks workspace URL and access token, choose your catalog, schema, and Unity Catalog settings, select the fields you need, set a schedule, and start the transfer. No custom notebooks, Spark jobs, or Delta Lake plumbing required — Supermetrics writes directly to Delta tables and registers them in Unity Catalog so your data is governed, versioned, and queryable with both SQL and PySpark from the moment it lands.

Is my Facebook Ads data secure when transferring to Databricks?

Supermetrics is SOC 2 Type II certified and fully GDPR compliant. All Facebook Ads credentials are encrypted at rest and in transit. Data flows directly from the Facebook Ads API into your Databricks workspace — Supermetrics never stores your marketing data on its own servers. Unity Catalog provides centralized governance: fine-grained row-level and column-level security, attribute-based access control, and a full audit log of who queried what. Delta Lake's transaction log makes every write atomic and traceable, so you always have a verifiable lineage of your Facebook Ads data from ingestion to insight.

Can I combine Facebook Ads data with other sources in Databricks?

That is one of the defining advantages of the Databricks lakehouse architecture. Once Facebook Ads data lands as a Delta table, you can JOIN it with any other table in your lakehouse — raw event streams, CRM exports, product analytics, even ML Feature Store tables used for model training. Query in SQL from Databricks SQL warehouses or switch to PySpark and pandas for data science workflows — same data, no copying. Supermetrics supports 170+ connectors that all land in the same Unity Catalog namespace, and the Photon engine accelerates analytical queries on those Delta tables automatically.

What Facebook Ads metrics and dimensions are available in Databricks?

All standard Facebook Ads reporting fields are available, including Impressions, Clicks, Spend, ROAS, CPA, CTR, and many more. You select exactly which metrics and dimensions to transfer during setup, and you can add or remove fields at any time without losing historical data already stored in your Delta tables. Delta Lake's time travel lets you query any previous version of your Facebook Ads data — useful for auditing retroactive metric recalculations or reproducing a dashboard state from last quarter. Schema evolution is handled automatically, so new fields appear as columns without breaking existing queries.

How fresh is Facebook Ads data in Databricks?

Data freshness depends on your transfer schedule. Supermetrics supports hourly, daily, or weekly transfers into Databricks. Most teams schedule daily transfers so yesterday's complete data is available each morning. Delta Lake's MERGE capability ensures only new and changed records are upserted, keeping cluster utilization and storage costs low. For teams that need near-real-time visibility, the Photon engine accelerates incremental queries so dashboards refresh in seconds, and you can set up Databricks SQL alerts to trigger notifications when key Facebook Ads metrics cross your thresholds.

What Delta Lake column types does the Facebook Ads connector use?

Supermetrics maps Facebook Ads fields to Delta Lake (Spark SQL) native types. Dates become DATE, text fields like campaign_name are stored as STRING, monetary metrics like spend use DOUBLE for floating-point precision, and count metrics like impressions use LONG (BIGINT). The mapping is automatic — select your fields and Supermetrics creates the Delta table with correct schema.

Can I use Delta Lake time travel with my Facebook Ads data?

Yes. Every load from Supermetrics creates a new Delta version. You can query any historical version using VERSION AS OF or TIMESTAMP AS OF syntax. This is especially useful when Meta reprocesses attribution data — compare VERSION AS OF 10 with the current version to see exactly which campaign numbers changed and by how much.

Can I build ML models on my Facebook Ads data in Databricks?

Absolutely. Your Facebook Ads Delta table is directly accessible from Databricks notebooks using PySpark, pandas, or SQL. A common workflow is computing rolling features (7-day CPA trend, frequency growth rate, CTR decay) in a Spark DataFrame, registering them in the Databricks Feature Store, and training a model with MLflow to predict creative fatigue or forecast daily spend.

How does Unity Catalog secure my Facebook Ads data?

Unity Catalog provides centralized governance across all Databricks workspaces. You can grant SELECT on your facebook_ads table to specific groups, apply column masks to hide spend data from certain roles, and set row-level filters so each business unit sees only their campaigns. All access is audited, and data lineage shows which downstream notebooks and dashboards consume the table.

How much does it cost to store and query Facebook Ads data in Databricks?

Databricks pricing has two components: compute (DBU-hours for clusters or SQL Warehouses) and storage (the underlying cloud storage — S3, ADLS, or GCS — typically $0.02-0.03/GB/month). Facebook Ads datasets are small, usually under 10 GB even with years of history. Compute is the main cost driver — a Databricks SQL Warehouse (2X-Small) running daily queries typically costs $20-50/month depending on usage patterns.

Does the Facebook Ads connector include Instagram Ads data in Databricks?

Yes. The Facebook Ads API covers all Meta ad placements including Instagram Feed, Stories, Reels, and Explore. Data lands in the same Delta table with a placement column. Filter with WHERE placement LIKE '%instagram%' for Instagram-specific analysis, or query unfiltered for a consolidated Meta Ads view. You can also partition by placement if you frequently filter on it.

Ready to Connect Facebook Ads to Databricks?

Join 200,000+ companies that use Supermetrics to connect their marketing data. Set up in under two minutes.

✓ SOC 2 Type II certified ✓ GDPR compliant Trust Center