Skip to content

Commit

Permalink
fix: consents+2
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 committed Oct 9, 2024
1 parent 278b35a commit e357dbc
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"auth": { "type": "OAuth", "role": "amazon_audience", "rudderScopes": ["delivery"] },
"transformAtV1": "router",
"excludeKeys": [],
"supportedSourceTypes": [ "warehouse"],
"supportedSourceTypes": ["warehouse"],
"supportedConnectionModes": {
"warehouse": ["cloud"]
},
Expand All @@ -27,7 +27,7 @@
"enableHash",
"oneTrustCookieCategories"
],
"warehouse": ["connectionMode", "consentManagement"]
"warehouse": ["connectionMode", "consentManagement", "ketchConsentPurposes"]
},
"secretKeys": [],
"supportedMessageTypes": { "cloud": ["record"] }
Expand Down
17 changes: 17 additions & 0 deletions src/configurations/destinations/amazon_audience/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,23 @@
}
}
},
"ketchConsentPurposes": {
"type": "object",
"properties": {
"warehouse": {
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"pattern": "(^\\{\\{.*\\|\\|(.*)\\}\\}$)|(^env[.].+)|^(.{0,100})$"
}
}
}
}
}
},
"connectionMode": {
"type": "object",
"properties": {
Expand Down
29 changes: 27 additions & 2 deletions src/configurations/destinations/amazon_audience/ui-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"type": "checkbox",
"label": "Enable user data hashing",
"note": [
"Enabling this will hash all the user data before sending it to X(Twitter)",
"Enabling this will hash all the user data before sending it to Amazon Audience",
"Do not enable it if you already pass hash data to rudderstack"
],
"configKey": "enableHash",
Expand Down Expand Up @@ -124,7 +124,7 @@
"note": [
"Refer below link for more info",
{
"text": "Time To live",
"text": "Data Source Countries",
"link": "https://advertising.amazon.com/API/docs/en-us/guides/amazon-marketing-cloud/audiences/audience-management-service#:~:text=a%20given%20invocation.-,Note,-The%20time%2Dto"
}
],
Expand Down Expand Up @@ -209,6 +209,31 @@
"default": "oneTrust",
"required": true
},
{
"type": "tagInput",
"label": "Ketch consent purpose IDs",
"note": "Input your Ketch consent purpose IDs by pressing 'Enter' after each entry.",
"configKey": "ketchConsentPurposes",
"tagKey": "purpose",
"placeholder": "e.g: marketing",
"default": [
{
"purpose": ""
}
],
"preRequisites": {
"featureFlags": [
{
"configKey": "AMP_enable-gcm",
"value": false
},
{
"configKey": "AMP_enable-gcm"
}
],
"featureFlagsCondition": "or"
}
},
{
"type": "singleSelect",
"label": "the required consent logic",
Expand Down

0 comments on commit e357dbc

Please sign in to comment.