Skip to content

Commit

Permalink
Revert "feat: trade desk real time conversions" (#1212)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravudia authored Feb 17, 2024
1 parent 0d9b8d7 commit 5120ec5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 248 deletions.
33 changes: 4 additions & 29 deletions src/configurations/destinations/the_trade_desk/db-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "THE_TRADE_DESK",
"displayName": "The Trade Desk",
"displayName": "The Trade Desk Audience",
"config": {
"cdkV2Enabled": true,
"supportsBlankAudienceCreation": true,
Expand All @@ -9,45 +9,20 @@
"disableJsonMapper": true,
"isAudienceSupported": true,
"supportsVisualMapper": true,
"supportedSourceTypes": [
"android",
"ios",
"web",
"unity",
"amp",
"cloud",
"warehouse",
"reactnative",
"flutter",
"cordova",
"shopify"
],
"supportedSourceTypes": ["warehouse"],
"supportedMessageTypes": {
"cloud": ["record", "track"]
"cloud": ["record"]
},
"supportedConnectionModes": {
"android": ["cloud"],
"ios": ["cloud"],
"web": ["cloud"],
"unity": ["cloud"],
"amp": ["cloud"],
"cloud": ["cloud"],
"warehouse": ["cloud"],
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"],
"shopify": ["cloud"]
"warehouse": ["cloud"]
},
"syncBehaviours": ["mirror"],
"destConfig": {
"defaultConfig": [
"audienceId",
"advertiserId",
"advertiserSecretKey",
"customProperties",
"dataServer",
"eventsMapping",
"trackerId",
"ttlInDays",
"oneTrustCookieCategories"
]
Expand Down
46 changes: 1 addition & 45 deletions src/configurations/destinations/the_trade_desk/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"configSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"required": ["advertiserId", "advertiserSecretKey", "trackerId", "dataServer"],
"required": ["advertiserId", "advertiserSecretKey", "dataServer"],
"type": "object",
"properties": {
"audienceId": {
Expand All @@ -20,10 +20,6 @@
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^([0-9]|[1-9][0-9]|1[0-7][0-9]|180)$"
},
"trackerId": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$"
},
"dataServer": {
"type": "string",
"enum": ["apac", "tokyo", "usEastCoast", "usWestCoast", "ukEu", "china"],
Expand All @@ -44,49 +40,9 @@
"connectionMode": {
"type": "object",
"properties": {
"android": {
"type": "string",
"enum": ["cloud"]
},
"ios": {
"type": "string",
"enum": ["cloud"]
},
"web": {
"type": "string",
"enum": ["cloud"]
},
"unity": {
"type": "string",
"enum": ["cloud"]
},
"amp": {
"type": "string",
"enum": ["cloud"]
},
"cloud": {
"type": "string",
"enum": ["cloud"]
},
"warehouse": {
"type": "string",
"enum": ["cloud"]
},
"reactnative": {
"type": "string",
"enum": ["cloud"]
},
"flutter": {
"type": "string",
"enum": ["cloud"]
},
"cordova": {
"type": "string",
"enum": ["cloud"]
},
"shopify": {
"type": "string",
"enum": ["cloud"]
}
}
}
Expand Down
154 changes: 0 additions & 154 deletions src/configurations/destinations/the_trade_desk/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@
"placeholder": "e.g: u8a7f3k9p2nXXXXX4q5r2m8d7z1o9",
"secret": true
},
{
"type": "textInput",
"label": "Tracking Tag ID",
"note": "Tracking tag ID from advertiser preferences page in the TTD platform UI. If you can't find your tracking tag ID, contact your Technical Account Manager.",
"configKey": "trackerId",
"regex": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{1,100})$",
"regexErrorMessage": "Invalid Tracking Tag ID",
"placeholder": "e.g: hcXXXke"
},
{
"type": "singleSelect",
"label": "Data Server",
Expand Down Expand Up @@ -156,157 +147,12 @@
]
}
]
},
{
"title": "Event mapping",
"note": "Map RudderStack to Trade Desk events",
"hideEditIcon": true,
"sections": [
{
"groups": [
{
"title": "RudderStack to Trade Desk event mappings",
"fields": [
{
"type": "redirect",
"redirectGroupKey": "eventAndPropertiesMapping",
"label": "Event and property mappings",
"note": "Map RudderStack events/properties to Trade Desk events/properties"
}
]
}
]
}
]
}
],
"sdkTemplate": {
"title": "SDK settings",
"note": "not visible in the ui",
"fields": []
},
"redirectGroups": {
"eventAndPropertiesMapping": {
"tabs": [
{
"name": "Event",
"fields": [
{
"type": "mapping",
"label": "Map your RudderStack Events to Trade Desk Events",
"note": "Enter the input event name which you want to map with a Trade Desk Event Name",
"configKey": "eventsMapping",
"default": [],
"columns": [
{
"type": "textInput",
"key": "from",
"label": "RudderStack Event",
"placeholder": "e.g: Product Searched"
},
{
"type": "singleSelect",
"key": "to",
"label": "Trade Desk Event",
"options": [
{
"name": "searchitem",
"value": "searchitem"
},
{
"name": "searchcategory",
"value": "searchcategory"
},
{
"name": "login",
"value": "login"
},
{
"name": "messagebusiness",
"value": "messagebusiness"
},
{
"name": "direction",
"value": "direction"
},
{
"name": "sitevisit",
"value": "sitevisit"
}
]
}
]
}
]
},
{
"name": "Custom properties",
"fields": [
{
"type": "mapping",
"label": "Map custom properties",
"configKey": "customProperties",
"default": [],
"columns": [
{
"type": "textInput",
"key": "rudderProperty",
"label": "RudderStack property path",
"placeholder": "e.g properties.key1"
},
{
"type": "singleSelect",
"key": "tradeDeskProperty",
"label": "Trade Desk custom property",
"options": [
{
"label": "td1",
"value": "td1"
},
{
"label": "td2",
"value": "td2"
},
{
"label": "td3",
"value": "td3"
},
{
"label": "td4",
"value": "td4"
},
{
"label": "td5",
"value": "td5"
},
{
"label": "td6",
"value": "td6"
},
{
"label": "td7",
"value": "td7"
},
{
"label": "td8",
"value": "td8"
},
{
"label": "td9",
"value": "td9"
},
{
"label": "td10",
"value": "td10"
}
]
}
]
}
]
}
]
}
}
}
}
21 changes: 1 addition & 20 deletions test/data/validation/destinations/the_trade_desk.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,12 @@
"audienceId": "test-segment",
"advertiserId": "test-advertiserId",
"advertiserSecretKey": "test-advertiserSecretKey",
"trackerId": "test-trackerId",
"segmentName": "test-segment",
"dataServer": "usEastCoast",
"oneTrustCookieCategories": [
{
"oneTrustCookieCategory": "Marketing"
}
],
"eventsMapping": [
{
"from": "Product Added",
"to": "addToCart"
}
],
"customProperties": [
{
"rudderProperty": "properties.key1",
"tradeDeskProperty": "td1"
}
]
},
"result": true
Expand All @@ -31,7 +18,6 @@
"config": {
"audienceId": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
"advertiserId": "test-advertiserId",
"trackerId": "test-trackerId",
"advertiserSecretKey": "test-advertiserSecretKey",
"segmentName": "test-segment",
"dataServer": "usEastCoast",
Expand All @@ -50,7 +36,6 @@
"config": {
"audienceId": "test-segment",
"advertiserId": "",
"trackerId": "test-trackerId",
"advertiserSecretKey": "test-advertiserSecretKey",
"segmentName": "test-segment",
"dataServer": "usEastCoast",
Expand All @@ -69,7 +54,6 @@
"config": {
"audienceId": "test-segment",
"advertiserId": "test-advertiserId",
"trackerId": "test-trackerId",
"advertiserSecretKey": "test-advertiserSecretKey",
"segmentName": "test-segment",
"dataServer": "test-server",
Expand All @@ -95,9 +79,6 @@
]
},
"result": false,
"err": [
" must have required property 'advertiserSecretKey'",
" must have required property 'trackerId'"
]
"err": [" must have required property 'advertiserSecretKey'"]
}
]

0 comments on commit 5120ec5

Please sign in to comment.