From e357dbc457c6266eaf442e32bab73039442a2e99 Mon Sep 17 00:00:00 2001 From: Anant Jain Date: Wed, 9 Oct 2024 12:28:26 +0530 Subject: [PATCH] fix: consents+2 --- .../amazon_audience/db-config.json | 4 +-- .../destinations/amazon_audience/schema.json | 17 +++++++++++ .../amazon_audience/ui-config.json | 29 +++++++++++++++++-- 3 files changed, 46 insertions(+), 4 deletions(-) diff --git a/src/configurations/destinations/amazon_audience/db-config.json b/src/configurations/destinations/amazon_audience/db-config.json index d3623c16d0..4bb5258c12 100644 --- a/src/configurations/destinations/amazon_audience/db-config.json +++ b/src/configurations/destinations/amazon_audience/db-config.json @@ -5,7 +5,7 @@ "auth": { "type": "OAuth", "role": "amazon_audience", "rudderScopes": ["delivery"] }, "transformAtV1": "router", "excludeKeys": [], - "supportedSourceTypes": [ "warehouse"], + "supportedSourceTypes": ["warehouse"], "supportedConnectionModes": { "warehouse": ["cloud"] }, @@ -27,7 +27,7 @@ "enableHash", "oneTrustCookieCategories" ], - "warehouse": ["connectionMode", "consentManagement"] + "warehouse": ["connectionMode", "consentManagement", "ketchConsentPurposes"] }, "secretKeys": [], "supportedMessageTypes": { "cloud": ["record"] } diff --git a/src/configurations/destinations/amazon_audience/schema.json b/src/configurations/destinations/amazon_audience/schema.json index 32ab9cf560..9e9b1aa2b0 100644 --- a/src/configurations/destinations/amazon_audience/schema.json +++ b/src/configurations/destinations/amazon_audience/schema.json @@ -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": { diff --git a/src/configurations/destinations/amazon_audience/ui-config.json b/src/configurations/destinations/amazon_audience/ui-config.json index 5d91f22463..2905cbe4d9 100644 --- a/src/configurations/destinations/amazon_audience/ui-config.json +++ b/src/configurations/destinations/amazon_audience/ui-config.json @@ -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", @@ -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" } ], @@ -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",