The Trade Desk - Conversions

What Is The Trade Desk?

The Trade Desk is a demand-side platform (DSP) that allows advertisers to programmatically purchase digital advertising across various channels. It provides advanced audience targeting, real-time bidding, and robust data integrations to help marketers reach the right users at the right time. The platform is designed for transparency and control, offering detailed reporting, custom algorithm tools, and support for first-party data. With integrations into a wide range of inventory sources and identity solutions, The Trade Desk helps advertisers maximize the efficiency and effectiveness of their ad spend.


Product Type: Advertising

Integration Type: Starter Kit & ID Sync

Event Source Type: Web & Mobile

Event Scope: Conversion Events


Capabilities

  • Tracks events like page views, product views, add-to-cart, purchases, etc
  • Sends event data server-to-server via the Realtime Conversion API
  • ID Sync (cookie sync) captures the Trade Desk ID (ttd_id) for conversion attribution
  • Allows custom event mapping for key e-commerce events
  • Includes location data, referrer URL, IP address, and user agent for better attribution

Considerations

  • This integration is built for conversion tracking via The Trade Desk’s Realtime Conversion API—be sure to map the events you plan to track as conversions in-platform (e.g., purchases, add-to-cart).

Identity Sync

  • Sync Available: Yes
  • Required for Starter Kit: Highly Recommended
  • Prerequisites: None
  • Documentation: The Trade Desk Sync

Sync Details

  • The Trade Desk cookie sync captures the Trade Desk ID (ttd_id) using a fetch request to the Match API.
  • The ttd_id is required for conversion attribution and is automatically included in all server-side events once synced.
  • The ID is stored in first-party storage for up to 365 days by default.
  • A temporary failure flag is stored for 1 day if the sync request fails.

Starter Kit Setup Guide

1. Deploy the The Trade Desk Sync

  • To collect the sync value (ttd_id), you must implement The Trade Desk ID sync. Refer to the following documentation to complete the setup: The Trade Desk - ID Sync Guide.

2. Gather Credentials

Contact your Trade Desk representative to obtain the following IDs:

  • Advertiser ID – Required for non-merchants; identifies the advertiser associated with the tracking call.
  • Merchant ID – Required for merchants; assigned during the onboarding process.
  • Pixel ID – Required for all setups; identifies the event tracker or universal pixel tied to the conversion event.

3. Add The Trade Desk - Conversions Integration

From the integration library, add a The Trade Desk - Conversions integration. Then, fill out the Connection Parameters:

Connection ParameterDescription
ADVERTISER_IDThe Trade Desk Advertiser ID. Required for non-merchants. Provided by your Trade Desk representative. *Optional field. Leave blank if you don’t have this ID.**
MERCHANT_IDThe Trade Desk Merchant ID. Required for merchants. Provided during onboarding. *Optional field. Leave blank if you don’t have this ID.**
PIXEL_IDThe Trade Desk Pixel ID used for tracking conversions. Required for all setups.

*You must provide either an advertiser ID or a merchant ID, depending on your use case and The Trade Desk account setup.

3. Configure Event Mapping

  • MetaRouter provides all of the event mappings that The Trade Desk - Conversions integrations typically require. You may add custom events, parameters or mappings in accordance with The Trade Desk’s API documentation. Please see below for details on event mapping.

4. Deploy to Pipeline

  • In the Pipelines tab, add your The Trade Desk - Conversions integration.
  • Select the correct integration revision
  • Click Add Integration to finalize deployment.

Event Mappings

Global

Global mappings will be applied to all events. If your parameter names do not match the Expected Inputs provided, you will need to overwrite the Inputs provided with your own.

Output KeyDescriptionExpected Input
pixel_id RequiredString: Trade Desk pixel ID.Enrichment – $$PIXEL_ID$$
merchant_id Required*String: Merchant account ID.Enrichment – $$MERCHANT_ID$$
adv Required*String: Advertiser ID.Enrichment – $$ADVERTISER_ID$$
tdid Highly RecommendedString: The Trade Desk universal ID.context.providers.theTradeDesk.ttd_id
daidString: Device advertising ID (iOS or Android)context.device.advertisingId
client_ipString: IP address of the user.context.ip
referrer_urlString: Referrer URL.context.page.url
cityString: User’s city from address.Expression – from traits.address.city
regionString: User’s state/region.Expression – from traits.address.state
zipString: Zip or postal code.Expression – from traits.address.postalCode
countryString: Country code.Expression – from traits.address.country
data_processing_optionObject: Compliance field.Enrichment – { policies = [""], region = "" }
Expression OutputDynamically assigns idfa or aaid based on device type and sets adid/adid_type using theTradeDesk ID.Expression – auto-generates device and ad identifiers

* You must provide either an advertiser ID or a merchant ID, depending on your use case and The Trade Desk account setup.


Event Specific

Page

Output KeyDescriptionExpected Input
event_nameString: Type of event.Enrichment – 'sitevisit'

Screen

Output KeyDescriptionExpected Input
event_nameString: Type of event.Enrichment – 'sitevisit'

Products Searched

Output KeyDescriptionExpected Input
event_nameString: Type of event.Enrichment – 'searchcategory'

Product Viewed

Output KeyDescriptionExpected Input
event_nameString: Type of event.Enrichment – 'viewitem'
itemsArray: Product information.Expression – Map from input.properties to item_code, name, qty, price, cat. *Only item_code is required.*

Product Added

Output KeyDescriptionExpected Input
event_nameString: Type of event.Enrichment – 'addtocart'
itemsArray: Product information.Expression – Map from input.properties to item_code, name, qty, price, cat. *Only item_code is required.*

Cart Viewed

Output KeyDescriptionExpected Input
event_nameString: Type of event.Enrichment – 'viewcart'
itemsArray: Cart contents.Expression – Map from input.properties.products to item_code, name, qty, price, cat. *Only item_code is required.*

Checkout Started

Output KeyDescriptionExpected Input
event_nameString: Type of event.Enrichment – 'startcheckout'
order_idString: Order ID.properties.order_id
itemsArray: Items in checkout.Expression – Map from input.properties.products to item_code, name, qty, price, cat. *Only item_code is required.*

Order Completed

Output KeyDescriptionExpected Input
event_nameString: Type of event.Enrichment – 'purchase'
order_idString: Order ID.properties.order_id
currencyString: ISO currency code.properties.currency
valueFloat: Total transaction value.Expression – from properties.revenue or total
itemsArray: Items purchased.Expression – Map from input.properties.products to item_code, name, qty, price, cat. *Only item_code is required.*

Product Added to Wishlist

Output KeyDescriptionExpected Input
event_nameString: Type of event.Enrichment – 'wishlistitem'
itemsArray: Wishlist items.Expression – Map from input.properties to item_code, name, qty, price, cat. *Only item_code is required.*

Required & Recommended Identifiers

These identifiers must be mapped to The Trade Desk - Conversions in order for successful user matching to occur. Without these IDs, any events sent to The Trade Desk may not be accurately reflected in reporting.

AttributeExampleSync Injector Required?
ttd_id Highly Recommendedabc-123-xycYes
daid RecommendedAEBE52E7-03EE-455A-B3C4-E57283966239No
idfa RecommendedAEBE52E7-03EE-455A-B3C4-E57283966239No
aaid Recommended38400000-8cf0-11bd-b23e-10b96e40000dNo

Integration Validation

  • After implementation, check your The Trade Desk Event Manager dashboard to confirm that the 1-day count and 7-day count columns are populating as events are received.
  • If you don’t have access to the Event Manager or are unable to verify events, please contact The Trade Desk Support for assistance.

Additional The Trade Desk Documentation