@guardian/commercial-core 6.2.0 → 7.0.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.
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@guardian/commercial-core)
|
|
4
4
|
[](https://tc39.es/ecma262/2020/)
|
|
5
5
|
[](https://www.typescriptlang.org/)
|
|
6
|
-
[](https://coveralls.io/github/guardian/commercial-core?branch=main)
|
|
7
6
|
|
|
8
7
|
> Guardian advertising business logic
|
|
9
8
|
|
|
@@ -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: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/commercial-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Guardian advertising business logic",
|
|
5
5
|
"homepage": "https://github.com/guardian/commercial-core#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@commitlint/cli": "^17.0.3",
|
|
39
39
|
"@commitlint/config-conventional": "^17.0.0",
|
|
40
40
|
"@guardian/ab-core": "4.0.0",
|
|
41
|
-
"@guardian/consent-management-platform": "^
|
|
41
|
+
"@guardian/consent-management-platform": "^13.0.2",
|
|
42
42
|
"@guardian/eslint-config-typescript": "^5.0.0",
|
|
43
43
|
"@guardian/libs": "14.0.0",
|
|
44
44
|
"@guardian/prettier": "^3.0.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@guardian/ab-core": "^4.0.0",
|
|
78
|
-
"@guardian/consent-management-platform": "^
|
|
78
|
+
"@guardian/consent-management-platform": "^13.0.2",
|
|
79
79
|
"@guardian/libs": "^14.0.0"
|
|
80
80
|
},
|
|
81
81
|
"resolutions": {
|