# Add a Data Source

To add a new **Data Source**, follow these steps:

**Step 1**: In the left navigation panel, click **Data Source**.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2F628Tw3GpRFaV2WhyqZp7%2Fimage.png?alt=media&#x26;token=e2cd30c5-4419-4fd5-bbc0-89098b0ae92d" alt=""><figcaption></figcaption></figure>

**Step 2**: Select **Add New Data Source** located at the top-right corner of the screen.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2Fq1zZYzIYgE5xvD0bRjGV%2Fimage.png?alt=media&#x26;token=4d64a444-d95f-4a5b-81e5-4d9902bed766" alt=""><figcaption></figcaption></figure>

**Step 3**: In the **Name** field, enter the name of the **Data Source**.

**Step 4**: In the **Description** field, enter a brief description of the **Data Source**.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2Fvcwk6k1bMhM45rJHmmR7%2Fimage.png?alt=media&#x26;token=60bf67f2-88ce-4abe-8c9b-539eebcea0c0" alt=""><figcaption></figcaption></figure>

**Step 5**: Under the **Source Type** section, click **Select Source Type** to choose the appropriate option.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FC5S0ehpSaNRiYJmbBadH%2Fimage.png?alt=media&#x26;token=9df612b7-c851-468d-9852-d85692b0b10e" alt=""><figcaption></figcaption></figure>

**Step 6**: This will open a list of available **Source Types** on the right-hand side. Select the appropriate **Source Type** for your needs. The available options include:

* Cloud Storage
* File Storage
* Database
* Facebook
* Shopify
* Database

### Overview of Source Types <a href="#overviewofsourcetypes" id="overviewofsourcetypes"></a>

### Cloud Storage <a href="#cloudstorage" id="cloudstorage"></a>

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourceaws.png) Click **AWS S3**.

Under the **Connector** section, click **Select Connector** to choose the appropriate option.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2Fm135tXSpP2BP2hshQc7T%2Fimage.png?alt=media&#x26;token=ba0fb6b2-1a94-4a4d-bbc2-24db480ac119" alt=""><figcaption></figcaption></figure>

When you click **Select Connector**, a **Select Connectors** panel opens on the right-hand side. You can either search and select a connector or create a new connector by clicking **Create Connector**.

Choose the appropriate connector.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FQZa8OkiISGYOygxK0Pwk%2Fimage.png?alt=media&#x26;token=daaec1af-62bd-4461-973b-abf0dc1afe56" alt=""><figcaption></figcaption></figure>

**Destination Properties**

Under **AWS Region**, click the **Select** dropdown and choose the appropriate region.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcepropertiesone.png)

Click the **Bucket Name** field to enter the appropriate name.

Click the **Object Key** field to enter the appropriate key.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcedestinationdescription.png)

**Data Format**

Under the **Data Format** field, in the **Format Type** section, click the **Select** dropdown to choose the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcedataformate.png)

**File Format**

Under **Compression Type**, click the dropdown to select the appropriate option.

Under **Content Encoding**, click the dropdown to select the appropriate option.

Under **Encryption Type**, click the dropdown to select the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcefileformat.png)

### File Storage <a href="#filestorage" id="filestorage"></a>

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcesftp.png) Click **SFTP**.

Under the **Connector** section, click **Select Connector** to choose the appropriate option.

When you click **Select Connector**, a **Select Connectors** panel opens on the right-hand side. You can either search and select a connector or create a new connector by clicking **Create Connector**.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FV80un7TUwol6jmaAmm0N%2Fimage.png?alt=media&#x26;token=5ebfc939-8c93-46da-adb2-658d8fee46f7" alt=""><figcaption></figcaption></figure>

**Data Source Properties**

Click the **Directory Path** field to enter the appropriate path.

Click the **File Pattern** field to enter the appropriate pattern.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/directorypathone.png)

**Data Format**

Under the **Data Format** field, in the **Format Type** section, click the **Select** dropdown to choose the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcedataformate.png)

**File Format**

Under **Compression Type**, click the dropdown to select the appropriate option.

Under **Content Encoding**, click the dropdown to select the appropriate option.

Under **Encryption Type**, click the dropdown to select the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcefileformat.png)

### Database <a href="#database" id="database"></a>

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcepro.png) Click **POSTGRES**.

