@guardian/atoms-rendering
Advanced tools
Comparing version 23.6.0 to 23.7.0
# @guardian/atoms-rendering | ||
## 23.7.0 | ||
### Minor Changes | ||
- 57d3ff1: Add ad label to YouTube IMA integration | ||
## 23.6.0 | ||
@@ -4,0 +10,0 @@ |
@@ -177,5 +177,10 @@ "use strict"; | ||
const onAdsManagerLoaded = () => { | ||
var _a, _b; | ||
var _a, _b, _c; | ||
adsManager.current = (_a = imaManager.current) === null || _a === void 0 ? void 0 : _a.getAdsManager(); | ||
(_b = adsManager.current) === null || _b === void 0 ? void 0 : _b.addEventListener(window.google.ima.AdEvent.Type.STARTED, () => { | ||
const adsRenderingsettings = new window.google.ima.AdsRenderingSettings(); | ||
adsRenderingsettings.uiElements = [ | ||
window.google.ima.UiElements.AD_ATTRIBUTION, | ||
]; | ||
(_b = adsManager.current) === null || _b === void 0 ? void 0 : _b.updateAdsRenderingSettings(adsRenderingsettings); | ||
(_c = adsManager.current) === null || _c === void 0 ? void 0 : _c.addEventListener(window.google.ima.AdEvent.Type.STARTED, () => { | ||
dispatchCustomPlayEvent(uniqueId); | ||
@@ -182,0 +187,0 @@ }); |
@@ -175,2 +175,7 @@ import { jsx as _jsx } from "@emotion/react/jsx-runtime"; | ||
adsManager.current = imaManager.current?.getAdsManager(); | ||
const adsRenderingsettings = new window.google.ima.AdsRenderingSettings(); | ||
adsRenderingsettings.uiElements = [ | ||
window.google.ima.UiElements.AD_ATTRIBUTION, | ||
]; | ||
adsManager.current?.updateAdsRenderingSettings(adsRenderingsettings); | ||
adsManager.current?.addEventListener(window.google.ima.AdEvent.Type.STARTED, () => { | ||
@@ -177,0 +182,0 @@ dispatchCustomPlayEvent(uniqueId); |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "23.6.0", | ||
"version": "23.7.0", | ||
"source": "src/index.ts", | ||
@@ -10,0 +10,0 @@ "main": "dist/commonjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
272124
5570