BigQuery
Overview
Configuring Google BigQuery with CleverTap enables seamless data import, ensuring synchronization and access to relevant information for analysis, personalized engagement, and data-driven growth.
NoteBigQuery is a private beta release. Contact your Customer Success Manager for access. This document covers importing data from BigQuery into CleverTap. For exporting data from CleverTap to BigQuery, refer to BigQuery Export.
Quick Start Guide for Existing Users
Expand for quick setup if you have previously configured a BigQuery workspace and are familiar with the CleverTap dashboard. If you are setting up BigQuery for the first time, skip to Prerequisites for Integration below.
This section is intended for users who already have a configured BigQuery account and are familiar with the CleverTap dashboard.
Prerequisites
Before you begin, ensure you already have the following details:
- Project ID
- Dataset ID
- Google Service Account JSON Key (file or JSON text)
Configure BigQuery Credentials in CleverTap
To set up the Snowflake credentials in CleverTap, perform the following steps:
- Go to CleverTap Dashboard > Settings > Partners > BigQuery.
- Enter the following details: Project ID and Dataset ID
- Upload a Google Service Account JSON Key file or paste the JSON under the Custom key.
- Click Test Connection and Save After setting up the configuration, you can import data from BigQuery into CleverTap.
Prerequisites for Integration
Before configuring BigQuery in CleverTap, ensure that the required Google Cloud resources and access permissions are available.
- CleverTap Access to configure BigQuery
- A Google Cloud Project with BigQuery enabled
- A BigQuery Project ID and dataset
- A Service Account JSON key with required permissions
Set Up BigQuery for Integration
You can set up BigQuery using one of the following options:
-
For new users who need to provision BigQuery resources from scratch: Create a Service Account, assign BigQuery permission, create or select a Dataset, and create a Service Account JSON key.
-
For users who already have configured resources in BigQuery: Use Existing BigQuery Credentials
Create New BigQuery Setup
If you do not already have a dataset, service account, or JSON key configured in Google Cloud, you must create them before connecting to CleverTap.
To create each resource, perform the following steps:
- Create a Service Account
- Assign BigQuery Permissions
- Create a Dataset
- Create a Service Account JSON Key
Create Service Account
To allow CleverTap to access your BigQuery environment, first create a dedicated service account:
-
In the Google Cloud Console, click on
navigate to IAM & Admin > Service Accounts. -
Click Create Service Account.

Create Service Account
-
Enter a Service account name (for example,
clevertap-bq-sa). -
Click Create and continue, then Done.

Service Account Name
Best Practices
- Use a dedicated service account for each CleverTap workspace to maintain clear access boundaries.
- Avoid long-lived service account keys. Rotate or revoke keys regularly to immediately remove CleverTap access when required.
Refer to Google Cloud’s official guidance on managing service account keys.
Assign BigQuery Permissions
Assign the required roles to the service account:
-
In the Google Cloud Console, click on
navigate to IAM & Admin > Service Accounts. -
Locate the service account and click Manage Permissions.

Manage Permissions
-
Click on Manage Access.

Manage Access
-
Assign the following required roles to the service account.
Role Purpose BigQuery Job User Allows CleverTap to run BigQuery jobs BigQuery Data Editor Allows read/write access to datasets
-

Add Roles
- Click Save. To learn more, see BigQuery IAM roles.
Create Dataset
Create a dataset for CleverTap to store and query data:
-
Go to BigQuery in the Google Cloud Console.
-
Select your project and click Create dataset.
-
Enter:
- Dataset ID (for example,
clevertap_dataset) - Location (must remain unchanged)
- Dataset ID (for example,
-
Click Create dataset.
Or use SQL:
CREATE SCHEMA IF NOT EXISTS `[ProjectID].[DatasetID]`;Create Service Account JSON Key
Generate a JSON key that CleverTap will use for authentication:
-
In the Google Cloud Console, click on
navigate to IAM & Admin > Service Accounts. -
Open the Keys tab.
-
Click Add key > Create new key.

Create new key
-
Select JSON and click Create.
-
Download and securely store the JSON file.
Use Existing BigQuery Credentials
If you already have BigQuery set up, perform the following steps to find each detail on the BigQuery dashboard.
Find Your Project ID
To configure the integration, you need your BigQuery project identifier. Follow these steps to find it:
-
Open Project Picker next to the Google Cloud logo.
-
Copy the Project ID of the target project.

Find Project ID - BigQuery
Find Existing Dataset ID
To configure the integration, identify the dataset that CleverTap will use to read or write data in BigQuery.
- Go to BigQuery.
- Expand your project to view datasets.
- Select the dataset you intend to use with CleverTap.
Or use SQL:
SELECT schema_name FROM 'projectID'.INFORMATION_SCHEMA.SCHEMA;Find a Service Account
Locate an existing service account with the required permissions, or create one if needed.
-
Navigate to IAM & Admin > Service Accounts.
-
Select an existing service account with sufficient permissions, or create a new one with the following permissions.
Role Purpose BigQuery Job User Allows CleverTap to run BigQuery jobs BigQuery Data Editor Allows read/write access to datasets
Download or Create a Service Account JSON Key
To authenticate the integration, download an existing service account JSON key or create a new one from the Google Cloud Console.
- Select the service account.
- Go to the Keys tab.
- Create a new JSON key if needed.
Set Up CleverTap Dashboard for Integration
After preparing your BigQuery project, dataset, and service account, connect BigQuery to CleverTap using the collected values.
Integrate BigQuery with CleverTap
- Go to Settings > Partners > BigQuery and select Add Database.
- Enter the following details:
| Field | Description |
|---|---|
| Connection name | A unique name for this BigQuery connection. |
| Project ID | The Google Cloud project ID. |
| Dataset ID | The dataset where CleverTap will read and write data. |
| Google Service Account Key | In the Upload JSON file tab, upload the JSON key generated during Create Service Account JSON Key. Alternatively, use the Custom key tab to paste the JSON content directly. |
-
Click Test Connection or Save:
- Test Connection: Verifies project access, dataset validity, and service account permissions.
- Save: Stores the connection for use with imports.
-
After saving the connection, navigate to Create Import in the Import Connections dashboard.
FAQs
This section answers common questions related to managing BigQuery connections and imports within CleverTap.
How can I delete a connection that has running imports?
Go to Import Connections, select the connection, click Delete, and review the running imports. If there are any imports in ready, scheduled, paused, or running state, it stops all these active imports associated with the connection. Once done, click Delete and confirm.
How can I filter import connections?
Use the filters on Import Connections to refine the list:
- Connected On: Filter by creation date.
- Connected By: Filter by the user who created the connection.
How can I whitelist IPs for CleverTap integration?
To ensure seamless communication between CleverTap and your systems, whitelist the required IP ranges. To access the list of IPs to whitelist for import integrations, refer to CleverTap IP Ranges.
Updated 4 days ago
