You can write job results from Treasure Data directly to The Trade Desk. In The Trade Desk, you can then distribute advertisements to each DSP targeting segment.
Basic knowledge of Treasure Data, including the TD Toolbelt
An account in The Trade Desk
Authorized Treasure Data account access to The Trade Desk
This integration has two parts:
Cookie-syncing between The Trade Desk DMP and Treasure Data CDP: Required to create a mapping between The Trade Desk DMP ID and Treasure Data ID's td_global_id
Data export from Treasure Data CDP into The Trade Desk DMP: Based on the mapping created when you sync cookies, Treasure Data's ID translates segments keyed on their ID into segments keyed on The Trade Desk DMP. Then, you can export the translated segmented data into your The Trade Desk account using our output data connector.
Data Transfer Treasure Data to The Trade Desk
Implement a Cookie-Syncing Tag
Add code similar to the following into the website where The Trade Desk DMP's tag is already installed.
Use the TD Console to Create Your Connection
You can use the TD Console to configure your connection.
In The Trade Desk
Go to Your Advertiser > Preferences and scroll down to get your Secret Key
Create a New Connection
From TD Console, select Integrations Hub.
Search for and select theTradeDesk.
The following dialogue opens.
Edit the required Secret Key. Select Continue.
Name your new connection.
Configure Export Results in Your Data Connection
In this step, you create or reuse a query. In the query, you configure the data connection. In some cases, you must define the column mapping in the query.
Configure the Connection by Specifying the Parameters
Access TD Console and navigate to the query editor. Access the query that you plan to use to export data.
Select Output Results located at top of your query editor. The Choose Saved Connection dialog opens. Type the connection name in the search box to filter and select your connection.
Specify the parameters:
Advertiser ID (required): Your advertiser ID.
Select host name (required): Use the host name closest to the location of users targeted by your campaign. Default TOK (Tokyo)
Recency targeting (optional): Recency targeting (optional): A UTC timestamp by which a user, who qualifies for your target audience, is tagged. Omitting this field assumes the user was put into the segment as soon as The Trade Desk processed the data. Alternatively you specify a date and time by which a user is eligible for the data segment. Specify a timestamp in UTC. The format is: yyyy-MM-dd HH:mm. MM represents month (not minute), HH represents 24 hours (not 12). Default : blank
Data remains active in a duration of (required): Specify the length of time that a user remains active, as relative to Recency targeting; when the time expires, the data is not used for targeting. Specify the Time-to-live (TTL) in minutes. The time can't be more than 43200 mins (30 days). Minimum time recommended is 2880 mins(48 hours).
Max records per batch request (optional): Max Number of records to upload in each batch. Default: 1000
Sleep Per API request in Milliseconds (optional): The time, in milliseconds, that the system sleeps for each request. Default : 5000, which is equivalent to 5 seconds.
Retry Limit (optional): Number of retries before the system gives up. Default: 7.
Initial retry time wait in milliseconds (optional): The time, in milliseconds, between the first and second attempt. Default: 30000, which is equivalent to 30 seconds.
Max retry wait in milliseconds (optional): The time, in milliseconds, between the second and all subsequent attempts. Default: 120000, which is equivalent to 2 minutes.
HTTP Connect Timeout (optional): The time, in milliseconds, HTTP connect timeout. Default: 60000, which is equivalent to 1 minutes.
HTTP Read Timeout (optional): The time, in milliseconds, HTTP read timeout. Default: 300000, which is equivalent to 5 minutes.
Fail job if there are invalid records (optional): If selected, the job fails when invalid records are found during uploading. Default: unchecked
A sample configuration is as follows:
Example Queries to Populate The Trade Desk
From Treasure Data, run the following query with Output results into a connection for The Trade Desk:
Code Example for TDID
Code Example for DAID
Optionally Use Scheduled Jobs for Output
You can use scheduled jobs with Result Output, to periodically write the output result to a target destination that you specify.
Optionally Configure Export Results in Workflow
Within Treasure Workflow, you can specify the use of this data connector to output data.
Review information on using data connectors in workflow to export data.
Use TD Toolbelt and Your The Trade Desk Connection
You can use TD Toolbelt from the CLI to export to The Trade Desk.