mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
add slotVisibilityChanged test
This commit is contained in:
@@ -291,6 +291,12 @@ googletag.pubads().addEventListener("impressionViewable", (event) => {
|
||||
}
|
||||
});
|
||||
|
||||
googletag.pubads().addEventListener("slotVisibilityChanged", (event) => {
|
||||
if (event.slot === targetSlot) {
|
||||
console.log(event.inViewPercentage)
|
||||
}
|
||||
});
|
||||
|
||||
let mapping1 = googletag.sizeMapping().
|
||||
addSize([1024, 768], [970, 250]).
|
||||
addSize([980, 690], [728, 90]).
|
||||
|
||||
Reference in New Issue
Block a user