Skip to content

Commit

Permalink
feat: adding shopify source to tiktok ads (#1812)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrouti1507 authored Nov 20, 2024
1 parent ee02a0d commit d0cc5f9
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/configurations/destinations/tiktok_ads/db-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"warehouse",
"reactnative",
"flutter",
"cordova"
"cordova",
"shopify"
],
"supportedMessageTypes": {
"cloud": ["track"],
Expand All @@ -46,7 +47,8 @@
"warehouse": ["cloud"],
"reactnative": ["cloud"],
"flutter": ["cloud"],
"cordova": ["cloud"]
"cordova": ["cloud"],
"shopify": ["cloud"]
},
"destConfig": {
"defaultConfig": [
Expand Down Expand Up @@ -120,6 +122,12 @@
"consentManagement",
"oneTrustCookieCategories",
"ketchConsentPurposes"
],
"shopify": [
"connectionMode",
"consentManagement",
"oneTrustCookieCategories",
"ketchConsentPurposes"
]
},
"secretKeys": ["accessToken", "pixelCode"]
Expand Down
74 changes: 74 additions & 0 deletions src/configurations/destinations/tiktok_ads/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,18 @@
}
}
}
},
"shopify": {
"type": "array",
"items": {
"type": "object",
"properties": {
"oneTrustCookieCategory": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
}
}
},
Expand Down Expand Up @@ -341,6 +353,18 @@
}
}
}
},
"shopify": {
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
}
}
},
Expand Down Expand Up @@ -806,6 +830,52 @@
}
]
}
},
"shopify": {
"type": "array",
"items": {
"type": "object",
"properties": {
"provider": {
"type": "string",
"enum": ["custom", "ketch", "oneTrust"],
"default": "oneTrust"
},
"consents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"consent": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
}
},
"allOf": [
{
"if": {
"properties": {
"provider": {
"const": "custom"
}
},
"required": ["provider"]
},
"then": {
"properties": {
"resolutionStrategy": {
"type": "string",
"enum": ["and", "or"]
}
},
"required": ["resolutionStrategy"]
}
}
]
}
}
}
},
Expand Down Expand Up @@ -851,6 +921,10 @@
"cordova": {
"type": "string",
"enum": ["cloud"]
},
"shopify": {
"type": "string",
"enum": ["cloud"]
}
}
}
Expand Down

0 comments on commit d0cc5f9

Please sign in to comment.