---
updatedAt: 2026-02-12T12:02:10.000Z
---

# BigQuery

[block:html]
{
"html": "<p class=\"badges\">\n<a href=\"https://location.foursquare.com/contact-us\">\n<img src=\"https://storage.googleapis.com/unfolded_public/statics/images/PRO-badge-blueviolet.svg\" alt=\"Enterprise Feature\" />\nEnterprise feature. Contact us to learn more.\n</a>\n</p>"
}
[/block]

You can connect the Studio platform to Google BigQuery using the BigQuery Connector.

For more information regarding data connectors, please refer to the [data connector user guide](connectors).

> Note: If you configured your BigQuery connector prior to May 25th, 2022, [please visit this guide to upgrade your BigQuery service account](troubleshooting#update-bigquery-connectors-for-v139).

## BigQuery Connector Form

When adding a BigQuery Data Connector you will be presented with a form enabling you to configure your connector.

[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/0bc1ba5-bigquery-connector-form.png",
null,
"BigQuery Connector Form."
],
"align": "center",
"sizing": "80% ",
"caption": "BigQuery Connector Form."
}
]
}
[/block]

To create a BigQuery Connector, fill the following fields:

| Field               | Description                                                                                                                                                                                                 |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name                | An arbitrary name for your data connector.                                                                                                                                                                  |
| Description         | Optional. An arbitrary description for your data connector.                                                                                                                                                 |
| Project ID          | Your ProjectID from Google Developer Console. For more details see [step 2 of the configuration guide.](#2-click-on-the-dropdown-list-to-the-right-of-google-cloud-platform)                                |
| Service Account Key | The JSON file generated from your Service Account in Google Developers Console. For more details see [step 8 of the configuration guide.](#8-in-the-pop-up-dialog-choose-json-as-the-key-type-click-create) |

With the exception of the Description field, all fields are required.

After all required fields are populated correctly, click **Confirm** to create a new BigQuery connector.

## Configuration Guide

Follow these steps to create a service account for your BigQuery data connector:

##### 1. Go to your [Google Developers Console](https://console.developers.google.com/).

[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/50e7396-google-developers-console.png",
null,
"The Google Developers Console."
],
"align": "center",
"border": true,
"caption": "The Google Developers Console."
}
]
}
[/block]

##### 2. Click on the dropdown list to the right of "Google Cloud Platform."

The names and IDs for all the projects you are a member of are displayed.

Copy the ID of the project you wish to connect to, then paste it into the **Project ID** field.

[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/a18768a-select-project.png",
null,
"Google Cloud Platform's Project selection window."
],
"align": "center",
"sizing": "80% ",
"border": true,
"caption": "Google Cloud Platform's Project selection window."
}
]
}
[/block]

##### 3. Click on the hamburger menu on the top left of the page, and select **IAM & Admin** >> **Service Accounts**.

[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/9e413c9-find-service-accounts.png",
null,
"The Service Accounts button."
],
"align": "center",
"sizing": "80% ",
"caption": "The Service Accounts button."
}
]
}
[/block]

##### 4. Click the **+ CREATE SERVICE ACCOUNT** button.

[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/37e8d61-create-new-service-account.png",
null,
"The create service account button."
],
"align": "center",
"sizing": "80% ",
"border": true,
"caption": "The create service account button."
}
]
}
[/block]

##### 5. Input a **Service Account Name** and **Service Account Description**.

Enter any arbitrary name and description (e.g., Studio Data Connector, Connection to query data inside Foursquare Studio).

[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/debc4c4-service-account-details.png",
null,
"Entering a service account name and description."
],
"align": "center",
"caption": "Entering a service account name and description."
}
]
}
[/block]

##### 6. Grant the new service account **BigQuery Data Viewer**, **BigQuery Job User**, and **BigQuery Read Session User** roles. Skip step 3, then click **Done**.

[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/b95f7f1-service-account-access.png",
null,
"Adding the three required service accounts."
],
"align": "center",
"caption": "Adding the three required service accounts."
}
]
}
[/block]

##### 7. Click on the three dots to the right of the created service account, then select **Manage Keys** >> **Add Key** >> **Create New Key**.

[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/c12f24e-manage-keys.png",
null,
"The manage keys button."
],
"align": "center",
"caption": "The manage keys button."
}
]
}
[/block]

##### 8. In the pop-up dialog, choose `JSON` as the key type, click **CREATE**.

A `.json` key will be automatically generated and downloaded to your desktop. Upload this `.json` key in the **Connect to BigQuery** Dialog in Foursquare Studio.

[block:image]
{
"images": [
{
"image": [
"https://files.readme.io/db6f0be-create-private-key.png",
null,
"Selecting JSON in the pop-up dialog."
],
"align": "center",
"sizing": "80% ",
"caption": "Selecting JSON in the pop-up dialog."
}
]
}
[/block]