The Trade Desk campaign configuration

At a glance: The Trade Desk, an AppsFlyer ad network integrated partner, uses its enhanced mobile advertising solution to cultivate strategic, scalable, and smart campaigns to meet the needs of cross-device users. The Trade Desk offers click-based mobile attribution, view-through mobile attribution, and click-based retargeting, all of which can be recorded through AppsFlyer.

Setting up The Trade Desk (TTD)

Follow these steps to enable AppsFlyer campaign measurement.

Step 1: Define conversion events in TTD

  1. On the left menu of your TTD advertiser page, click DATA.
  2. From the top menu, click Add App Data.
  3. Enter the following fields on the Create App Data page:
    • App Name: Enter the name of the app.
    • Operating System: Select either Android or iOS
      Note: TTD supports CTV under both the Android and iOS options.
    • Tracking Vendor: Select AppsFlyer.
    • Events: Click ADD EVENT to add conversion events and enter the fields: 
      • EVENT NAME: Enter the event name.
        Note: Make sure the name is written precisely as in AppsFlyer, including capitalization, spaces, and symbols.
      • [Optional] DESCRIPTION: Add a description. 
      • [Optional] USAGE OF COLLECTED DATA: Select Attribution. This option includes both attribution and retargeting.
      • To add more events, click ADD EVENT and repeat the process.
    • Conversion Credit Source: Select which source to attribute conversions, either AppsFlyer or The Trade Desk. 
      • For measuring cross-device and TTD buy, select The Trade Desk.
        For a holistic view of measurement not just in TTD, select AppsFlyer.
      • Never change this selection during a campaign. 
      • Make sure to select the correct source before clicking CREATE APP DATA. You can't change your conversion credit source during a campaign.

Step 2: Define conversion events in AppsFlyer

For AppsFlyer to define conversion events and enable you to send event postbacks to TTD, you must first integrate TTD with AppsFlyer and set up the following configurations:

  • Integration settings (including the configuration of event postbacks)
  • 归因链接
  • 授权

Step 3: Map defined conversion events from AppsFlyer 

  1. From the TTD left menu, click CAMPAIGNS.
  2. Scroll down to Campaigns and select a campaign from the list.
  3. Click Edit Reporting & Attribution.
  5. Under CONVERSION DATA SOURCE, select or type AppsFlyer. AppsFlyer events are now mapped to TTD events.
    • If you chose in Step 1 (Conversion Credit Source) to have conversions attributed by TTD, select here Household to see conversions in all available channels (such as mobile in-app and CTV).
    • If you chose AppsFlyer in Step 1, select here None.
  7. Click SAVE.

Step 4: Add click and impression trackers to campaign creatives

In this step, you'll add the click and impression trackers that were created in AppsFlyer to each of the creatives in TTD.

  1. Under CAMPAIGNS in the TTD left menu, click the CREATIVES from the top tab.
  2. Select a creative from the list of creatives associated with the current campaign.
  3. Scroll down to Tracking.
  4. Copy the attribution links (click-thorough and view-through) from AppsFlyer, and paste them to each of the 1x1 Pixel Impression Tracking URL fields. 
  5. Click SAVE CHANGES.
  6. Repeat this step for each of the creatives associated with the campaign. 


If you've chosen for conversions to be attributed by TTD (in Step 1), you can edit the attribution windows:

  1. From the menu of icons on the right of any TTD page, click the cogwheel to open the Advertiser Preferences.
  2. Scroll down to Attribution Windows and click the edit button on the right.
  3. From the Manage Attribution Windows page, edit the attribution windows:
    • De-duplication Windows: The number of conversions you can see in a certain period of time.
    • Campaign Attribution Windows: The period of time from ad exposure to the conversion.
  4. Click SAVE.

Integrating TTD with AppsFlyer

The setup is done from the Active Integrations page, but to find the partner you must first go to the marketplace


  1. 进入Marketplace平台:在任意一个AppsFlyer页面中,点击顶部菜单中的Marketplace
  2. 搜索并选择相关渠道。
  3. 点击设置对接后,界面会跳转到对接设置页。
  4. 打开对接选项卡中的启用该渠道开关。
  5. 请按照下文说明,通过相关选项卡完成对接配置。

TTD configuration window includes three active tabs: Integration, Attribution link, and Permissions. Click the items below to read about the tabs setup.




On your first visit, you'll need to turn on the Activate partner toggle to set up the integration. The toggle must remain on for as long as you work with TTD.
For more details about partner activation please click here.


For iOS apps, the Enable Advance Privacy toggle appears. When turned on, it limits the sharing of user identifiers with the partner. Note that when the Aggregated Advanced Privacy toggle is turned on in the App Settings, Enable Advanced Privacy is turned on and locked by default. 


Tracker and advertiser ID

The Trade Desk connects with AppsFlyer via a unique network ID. If you don't already have the Tracker_ID and the advertiserid, you must obtain them from The Trade Desk to continue with the integration.


