# How to Integrate StackAdapt with Daton

### Pre-requisites

Make sure you have an active Daton and StackAdapt account before you begin. API access is required for the StackAdapt account.

### Task &#x31;**:** Get the API Key for Your StackAdapt Account

* Contact your StackAdapt account manager or customer success manager to request an API key. The API key is required for authentication when making API calls.
* The account manager can generate an API key and provide it to you. Make sure to store the API key securely.
* Once you have the API key, you can use it to authenticate when integrating with the StackAdapt API to pull data or execute other functions programmatically.

For further information, see the [Authorization](https://docs.stackadapt.com/v2#!/General/authorization) and [API integrations](https://www.stackadapt.com/ad-tech-enterprise-api) pages.

### Task 2: Integrate Daton with StackAdapt

1. Log in to your [Daton account](https://daton.sarasanalytics.com/u/integrations-list) and search for StackAdapt in the list of Connectors, then click **Configure**.
2. Enter the following details and click **Authenticate**:&#x20;

   * Integration Name
     * Optionally, add a description to identify the integration.
   * Replication Frequency&#x20;
   * Replication Start Date

   **Note** that the Integration Name will be used to create the integration tables and cannot be modified later.
3. Optionally, expand the **Advanced Configuration Options** section and, based on your requirements, modify the options to control the loading behavior of Daton.

   <figure><img src="/files/QfkwBGVK8JP7gXMK1UA1" alt=""><figcaption></figcaption></figure>
4. Enter the API Key provided by the account manager or customer success manager for your StackAdapt account.&#x20;
   * Then click **Authenticate**.

     <figure><img src="/files/jMQAKTJ1oMJw2o7dH5om" alt=""><figcaption></figcaption></figure>
5. After successful authentication, you will be prompted to choose from the list of available tables. Select the required tables and click **Next**.

   * Optionally, based on your requirement, select specific options for each selected table.&#x20;

   <figure><img src="/files/VGvmmqPevUij9rxvk7oq" alt=""><figcaption></figcaption></figure>
6. Select the required fields for each table and click **Submit.**&#x20;

   **Note** that you will be prompted to select the destination for your account.

   <figure><img src="/files/fOSXJKbSbiSyq73O0t1E" alt=""><figcaption></figcaption></figure>
7. Select the destination for your store or shop and click **Confirm**. An integration successful message will be displayed.

## Important Note

* Integrations would begin in the Pending state and change to the Active state once the first job successfully loaded data into the configured warehouse.&#x20;
* Users can check job status and process logs from the integration details page by clicking on the integration name in the active list.&#x20;
* Users can Re-Authenticate, Edit, Clone, Pause, or Delete the integration at any moment by clicking on settings. You can also adjust the frequency and history of the integration.&#x20;
* On the Sources page, click Integration to access each table in your integration. The page also shows the state of each table, the last replicated time, and Reload access buttons.&#x20;


---

# 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://daton-sarasanalytics.gitbook.io/daton/integrations/data-sources/advertising/stackadapt/how-to-integrate-stackadapt-with-daton.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.
