Funnel → BigQuery export maintain
Own normalized paid-media raw landing: Funnel custom exports → the owner’s raw BigQuery dataset. Not dashboard UI.
Standing rule — create, never start
You may create and save export definitions (fields, filter, destination, schedule).
You must never:
- enable / turn on an export
- click Run / Start / Sync now
- trigger a backfill or first load
Leave every new or edited export disabled. When the owner enables or runs it, that is their accountability for production data landing. Do not ask to enable unless they explicitly tell you to turn it on.
Gold references
Ask the owner which Funnel workspaces/exports are gold. Typical pattern:
| Industry shape | Search table pattern | Social table pattern | Conversion metrics |
|---|---|---|---|
| Hotel | search__{client_slug} |
social__{client_slug} |
Booking Starts (discover) |
| Ecom | search__{client_slug} |
social__{client_slug} |
Platform Revenue / Orders (discover) |
Shared recipe (both channels)
- Destination: Google BigQuery · owner’s credentials · their project + raw dataset · single table · auto-create dataset on · summary off · safe field names
- Naming:
{search|social}__{client_slug}(double underscore) — or per-platform tables in a client dataset if they prefer - Filter: Channel exactly matches
Paid SearchorPaid Social(one filter) - Schedule: Daily 4:00 am America/New_York · daily partition · rolling range (match client preference, often ~3–24 months)
- Currency: Original
- Save disabled — see standing rule above. Confirm field list / dest when they ask to review; never enable for them.
Dimension spine (shared)
Prefer custom / cross-platform dimensions so Google + Meta (+ Bing later) land in one column. Never invent campaign/ad ids.
| Funnel field | Typical BQ header | Notes |
|---|---|---|
| Date | Date |
|
| Client ID | Client_ID |
constant per client |
| Platform Source | Platform_Source |
|
| Channel | Channel |
also the export filter |
| Status | Status |
|
| Campaign ID | Campaign_ID |
|
| Campaign | Campaign |
|
| Ad Set ID | Ad_Set_ID or Ad_Group_ID |
keep client naming convention |
| Ad Set / Ad Set Name | Ad_Set_Name or Ad_Group |
|
| Ad ID | Ad_ID |
|
| Creative Format | Creative_Format |
|
| Placement | Placement |
Search-only: add Keyword when the Google Ads source is keyword-capable (Search Keyword report type, or Standard at ad-group/ad grain that actually returns keywords). Campaign-level Standard / Asset reports will leave Keyword null.
Social-only (ecom creative grain): after Ad ID add Creative, then Creative Format, Placement, CTA, Creative URL, Video Length (STRING dim), Ad Descriptions. Hotel/lean social can omit creative extras.
Metrics (dynamic — discover per client)
Always include delivery:
- Cost, Impressions, Clicks
Then discover conversion/KPI custom measures in that workspace. Do not copy ecom metrics onto a hotel client or hotel metrics onto ecom.
Inspect / diagnose checklist
- List Funnel workspaces; open the client workspace (MCP
list_workspaces/load_workspace). - In UI: Data → Export → Google BigQuery. Read the live export config (not MCP source summary labels alone).
- Verify filter Channel, field order, BQ table name, last-run success, schedule, enabled=false for drafts you created.
- Check data sources: report type + report level. Keyword/ad-group nulls → wrong grain (need Search Keyword or Ad Group/Ad level). PMax has no keywords — keep separate campaign-level feed if needed.
- Prefer custom dims over native platform fields for shared columns.
- Verify land in BQ when credentials allow. Never claim landed without checking.
- If AOV/KPI looks wrong: confirm which metrics the export actually ships vs what the dashboard computes.
Onboard a new client (clone)
- Discover connectors present (do not assume Meta/TikTok/Google).
- Ensure custom dim spine exists — prefer funnel-fields-api (
POST api.us.fields.funnel.io/.../fields/+derived.expr) over the UI rule builder. Clone mappings from the gold references; add platform deps for new sources. - Discover conversion metrics for that business; create/map custom measures as needed.
- Build Paid Search Export + Paid Social Export (or one channel if only one applies) — save disabled.
- Owner reviews → they enable/run → then verify first BQ load.
- Update this skill or a client note with table slug + conversion metric set.
Custom fields API (preferred)
Use funnel-fields-api. Browser session x-auth-token + meld-fields-app origin. Control Plane / Terraform custom-fields = shells only (no rules).
Optional Control Plane path
Funnel Control Plane API (Terraform provider) can create/update BigQuery exports via POST/PUT .../exports with system-user OAuth. If creating via API, set enabled = false. UI remains fallback for export wizard if needed.