Enable View-Trough attribution

Turn on Enable View-Through attribution to attribute view-through installs from The Trade Desk. The view-through lookback slider is available on the attribution link tab (described below).



Send automatic postbacks to The Trade Desk following user installs and re-engagements. Use this section to define the source of the users that allow sending these postbacks:

  • This partner only: for events coming only from users attributed to The Trade Desk.
  • All media sources including organic: to have your entire user base available to be reported to The Trade Desks. 


As an all-installs network, The Trade Desk prefers to receive postbacks for all new installs of your app from any source, and they recommend selecting All media sources including organic to send all install postbacks to The Trade Desk.


Map AppsFlyer events with TTD via postbacks. If postback sending is enabled, this includes rejected in-app events (events blocked by Protect360 or events found to be non-compliant with target validation rules).



  1. Enter the advertiserid and Tracker_ID.
  2. Enable In-app event postbacks.
  3. Set the In-app event postback window, if required (read more about in-app event postback window configuration).
  4. If available, select whether to send events automatically or manually. Learn more about sending all events as they are.
  5. Click Add event to add an SDK or server-to-server event to the list.
  6. 填写所需参数。
  7. [Optional] Clickconditional-iae-postbacks-icon.pngto set conditions for sending certain in-app events to TTD.
    Learn more about conditional in-app event postbacks
参数名称 说明


  • 请确保以非自然方式激活应用,并完成该事件,然后再次检查该事件是否在列表中。
  • AppsFlyer事件中输入该事件的名称,然后点击创建自定义事件。详情请见自定义事件映射


  • 仅该合作渠道:仅回传归因到该渠道的事件。
  • 所有媒体渠道,包括自然流量:回传归因到任何渠道以及自然量的事件。
  • 无数据(默认):仅发送事件本身,不带事件值。
  • Values and revenue: send all the event parameters, including the revenue value (if exists in the event).
  • 仅发送值:发送收入以外的所有参数。


Generate and save attribution links and send them to TTD for attributing specific campaigns, ad sets, or single ads - both for UA and retargeting campaigns. You can use either a single-platform link or OneLink.

Attribution link parameters 

Adding parameters to the attribution link enables you to perform thorough drill-down analyses. Parameters that are already defined on the attribution link can be edited by adding them and their new values here. When saving the attribution link, all the parameters configured in this tab are saved.



Default parameters

名称 说明 参数
Site ID

Set your site ID parameter to attribute installs to specific publishers. If many publishers exist, we advise limiting the number of used site IDs and using the sub-site ID parameter, to avoid exceeding the site ID limitations.

Campaign 名称 Add your campaign name to compare different campaigns running with TTD. C
Campaign ID Add your campaign ID. af_c_id
Adset ID

Add your adset ID to compare performance of all your ads per adset.

Ad ID Add your ad ID.  af_ad_id

You can add more parameters for the attribution link. Learn more about setting up the attribution link and about attribution link structure and parameters.



Use the slider to set the maximum time from click to install. Only installs (first launches) that take place within the lookback window are attributed.

Lookback window range: 1-23 hours or 1-30 days.

Attribution link parameter: af_click_lookback

Learn more about click lookback window.

Click-through attribution link: Contains all the parameters you included in the attribution link setup. You can copy the link and send it to the partner to be activated when your leads click a corresponding ad. 

View-through attribution 


Use the slider to set the maximum time from impression to install. Only installs (first launches) that take place within this lookback window, following an ad impression, are attributed to the partner, providing there was no other relevant ad click.

Lookback window range: 1-24 hours.

Attribution link parameter: af_viewthrough_lookback

Learn more about view-through attribution.

View-through attribution link: Contains all the parameters you included in the attribution link setup. You can copy the link and send it to the partner to be activated when your leads click a corresponding ad. 


Cost integration is not available for The Trade Desk.


Ad revenue is not available for The Trade Desk.


In this tab, you can select the permissions to grant The Trade Desk, whether they act as an ad network, agency, or even both. Note that even if attribution is disabled for The Trade Desk, the permissions tab can be active and you can grant control to The Trade Desk.

Use these toggles to give the ad network permissions to handle its own configuration for your app: 


  • Allow to configure integration: Allow TTD to set up the integration tab, except for in-app event postbacks
  • Allow to configure in-app event postbacks: Allow TTD to setup in-app event postback mapping to itself, on the integration tab
  • Allow access to your retention report: Only for TTD's own retention data
  • Allow access to your aggregate loyal user data: Only for TTD's own loyal user data
  • Allow access to your aggregate in-app events data: Only for TTD's own in-app events data
  • Allow access to your aggregate revenue data: Only for the revenue data attributed to TTD
  • Allow access to your Protect360 dashboard: Only for TTD's own Protect360 data, and providing you have this feature enabled