@guardian/commercial-core 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,7 +36,10 @@ const mergeCustomParamsWithTargeting = (customParams, consentState, clientSidePa
|
|
|
36
36
|
(0, libs_1.log)('commercial', 'Error building YouTube IMA custom params', e);
|
|
37
37
|
return customParams;
|
|
38
38
|
}
|
|
39
|
-
const mergedCustomParams = {
|
|
39
|
+
const mergedCustomParams = {
|
|
40
|
+
...customParams,
|
|
41
|
+
...pageTargeting,
|
|
42
|
+
};
|
|
40
43
|
return mergedCustomParams;
|
|
41
44
|
};
|
|
42
45
|
const buildImaAdTagUrl = ({ adUnit, clientSideParticipations, consentState, customParams, }) => {
|
|
@@ -14,6 +14,8 @@ const buildAdsConfig = (cmpConsent, adUnit, customParams, clientSideParticipatio
|
|
|
14
14
|
consentState: cmpConsent,
|
|
15
15
|
youtube: true,
|
|
16
16
|
}),
|
|
17
|
+
// 19/04/2023 This is a temporary update to assist reporting for a YouTube IMA test
|
|
18
|
+
yt_embed_ima: '0',
|
|
17
19
|
};
|
|
18
20
|
const defaultAdsConfig = {
|
|
19
21
|
adTagParameters: {
|
|
@@ -33,7 +33,10 @@ const mergeCustomParamsWithTargeting = (customParams, consentState, clientSidePa
|
|
|
33
33
|
log('commercial', 'Error building YouTube IMA custom params', e);
|
|
34
34
|
return customParams;
|
|
35
35
|
}
|
|
36
|
-
const mergedCustomParams = {
|
|
36
|
+
const mergedCustomParams = {
|
|
37
|
+
...customParams,
|
|
38
|
+
...pageTargeting,
|
|
39
|
+
};
|
|
37
40
|
return mergedCustomParams;
|
|
38
41
|
};
|
|
39
42
|
const buildImaAdTagUrl = ({ adUnit, clientSideParticipations, consentState, customParams, }) => {
|
|
@@ -10,6 +10,8 @@ const buildAdsConfig = (cmpConsent, adUnit, customParams, clientSideParticipatio
|
|
|
10
10
|
consentState: cmpConsent,
|
|
11
11
|
youtube: true,
|
|
12
12
|
}),
|
|
13
|
+
// 19/04/2023 This is a temporary update to assist reporting for a YouTube IMA test
|
|
14
|
+
yt_embed_ima: '0',
|
|
13
15
|
};
|
|
14
16
|
const defaultAdsConfig = {
|
|
15
17
|
adTagParameters: {
|