# Connect

Connect a Trade Desk advertiser and its Real-Time Conversion tracking tag to a profile, from the dashboard or with the API.

The Trade Desk has no sign-in flow and its Real-Time Conversions API takes no secret. You send Zernio the advertiser and the tracking tag your conversions count against.

## Connect with the ids

Send the Advertiser ID and the tracking tag id for a profile:

```bash
curl -X POST "https://zernio.com/api/v1/connect/tradedesk-ads/credentials" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "profileId": "PROFILE_ID",
    "advertiserId": "abc1234",
    "trackerId": "xyz9876"
  }'
```

```json
{ "accountId": "6507a1b2c3d4e5f6a7b8c9d0", "advertiserId": "abc1234", "trackerId": "xyz9876", "accountName": "Trade Desk tag xyz9876" }
```

| Field | Where to find it |
|-------|------------------|
| `advertiserId` | Advertiser ID, in **Advertiser Preferences** in The Trade Desk. Required. |
| `trackerId` | The id of a Real-Time Conversion tracking tag. Your Trade Desk representative creates it. Required. |
| `name` | A display name for the account, up to 100 characters. Optional: defaults to "Trade Desk tag" and the tag id. |

In the dashboard, open **Connections**, pick **The Trade Desk** and paste the same ids.

## How it behaves

- Nothing secret is stored: the two ids route each event.
- The Trade Desk does not check either id when it receives events. A wrong id loses conversions without an error, so check the tag's conversions in The Trade Desk after the first sends.
- A profile holds one tracking tag. Connecting the same tag again replaces its advertiser.
- The tracking tag id is the connection's only destination.

## If it fails

| Error | Cause | Fix |
|-------|-------|-----|
| `400` naming `advertiserId` or `trackerId` | The id is not a short code of 5 to 12 letters and digits | Copy the id again from The Trade Desk. |
| `402` | The account cannot connect more accounts on its plan | Upgrade the plan or remove an account. |
| `403` | The Ads add-on is off | Turn on the Ads add-on, then connect. |
| `409` with `profile_platform_conflict` | The profile already has another Trade Desk tracking tag connected | Disconnect it first, or connect this tag to another profile. |

## Related

- [Connect a Trade Desk tracking tag](/connect/connect-trade-desk-ads-credentials)
- [List accounts](/accounts/list-accounts)
- [Conversions](/platforms/the-trade-desk/conversions)