Skip to content

Commit

Permalink
map c4 to the reported metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
wjoosen committed Sep 14, 2024
1 parent cf5d0f4 commit 023e3dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nielsen/src/utils/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function buildDCRContentMetadata(
adloadtype: metadata.adloadtype
};
if (country === NielsenCountry.CZ) {
const { crossId1, segB, segC, c1, c2, hasAds } = metadata as NielsenDCRContentMetadataCZ;
const { crossId1, segB, segC, c1, c2, c4, hasAds } = metadata as NielsenDCRContentMetadataCZ;
const dcrContentMetadataCZ: DCRContentMetadataCZ = {
...dcrContentMetadata,
['crossId1']: crossId1,
Expand All @@ -51,6 +51,7 @@ export function buildDCRContentMetadata(
hasAds: hasAds
};
if (c1) dcrContentMetadataCZ['nol_c1'] = `p1,${c1}`;
if (c4) dcrContentMetadataCZ['nol_c4'] = `p4,${c4}`;
return dcrContentMetadataCZ;
}
if (country === NielsenCountry.US) {
Expand Down

0 comments on commit 023e3dc

Please sign in to comment.