diff --git a/src/v0/destinations/campaign_manager/data/CampaignManagerTrackConfig.json b/src/v0/destinations/campaign_manager/data/CampaignManagerTrackConfig.json index e547bb0f35..c8bd10d524 100644 --- a/src/v0/destinations/campaign_manager/data/CampaignManagerTrackConfig.json +++ b/src/v0/destinations/campaign_manager/data/CampaignManagerTrackConfig.json @@ -13,10 +13,7 @@ "destKey": "timestampMicros", "sourceKeys": "timestamp", "sourceFromGenericMap": true, - "required": true, - "metadata": { - "type": "microSecondTimestamp" - } + "required": true }, { "destKey": "floodlightActivityId", diff --git a/src/v0/destinations/campaign_manager/transform.js b/src/v0/destinations/campaign_manager/transform.js index ffa9304dac..61e8107e04 100644 --- a/src/v0/destinations/campaign_manager/transform.js +++ b/src/v0/destinations/campaign_manager/transform.js @@ -74,7 +74,6 @@ function processTrack(message, metadata, destination) { delete requestJson.limitAdTracking; } requestJson.timestampMicros = requestJson.timestampMicros.toString(); - const encryptionInfo = {}; // prepare encrptionInfo if encryptedUserId or encryptedUserIdCandidates is given if (properties.encryptedUserId || properties.encryptedUserIdCandidates) { diff --git a/test/__tests__/data/campaign_manager.json b/test/__tests__/data/campaign_manager.json index b731639aad..8757e8f748 100644 --- a/test/__tests__/data/campaign_manager.json +++ b/test/__tests__/data/campaign_manager.json @@ -110,7 +110,7 @@ { "floodlightConfigurationId": "213123123", "ordinal": "string", - "timestampMicros": "1668624722000000", + "timestampMicros": "2022-11-17T00:22:02.903+05:30", "floodlightActivityId": "456543345245", "quantity": "455678", "value": 756, @@ -234,7 +234,7 @@ { "floodlightConfigurationId": "213123123", "ordinal": "string", - "timestampMicros": "1668624722000000", + "timestampMicros": "2022-11-17T00:22:02.903+05:30", "floodlightActivityId": "456543345245", "quantity": "455678", "value": 756, @@ -452,7 +452,7 @@ { "ordinal": "64458271", "matchId": "64458271", - "timestampMicros": "1600282322000000", + "timestampMicros": "2020-09-17T00:22:02.903+05:30", "floodlightActivityId": "16263081", "floodlightConfigurationId": "9234061", "quantity": "1", diff --git a/test/__tests__/data/campaign_manager_router_output.json b/test/__tests__/data/campaign_manager_router_output.json index e3a9a39c28..b41d111f68 100644 --- a/test/__tests__/data/campaign_manager_router_output.json +++ b/test/__tests__/data/campaign_manager_router_output.json @@ -23,7 +23,7 @@ { "nonPersonalizedAd": false, "treatmentForUnderage": false, - "timestampMicros": "1668624722000000", + "timestampMicros": "2022-11-17T00:22:02.903+05:30", "floodlightConfigurationId": "213123123", "ordinal": "string", "quantity": "455678", @@ -87,7 +87,7 @@ { "nonPersonalizedAd": false, "treatmentForUnderage": false, - "timestampMicros": "1668624722000000", + "timestampMicros": "2022-11-17T00:22:02.903+05:30", "floodlightConfigurationId": "213123123", "ordinal": "string", "quantity": "455678",