Articles in this section

Set up a connection to Google BigQuery

BigQuery is a fully managed, serverless data warehouse that enables scalable analysis over petabytes of data. It is a Platform as a Service that supports querying using ANSI SQL.

Two connectors are available for Google BigQuery:

AppListBQ731.png

Before you begin

You'll need to enable the following permissions to use the full functionality of the BigQuery connector. These permissions need to be enabled in the BigQuery account that will be used in your connection:

  • bigquery.jobs.create (required)

  • bigquery.datasets.get

  • bigquery.routines.get

  • bigquery.routines.list

  • bigquery.tables.get

  • bigquery.tables.list

Set up a database connection to Google BigQuery

Google BigQuery links: Service Accounts , Authentication

A. Create a Google BigQuery database connection

Start establishing a connection to Google BigQuery in either of the following ways:

  • From the Resources menu, select Connections. Then, click + Create connection at the top right.

    – or –

  • While working in a new or existing integration, you can add an application to a flow simply by clicking Add source or Add destination.

In the resulting Application list, under Databases, click Google BigQuery.

B. Edit Google BigQuery database connection application details

Create connection

On the Create Connection page, set the following options:

Name (required): Provide a clear and distinguishable name. Throughout integrator.io imports and exports, you will have the option to choose this new connection, and a unique identifier will prove helpful later when selecting among a list of connections that you’ve created.

Application (required, non-editable): A reminder of the app you’re editing.

Default project ID: Provide the unique identifier used for the applicable BigQuery project in your Google Cloud account. To get this value you can either go to your Project list in Google Cloud Platform and look at the ID field, or read it from the service account key file.

Client email: Enter the email address for the Google Cloud service account that should be used to authorize this connection. See the Google Cloud service account documentation for help finding the client email and private key.

Private key: First, copy the private key from the Google portal for the service account that you want to use to authenticate the connection. Before you add it to integrator.io you must replace all newline characters (\n) throughout the private key:

  1. Paste the private key into a text editor.

  2. Find \n.

  3. With your cursor in that location, delete the \n characters and press Enter or Return.

  4. Repeat this for each instance of \n.

  5. Ensure -----BEGIN PRIVATE KEY----- appears before the key, and

    -----END PRIVATE KEY----- appears after the key. For example:

    keyexample.png
  6. Copy and paste the reformatted private key (including the begin and end declarations) into integrator.io.

Default dataset: Enter the name of the dataset containing the tables and views integrator.io should be able to access.

Tip

If you specify only a default project and dataset here (instead of a project, dataset, and table), you can use this connection for multiple exports and imports later. The project and dataset will still need to be specified in this connection, but you can update it to use any table in an export or import.

C. Edit advanced Google BigQuery database connection settings

Before continuing, you have the opportunity to provide additional configuration information, if needed, for the Google BigQuery connection.

D. Save and authorize the Google BigQuery database connection

Once you have configured the Google BigQuery database connection, you have two options for continuing:

  • Save & authorize – click this button to test the connection, commit the new connection so that it will be available to all integrations for your account (and applied to the current source or destination app, if you created it within a flow)

  • Cancel – click to exit without saving any new changes

Set up a REST API connection to Google BigQuery

Set up a connection

After you start the connection , configure it in the Create connection panel and complete all of the required * authentication settings:

Setting

Instructions

Name your connection *

Enter a clear and distinguishable name.

Throughout integrator.io imports and exports, you will have the option to choose this new connection. A unique identifier will prove helpful later when selecting it from a list of the connections in your account.

OAuth 2.0 client *

Select the OAuth 2.0 client that stores the client ID and client secret provided to you by Google.

To add an OAuth 2.0 client and configure your credentials, click the plus ( + ) button. Click the edit (pencil.svg) button to modify a selected OAuth 2.0 client. For more information, see Create an OAuth 2.0 iClient resource

dataLoad.svg​​ How to retrieve client ID and client secret

Scopes *

Scopes are OAuth 2.0 permissions that Google BigQuery defines to limit access to your account.

dataLoad.svg​​ How to configure scopes

Tip

This connector documentation describes only the settings shown for the Simple view. For the corresponding HTTP settings, see OAuth 2.0 auth universal connector documentation.

How to retrieve your client ID and secret

  1. Sign in to your Google BigQuery account.

  2. Navigate to Credentials > APIs & services.

  3. Click Configure consent screen.

  4. Determine whether the application will be Public or Internal. It is recommended to set the application to Internal , to be available only to your organization.

  5. Navigate to the OAuth consent screen page.

  6. Provide an application name and click Save and continue .

  7. Add or remove scopes and click Save and continue.

  8. Navigate to Create credentials > OAuth client ID.

  9. Click Web application from the dropdown menu and provide a unique name.

  10. In the Redirect URI field, copy and paste the URI mentioned below depending on your instance:

    • For NA: paste https://integrator.io/connection/oauth2callback

    • For EU: paste https://eu․integrator.io/connection/oauth2callback

  11. Click Create.

  12. Copy Client ID.

  13. Copy Client secret.

    Oauth client created google.png

Warning

Depending on your browser history and the permissions you’ve granted, you may see the following screen when attempting to log in:

google-warning.png

If so, click Advanced , then Go to integrator.io (unsafe) to allow the exception and continue.

Configure scopes

  1. Click Scope.

  2. To access all the scopes in the API click the » button.

    – or –

    Check the scopes you want to add and click the > button.

  3. Click Save.