Other tools

Export to BigQuery

Updated

Under Connections › Warehouse, add an export to Google BigQuery with a service account key. ROASaurus creates the tables in your dataset and fills them hourly or daily, starting with up to three years of history.

The tables

TableWhat it holds
ordersEvery order with profit and attribution (last and first click, touches, match method)
order_itemsOrder lines with their product cost and handling
ad_spendSpend, impressions and clicks per platform, campaign and day, in the store currency
touchesAd and UTM clicks of consenting visitors, the steps of each journey
customersEvery identified customer with LTV and predicted LTV (a full snapshot each run; emails as hashes)
daily_pnlEvery P&L line and the derived profit figures per store-local day
ga4_dailyGA4 sessions, users, key events, purchases and revenue per day and channel group (needs the Google login under Connections › Channels)
search_console_dailyGoogle Search clicks, impressions, CTR and position per day (same login)

Tables are partitioned by day where they have one. Each run replaces the days it writes, so a run that failed is redone next time without duplicates, and new columns are added when ROASaurus adds fields.

Before you start

  • A Google Cloud project with BigQuery, and permission to create a service account in it.
  • The owner or admin role in ROASaurus (only they can manage exports).

Steps

  1. Create a service account

    In Google Cloud, create a service account in your project, give it the roles BigQuery Data Editor and BigQuery Job User, and create a JSON key for it.

  2. Add the export

    In ROASaurus, open Connections › Warehouse and choose Add an export › Google BigQuery. Enter the Project id, a Dataset (created when missing) and the Location (US, EU or a region such as europe-west4), and paste the JSON key.

  3. Pick tables and schedule

    Tick the tables, choose Hourly or Daily, and set History on the first run (days): 365 by default, up to 1,095.

  4. Test and save

    Click Test and save.

    You should see: “Export saved. The first run starts within the hour, or use “Run now”.” Each run is listed with its rows and partitions.

What you should see

The dataset holds the tables, filled with your history; later runs add and replace the latest days. The secrets stay encrypted in ROASaurus.

Other destinations

The same page exports to Snowflake (SQL API with key-pair authentication), Amazon Redshift (staged through S3), and as files to Amazon S3, Google Cloud Storage or Azure Blob Storage: Parquet, gzip JSON lines or CSV, one file per day.

Manage an export

Open an export to Run now, Test connection, Pause, Re-export history on the next run, or Remove it (data already in BigQuery stays there).

Common problems

“Google BigQuery did not accept this: …”
BigQuery refused the key or the project. Check the project id, that the key belongs to that project, and that the service account has both roles.
“Pick at least one table.”
Tick one or more tables before saving.
“An export run is already going.”
Wait for the current run to finish; it is listed under Runs with its status.
ga4_daily stays empty
The GA4 tables need the Google login under Connections › Channels with a GA4 property picked.

Next step

Connect Google Analytics 4

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.