# BigQuery

Allows you to configure BigQuery as a destination for Inforiver writeback. You can either configure using the JSON or the P12 key type. The details listed in the table below will have to be entered depending on the chosen key type:

| JSON(Recommended) | P12                   |
| ----------------- | --------------------- |
| Dataset ID        | Project ID            |
| Json Key          | Dataset ID            |
| Table Name        | Service Account Email |
|                   | Private Key           |
|                   | Table Name            |

{% hint style="info" %}

* If the tenant administrator creates a connection at admin level, the Dataset ID and Project ID fields will be populated automatically.
* Ensure that the user has permission to SELECT, INSERT, UPDATE, and DELETE data from the table
  {% endhint %}

<div><figure><img src="/files/oiwzKRFCzRnYNQEcHaHu" alt=""><figcaption><p>Configuring BigQuery with JSON key type</p></figcaption></figure> <figure><img src="/files/XBskkrA5rCdRVeVFsV2u" alt=""><figcaption><p>Configuring BigQuery with P12 key type</p></figcaption></figure></div>

### 1. Generating the JSON key

&#x20;Select the **Create new key** option from the ADD KEY dropdown.

<figure><img src="/files/Ktc8IAwtGpiLhMlklEVS" alt=""><figcaption><p>Create new key</p></figcaption></figure>

Select the JSON radio button.

<figure><img src="/files/pmsASCJi4gZ7jFgmWLt6" alt=""><figcaption><p>Choose the JSON option</p></figcaption></figure>

<figure><img src="/files/ElJb5o6ecnSD37XgjuMi" alt=""><figcaption><p>Key saved notification</p></figcaption></figure>

### 2. Roles

Ensure that the account has “Data Editor” permission.

<figure><img src="/files/SFYGBzAFnTeKsygciXTb" alt=""><figcaption><p>Account should have Data Editor permissions</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.inforiver.com/working-with-inforiver/12.-data-writeback/destinations/bigquery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
