@highfivve/ad-tag 5.8.14 → 5.8.17
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.
|
@@ -55,7 +55,9 @@ export const createUtiq = () => {
|
|
|
55
55
|
context.logger__.info('Utiq', `not enough ad requests to load Utiq. ${minAdRequests} required.`);
|
|
56
56
|
return Promise.resolve();
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const extractedDomain = extractTopPrivateDomainFromHostname(context.window__.location.hostname);
|
|
59
|
+
const assetUrl = config.assetUrl ??
|
|
60
|
+
(extractedDomain ? `https://utiq.${extractedDomain}/utiqLoader.js` : undefined);
|
|
59
61
|
if (!assetUrl) {
|
|
60
62
|
context.logger__.error('Utiq', 'Cannot load Utiq: no assetUrl provided in config and unable to extract domain from hostname');
|
|
61
63
|
return Promise.resolve();
|
package/lib/gen/packageJson.js
CHANGED
package/lib/types/prebidjs.js
CHANGED
|
@@ -18,6 +18,7 @@ export var prebidjs;
|
|
|
18
18
|
prebidjs.NanoInteractive = 'nanointeractive';
|
|
19
19
|
prebidjs.NextMillennium = 'nextMillennium';
|
|
20
20
|
prebidjs.PubMatic = 'pubmatic';
|
|
21
|
+
prebidjs.Pubstack = 'pubstack';
|
|
21
22
|
prebidjs.Ogury = 'ogury';
|
|
22
23
|
prebidjs.OneTag = 'onetag';
|
|
23
24
|
prebidjs.OpenX = 'openx';
|