> ## Documentation Index
> Fetch the complete documentation index at: https://docs.credibledata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Up BigQuery

> Create a service account to connect BigQuery to Credible

To connect BigQuery to Credible, you'll need to create a Google Cloud service account and download its JSON key file.

## Create a Service Account

1. Go to the [Google Cloud Console](https://console.cloud.google.com)
2. Select your project
3. Navigate to **IAM & Admin** > **Service Accounts**
4. Click **Create Service Account**
5. Enter a name (e.g., `credible-bigquery`)
6. Click **Create and Continue**

## Assign Permissions

Add these roles to the service account:

* **BigQuery Data Viewer** (for read-only access)
* **BigQuery Job User** (to run queries)

If you need write access, use **BigQuery Data Editor** instead of Data Viewer.

Click **Continue**, then **Done**.

## Download the JSON Key

1. Find your service account in the list and click on it
2. Go to the **Keys** tab
3. Click **Add Key** > **Create new key**
4. Select **JSON** and click **Create**

The JSON key file will download automatically. Keep this file secure - it provides access to your BigQuery data.

## Connect in Credible

1. Go to `your-org.app.credibledata.com`
2. Navigate to your environment
3. Click **Add Connection**
4. Select **BigQuery**
5. Upload the JSON key file
6. Test and save the connection

<Note>
  Never commit JSON key files to version control.
</Note>
