# Creating a Data Set using an API Connector

{% hint style="success" %}
*Check out the given GIF on how to create a Data Set using an API Connector.*
{% endhint %}

<figure><img src="/files/UP8qg332m0El8s2iK7pD" alt=""><figcaption></figcaption></figure>

* Click the ***New*** menu from the Data Center page.
* Select the ***Data Set*** option from the context menu.

&#x20;     ![](/files/u8LW63SqM3RmHp1jhPJv)

* The ***Data Source*** page containing all the data connectors opens.
* Use the ***Data Source*** filter to search for a specific API Data Connector (E.g., the below image displays **Google Analytics** as the data source filter).
* Select a data connector from the displayed list (E.g., in this case, a google analytics data connector is selected).
* Click the ***Create Data Set*** icon.&#x20;

<figure><img src="/files/rKUTIxGkrq52GnC4IopX" alt=""><figcaption></figcaption></figure>

* The **Google Analytics Dataset form** opens.
* Fill in the following information:
  * **Dataset Name**: Enter any user-defined name for the new dataset.
  * **Description**: Provide a brief description of the Data Set (It is an optional field).
  * **Data Connector Name**: This option comes pre-defined as per the selected data connector.
  * **Account:** This option comes pre-defined based on the selected google account.

<figure><img src="/files/qsZRFF4ujsTcEMb5fEqN" alt=""><figcaption></figcaption></figure>

* The user can select specific data using the below given drop-down lists:

  * **Select Web Property**: Select the required web property using the drop-down menu.
  * **Select View**: Select the required view using the drop-down menu.
  * **Dimensions**: Select the required dimensions using the drop-down menu (The selected      dimensions get displayed below with the ‘ga’ suffix).
  * **Metrics**: Select the required metrics using the drop-down menu (The selected metrics get displayed below with ‘ga’ suffix).

  <figure><img src="/files/ZQqr1lFkYWFHhjTMRoTu" alt=""><figcaption></figcaption></figure>

{% hint style="info" %} <mark style="color:green;">Please Note</mark>: *The **Web Property**, **View**, and **Metrics** are mandatory fields to create a Google Analytics Data Set.*
{% endhint %}

* **Apply Filter**: Enable the filter option. The filter query gets displayed below.    &#x20;

<figure><img src="/files/P1hXg1KZmB6eb8fqU1ab" alt=""><figcaption></figcaption></figure>

* **Date Type**: Select a Date Type using the given options- **Fixed Type** and **Dynamic Type.**
  * **Fixed Type**: Define a time range by specifying dates using the ***From date*** and ***To date*** options.

![](/files/IBOGtCtaUn4hqy6B4RSe)

* **Dynamic Type**: Select an option from the drop-down menu to define the time range.

![     ](/files/9DjgaLuYkM8GlnwNDnmx)

{% hint style="info" %} <mark style="color:green;">Please Note</mark>: *The Current Data Set is saved with **Fixed Type** option for the Date Type.*
{% endhint %}

* Click the ***Preview Data*** option.
* The ***Preview*** options below.
* The Save option gets enabled. Click the ***Save*** option.

![](/files/bmhHx6yh5nYfnVVdDKj5)

{% hint style="info" %} <mark style="color:green;">Please Note</mark>: *After getting the data preview in the tabular format, click the **Save** option.* &#x20;
{% endhint %}

* A success message appears, and the newly created Google Analytics dataset gets added to the **Data Sets** list.

![](/files/B1fb8Czvbj5Xh1eUdPtn)


---

# 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.bdb.ai/bdb-documentation/data-center/data-sets/creating-a-data-set-using-an-api-connector.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.
