Give Metabase a service account of its own with three roles: BigQuery Data Viewer, BigQuery Metadata Viewer and BigQuery Job User. Job User is not the role called BigQuery User; Metabase's BigQuery page lists them as distinct roles. In the connection form, list the etlmcp dataset by its dataset name, and leave "Include User ID and query hash in queries" off unless you need it, because with it on BigQuery cannot reuse cached results and your query bill can rise.
The BigQuery destination is coming. This page describes the table it writes when the destination is available, so you can set up Metabase on the right footing.
A second service account, not the loading key
Once the destination is available, the key you upload to etlmcp is the one that writes data. When a load is refused, etlmcp's message will ask you to give that account BigQuery Data Editor on the dataset and BigQuery Job User on the project. Metabase only reads, so it should not reuse that key. Create a separate service account for Metabase, give it the read roles below, and download its own JSON key.
Metabase notes that the JSON key downloads once. If you delete it, or later need different roles, it tells you to create a new service account with the roles you want and upload the new file.
Which roles, and where to grant them
| Role | What it lets Metabase do | Lowest level you can grant it |
|---|---|---|
| BigQuery Data Viewer | Read the tables and their rows | Dataset or table |
| BigQuery Metadata Viewer | See datasets, tables and columns without reading rows | Dataset or table |
| BigQuery Job User | Run queries as jobs in the project | Project |
BigQuery User also runs jobs, but it also lets the account create new datasets in the project. Job User gives job rights and no data access at all, so the read roles decide what Metabase can see.
Grant Data Viewer and Metadata Viewer on the etlmcp dataset rather than on the whole project, and Job User on the project, since it cannot be granted any lower. Metabase then sees the etlmcp data and nothing else in the project.
The connection form
- Project ID: copy it from the Google Cloud console. If it shows as
project_name:project_id, enter only the part after the colon. - Datasets: choose All, Only these, or All except, and type dataset names, never table names. Separate several with commas. The
*wildcard is the only pattern Metabase accepts: no regular expressions and no other special characters.ads*with Only these picks every dataset whose name starts withads. - Include User ID and query hash in queries: this tags each query for auditing and debugging, and it costs you BigQuery's result cache. Leave it off on dashboards that many people refresh.
- Periodically refingerprint tables: Metabase samples column values on every sync when this is on (the first 10,000 rows of each column), which adds query load. Off, it fingerprints only at setup.
What Metabase finds in the dataset
When the destination is available, etlmcp creates the table itself and only ever writes to tables it created. Each one carries a _etlmcp_pipeline_id column; a table without it is refused, never changed, so point the destination at a new table name rather than one you built.
- The table is partitioned by day on
dateand clustered on_etlmcp_pipeline_id. dateis a DATE. The common metrics (impressions,clicks,cost,conversions,conversion_value,ctr,cpc,cpm,cpa) are FLOAT64. Names, IDs andcurrencyare STRING.- Platform-specific fields arrive as
extra.<name>and are renamed for BigQuery: any character other than a letter, digit or underscore becomes an underscore.extra.utm sourcelands asextra_utm_source, so you query it without quoting. - Each run will delete its pipeline's rows for the run's date range and insert the new rows in one transaction. A run that fails half-way will leave the table as it was, so a Metabase question never sees a half-loaded day.
Before that transaction, a run will load its rows into a short-lived stage table in the same dataset, named after your table with __etlmcp_stage_ added, and drop it afterwards. If a Metabase sync happens to run at that moment, the stage can appear in the table list for a while. Build your questions on the main table only.
Keep queries cheap with the date partition
Google's partitioning guide says that a filter on the partition column lets BigQuery skip partitions, and skipped partitions are not billed. The filter has to compare date with constant values and keep the column bare: no arithmetic on it, no function around it beyond the few Google lists as safe, and no OR with a filter on another column. In a Metabase native query:
SELECT
date,
network,
SUM(cost) AS cost,
SUM(conversions) AS conversions
FROM `your_dataset`.`your_table`
WHERE date >= '2026-11-01'
AND date < '2026-12-01'
GROUP BY date, network
ORDER BY date
Metabase writes Standard SQL (GoogleSQL) by default, so backticks around the dataset and table work as shown. If one table holds several pipelines, add AND _etlmcp_pipeline_id = '…' to keep them apart.
If you want answers without a dashboard, an AI assistant can read the workspace's stored daily rows, before any transform rules, through etlmcp's query_data tool. See destinations for how etlmcp delivers to each kind.