Google Sheets to BigQuery reporting integration
Marketing keeps campaign budgets in Sheets while order revenue lives in BigQuery. Joining them by campaign name breaks as soon as somebody renames a campaign. We build the connection around an agreed campaign ID, currency and reporting period so the team can see why a total changed.
Integration steps
Define the source rows
Choose the workbook, tab, header and range that the team maintains. Define one row per campaign and budget period. We identify a stable campaign key and agree how to handle a name change, a blank amount or a duplicate budget row.
Read the sheet and validate it
Configure a BigQuery external table for the chosen Google Sheets range. The identity running the query needs access to the Drive file and the required BigQuery permissions. A validation query flags missing keys, unexpected columns and values that cannot be parsed.
Publish a checked reporting table
Aggregate orders to the same campaign and period before joining budgets. A scheduled query writes the results to a dated BigQuery table. If a revision introduces duplicate budgets, the report carries forward the last accepted budget for that key and lists the conflicting rows for the spreadsheet owner.
What we test together
We reconcile a closed period to both sources, then add a second order and a deliberately duplicated budget row. Revenue increases once, budget stays at the agreed amount and the duplicate appears on the exception list.