Skip to main content
BILL → BigQueryIntegration guide

Connecting BILL to BigQuery

BILL automates accounts payable and receivable, which means most of what flows through it is money going out — and none of that is a conversion under any definition. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the BILL receivable before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

BILL to BigQuery: load receivables, join them to CRM click IDs

BigQuery suits BILL data because the warehouse can join it to marketing systems. Load receivable invoices and applied payments as separate tables with a direction column from day one. Map BILL customers to CRM accounts holding gclid, fbclid or UTMs, store partial payments and reversals as rows, and deduplicate on the BILL payment ID.

BigQuery is the most sensible destination for BILL data in this list, because BILL has no marketing context and the warehouse is where you can join it to a system that does. Load receivable invoices and the payments applied to them as separate tables, keeping invoice ID, customer ID, amount received, payment date and status, and carry a direction column (receivable or payable) from the very first load so the filter is never optional.

The join key is the BILL customer mapped to the CRM account or deal that holds the original gclid, fbclid or UTM values. Expect that mapping to be most of the work: BILL customers are often created by finance by hand, with names that do not exactly match the CRM. Store the CRM account ID on the BILL customer if a field allows it (check what your BILL plan exposes), otherwise maintain a mapping table and review unmatched rows every month.

Partial payments and reversals need their own rows rather than in-place updates, so a disputed payment appears as a negative line on the date it happened. Deduplicate on the BILL payment ID before aggregating, since re-pulled API pages repeat rows. From there a scheduled query can produce paid revenue by campaign and feed offline conversion uploads to the ad platforms.

BILL → BigQuery · what breaks

Why this join usually fails — BILL → BigQuery

  1. 01

    Whatever join key you decide on never reaches BILL

    There is no browser session anywhere in an accounts-payable system, and receivables are created from contracts signed elsewhere.

  2. 02

    Payables exported alongside receivables

    It sounds too obvious to happen and it happens regularly, because both are payment records in the same system. The result is supplier payments counted as revenue, which inflates the total by whatever your cost base is.

  3. 03

    The warehouse quietly disagreeing with every platform

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  4. 04

    Nothing reconciles afterwards

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

BILL → BigQuery · the fix

What working looks like — BILL → BigQuery

  • Whatever join key you decide on on every payment

  • Conversions arriving in BigQuery

    The row lands in a table you own, joinable to every other table you own, with no window and no expiry.

  • Reconciled against the source

BILL → BigQuery · architecture

How BILL and BigQuery actually connect

  1. 1

    BILL holds the truth

    Both are transactions with amounts and dates and both will export cheerfully into the same spreadsheet. Only one of them is revenue.

  2. 2

    BigQuery needs a click to match

    BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.

  3. 3

    The identifier is the bridge

    Whatever join key you decide on, captured at the visit and carried into the BILL receivable.

  4. 4

    The event source decides reliability

    Send received payments on customer invoices only, at the amount received.

  5. 5

    Deduplication at the destination

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

BILL → BigQuery · normal or broken

Working vs. broken, side by side — BILL → BigQuery

Normal, not a fault

  • Whatever join key you decide on present on the payment

  • Sent from the BILL receivable payment

  • Deduplicated correctly

    Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.

  • Reconciles with the source

Actually broken

  • Whatever join key you decide on missing on most records

    There is no browser session anywhere in an accounts-payable system, and receivables are created from contracts signed elsewhere.

  • Sent from the browser

    It sounds too obvious to happen and it happens regularly, because both are payment records in the same system. The result is supplier payments counted as revenue, which inflates the total by whatever your cost base is.

  • Counted twice, or not at all

    This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.

  • Nobody has reconciled it

BILL → BigQuery · diagnose

Diagnostic order — BILL → BigQuery

  1. 01

    Count payments carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 03

    Check the direction field on every record before importing anything

    One column. Getting it wrong is not a small error, it is a sign-flip on a large share of the data.

  4. 04

    Reconcile warehouse order counts against each platform for one closed window

    The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.

  5. 05

    Read the match rate, not the success message

    BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.

BILL → BigQuery · prove

How it gets proven — BILL → BigQuery

Source of truth

BILL receivables marked paid, strictly separated from payables.

  • Whatever join key you decide on confirmed present on a live payment.
  • Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
  • Customer payments received reconciled against imported conversions, with payables demonstrably excluded.

BILL → BigQuery · free audit

What we check in the free audit

  • Count payments carrying whatever join key you decide on
  • Follow one real conversion end to end
  • Check the direction field on every record before importing anything
  • Reconcile warehouse order counts against each platform for one closed window
  • Read the match rate, not the success message

Checked against

BILL receivables marked paid, strictly separated from payables.

Get my free conversion tracking audit

Free30 minutesNo obligation

BILL → BigQuery · when not to buy

When you don't need this — BILL → BigQuery

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry whatever join key you decide on.
  • If you use BILL only for payables, there is nothing here to attribute and no integration to build.
  • If you have one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.

BILL → BigQuery · what we deliver

What gets built — BILL → BigQuery

  • Identifier capture into BILL

    Attribute at the CRM or contract stage and use BILL only to confirm the money actually arrived.

  • Event source: the BILL receivable payment

    Send received payments on customer invoices only, at the amount received.

  • Dispatch to BigQuery

    Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.

  • Reversals where they exist

    Reversed and disputed payments reverse.

Written guarantee

95%+ tracking accuracy

Measured against BILL receivables marked paid, strictly separated from payables.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

BILL → BigQuery questions, answered

Pull receivables and received payments from BILL's API on a schedule, or check whether your ETL tool has a BILL connector, and land them in raw tables before transforming. Keep the receivable or payable direction as a column on every row.

Free · 30 min

Get BILL and BigQuery joined properly

Free30 minutesNo obligation