# The Trade Desk Import Integration Reach audiences everywhere with the world's leading independent demand-side platform. You can import Advertiser, Campaign, Data Group, and Tracking Tags from The Trade Desk into Treasure Data. Advertise to audiences across the world, from anywhere in the world. ## Prerequisites - Basic knowledge of Treasure Data, including the [TD Toolbelt](https://toolbelt.treasuredata.com/) - The Trade Desk Login account - Authorized Treasure Data account access ## Use the TD Console to Create Your Connection ### Create a New Connection In Treasure Data, you must create and configure the data connection prior to running your query. As part of the data connection, you provide authentication to access the integration. 1. Open **TD Console**. 2. Navigate to **Integrations Hub** >  **Catalog**. 3. Search for and select **Trade Desk Input.** ![](/assets/image2021-4-29_13-44-51.0b81d7494a9e91e0cb8e1e817784f1c5e19038ad513b39fe7c01bc2344782aeb.2c0cc023.png) 1. Type your API endpoint username and API endpoint password for Trade Desk. That information can be obtained from the Trade Desk team. [https://api.thetradedesk.com/v3/portal/api/doc/Authentication](https://api.thetradedesk.com/v3/portal/api/doc/Authentication) > The platform API credentials provided by your Account Manager. ![](/assets/image2021-4-29_13-46-20.ff1ab8143d8cd62a80c88d27dbba9cc12eae61ced937995c96a799730b95bbd4.2c0cc023.png) 1. Enter a name for your connection. 2. Select **Continue.** ### Transfer Your Data to Treasure Data After creating the authenticated connection, you are automatically taken to Authentications. Specify the data that you want to import: - Advertiser - Campaign - Data Group - Tracking Tags 1. Search for the connection you created. 2. Select **New Source**. 3. Type a name for your **Source** in the Data Transfer field**.** Select **Next**. The Source Table dialog opens. ![](/assets/image2021-4-29_14-6-14.a84ae510ce6d0b245d7b711b9aa47fa13513e232bb48636f8c47913a147beec0.2c0cc023.png) Edit the following parameters: | Data Type | Additional Parameter | Description | | --- | --- | --- | | Advertiser | | | | Campaign | Advertiser ID | Your Advertiser ID is available from The Trade Desk dashboard and your Account Manager can provide you with your Advertiser Secret Key. | | Data Group | Advertiser ID | Your Advertiser ID is available from The Trade Desk dashboard and your Account Manager can provide you with your Advertiser Secret Key. | | Tracking Tags | Advertiser ID | Your Advertiser ID is available from The Trade Desk dashboard and your Account Manager can provide you with your Advertiser Secret Key. | 1. Select **Next**. The Data Settings page can be modified for your needs or you can skip the page. ![](/assets/image2021-4-29_15-7-3.894147f52008fb3cbed31314a7aefb185f28e53503eec33d6ee22035bb4c0bcb.2c0cc023.png) 1. Optionally, edit the following parameters: | Parameter | Description | | --- | --- | | Max retry count per API Call | Maximum retry count per API call | | Initial retry interval per API call | Initial retry interval per API call in milliseconds | | Max retry interval per API call | Maximum retry interval per API call in milliseconds | 1. Select **Next**. ### Data Preview You can see a [preview](/products/customer-data-platform/integration-hub/batch/import/previewing-your-source-data) of your data before running the import by selecting Generate Preview. Data preview is optional and you can safely skip to the next page of the dialog if you choose to. 1. Select **Next**. The Data Preview page opens. 2. If you want to preview your data, select **Generate Preview**. 3. Verify the data. ### Data Placement For data placement, select the target database and table where you want your data placed and indicate how often the import should run. 1. Select **Next.** Under Storage, you will create a new or select an existing database and create a new or select an existing table for where you want to place the imported data. 2. Select a **Database** > **Select an existing** or **Create New Database**. 3. Optionally, type a database name. 4. Select a **Table**> **Select an existing** or **Create New Table**. 5. Optionally, type a table name. 6. Choose the method for importing the data. - **Append** (default)-Data import results are appended to the table. If the table does not exist, it will be created. - **Always Replace**-Replaces the entire content of an existing table with the result output of the query. If the table does not exist, a new table is created. - **Replace on New Data**-Only replace the entire content of an existing table with the result output when there is new data. 7. Select the **Timestamp-based Partition Key** column. If you want to set a different partition key seed than the default key, you can specify the long or timestamp column as the partitioning time. As a default time column, it uses upload_time with the add_time filter. 8. Select the **Timezone** for your data storage. 9. Under **Schedule**, you can choose when and how often you want to run this query. #### Run once 1. Select **Off**. 2. Select **Scheduling Timezone**. 3. Select **Create & Run Now**. #### Repeat Regularly 1. Select **On**. 2. Select the **Schedule**. The UI provides these four options: *@hourly*, *@daily* and *@monthly* or custom *cron*. 3. You can also select **Delay Transfer** and add a delay of execution time. 4. Select **Scheduling Timezone**. 5. Select **Create & Run Now**. After your transfer has run, you can see the results of your transfer in **Data Workbench** > **Databases.**