When you click **Select Connector**, a **Select Connectors** panel opens on the right-hand side. You can either search and select a connector or create a new connector by clicking **Create Connector**.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2F2TIcYHhZ4MxlwvVoswVG%2Fimage.png?alt=media&#x26;token=2a6d5071-f76c-457f-9c5d-26ba97f054b6" alt=""><figcaption></figcaption></figure>

**Data Source Properties**

Under the **Database Engine** field, click the dropdown to select the appropriate option.

In the **SQL Query** field, enter the appropriate query.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/sqlquery.png)

**Placeholders**

Under the **Placeholders** section, click Add.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasaverplaceholder.png)

Click the **Name** field to enter the name of the placeholder.

Click the **Value** field to enter the appropriate value.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/placeholdername.png)

Click the **Data Type** dropdown to select the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datatypeselect.png)

Click the **Is an Array?** field dropdown to select the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/placeholderisany.png)

**Note**: By clicking Add More, you can add more items.

**Timestamp Column (To fetch delta set of records)**

Click the **Table Name** field to enter the appropriate name.

Click the **Column Name** field to enter the appropriate name.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/placeholdercolumnname.png)

**Data Format**

Under the **Data Format** field, in the **Format Type** section, click the **Select** dropdown to choose the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcedataformate.png)

### Facebook <a href="#facebook" id="facebook"></a>

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcefacebook.png) Click **Facebook Ads**.

When you click **Select Connector**, a **Select Connectors** panel opens on the right-hand side. You can either search and select a connector or create a new connector by clicking **Create Connector**.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2F0886TE6aRWzFclOngep0%2Fimage.png?alt=media&#x26;token=3f055d3b-807e-4344-88a3-05ccc574fb47" alt=""><figcaption></figcaption></figure>

**Data Source Properties**

Click the **Fields** section to enter the appropriate information.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasaverfields.png)

Click the **Level** dropdown to select the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasaverlavel.png)

Click the **Time Increment (in days)** field to enter the appropriate value.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasavertimeincrement.png)

**Data Format**

Under the **Data Format** field, in the **Format Type** section, click the **Select** dropdown to choose the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcedataformate.png)

**File Format**

Under **Compression Type**, click the dropdown to select the appropriate option.

Under **Content Encoding**, click the dropdown to select the appropriate option.

Under **Encryption Type**, click the dropdown to select the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcefileformat.png)

### Shopify <a href="#shopify" id="shopify"></a>

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcespotify.png) Click **Shopify Orders**.

When you click **Select Connector**, a **Select Connectors** panel opens on the right-hand side. You can either search and select a connector or create a new connector by clicking **Create Connector**.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FiG0EXtsjFd9MygU25BYZ%2Fimage.png?alt=media&#x26;token=ec1dfbaf-7162-4d6f-ac86-ea11323d1124" alt=""><figcaption></figcaption></figure>

**Data Source Properties**

Click the **Domain** field to enter the appropriate domain.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasaverdomain.png)

Click the **API Version** dropdown to select the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasaverapiversion.png)

Click the **Backdated Orders History (in days)** field to enter the appropriate number of days.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/backdatedorders.png)

**Data Format**

Under the **Data Format** field, in the **Format Type** section, click the **Select** dropdown to choose the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcedataformate.png)

### Database <a href="#database" id="database"></a>

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourceingestlab.png) Click **Ingest Labs - Offline Conversions**.

When you click **Select Connector**, a **Select Connectors** panel opens on the right-hand side. You can either search and select a connector or create a new connector by clicking **Create Connector**.

<figure><img src="https://2731380315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FgJsuifydTHG3QkDgyT2U%2Fimage.png?alt=media&#x26;token=c493f98b-8b07-4444-a340-8954e8c84042" alt=""><figcaption></figcaption></figure>

**Data Source Properties**

Click the **Engine Name** field dropdown to select the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasaverenginename.png)

Click the **Table Name** field to enter the appropriate name.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasavertablename.png)

**Data Format**

Under the **Data Format** field, in the **Format Type** section, click the **Select** dropdown to choose the appropriate option.

![Data Source](https://stg.ingestlabs.com/docs/images/customerdataplatformimages/datasourcedataformate.png)

Once you have entered all necessary information, click the **Save** button to save the **Data Source** you’ve created.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaDMDmegqZUJFhJhF4JQG%2Fuploads%2FO6HjOptBO9pisYLie0Jp%2FAdd%20a%20screen.mp4?alt=media&token=fdf0a7bd-0c9f-49ae-b57c-bb2cb3e035ba>" %}
