Supported data types
Indeliveries
Incoming products
Inventory
Stock levels
Orders
Customer transactions
Product Attributes
Product metadata & descriptions
Prerequisites
Before setting up the BigQuery integration, ensure you have:- A Google Cloud project with BigQuery enabled
- Tables or views in BigQuery containing your data, with columns matching our schema
- A Google Cloud service account with BigQuery Data Viewer and BigQuery Job User roles granted on the relevant dataset(s)
Good to know
COGS priority
COGS priority
Storefront assignment
Storefront assignment
If you operate multiple storefronts, include
EXTERNAL_STOREFRONT_ID in your data for per-row storefront assignment.Merchant mappings
Column naming
Column naming
BigQuery column names are case-sensitive. Ensure your column names exactly match the names specified in the Data schema section below (all upper-case, e.g.
ORDER_ID, PRODUCT_ID).Data types
Data types
Use standard BigQuery SQL types when creating your tables. The recommended mappings are:
| Dema type | BigQuery type |
|---|---|
| String | STRING |
| Integer | INT64 |
| Decimal | FLOAT64 or NUMERIC |
| Boolean | BOOL |
| Date | DATE |
| Timestamp | TIMESTAMP |
| Array | REPEATED mode on the field’s type |
Step-by-step integration guide
Create a service account
In the Google Cloud Console, create a dedicated service account for the Dema integration:
- Go to IAM & Admin → Service Accounts and click Create service account.
- Give it a descriptive name (e.g.
dema-bigquery-reader). - Grant the following roles on the project or at the dataset level:
- BigQuery Data Viewer — allows reading table data.
- BigQuery Job User — allows running query jobs.
- Click Done to save the service account.
Generate a service account key
- Open the service account you just created and navigate to the Keys tab.
- Click Add Key → Create new key and choose JSON.
- Download the generated
.jsonkey file — you will share this with your Customer Success Manager.
Share credentials
Provide the following information to your Customer Success Manager:
Send the key file and connection details via secure password sharing.
Example
Specifying data tables and schema
Ensure each BigQuery table or view aligns with our schema. Columns must be named exactly as specified below. This is crucial for accurate data integration.
Multiple values Some fields allow multiple values. These fields should be stored as a
REPEATED (array) column, e.g. ["value1", "value2", "value3"]. Data schema
Indeliveries
Track incoming product deliveries to your warehouses.All fields
All fields
Required:Optional:
Inventory
Stock levels across your warehouses. Product attributes (name, brand, category, etc.) are sent separately via Product Attributes. See COGS priority for how cost values are resolved.Fields
Fields
Orders
Customer transaction data including order details and line items. See COGS priority for how cost values are resolved.Order header fields
Order header fields
Required:Optional:
Order line fields
Order line fields
Required:Optional:
Return fields (within orders)
Return fields (within orders)
Include these fields to record returns directly in your orders table.
Product Attributes
Product metadata including names, categories, and descriptive attributes for your catalog.Required fields
Required fields
Optional fields
Optional fields
Custom attributes
Custom attributes
Troubleshooting and support
For common issues and solutions, contact our support team directly for assistance.Additional resources
- Google Cloud service account documentation: Creating and managing service accounts
- BigQuery access control: BigQuery IAM roles
- BigQuery data types reference: BigQuery data types

