Skip to content

Commit 7fb8428

Browse files
authored
Added testAuth method in TTD (#3179)
1 parent c4b03fd commit 7fb8428

File tree

1 file changed

+9
-0
lines changed
  • packages/destination-actions/src/destinations/the-trade-desk-crm

1 file changed

+9
-0
lines changed

packages/destination-actions/src/destinations/the-trade-desk-crm/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ const destination: AudienceDestinationDefinition<Settings, AudienceSettings> = {
6161
required: true,
6262
default: true
6363
}
64+
},
65+
testAuthentication: (request, { settings }) => {
66+
return request(`${BASE_URL}/crmdata/segment/${settings.advertiser_id}`, {
67+
method: 'GET',
68+
headers: {
69+
'TTD-Auth': settings.auth_token,
70+
'Content-Type': 'application/json'
71+
}
72+
})
6473
}
6574
},
6675
extendRequest({ settings }) {

0 commit comments

Comments
 (0)