OnePC פירסמו מאמר שמסקר את כול מה שהצליח ומה שלא בשנת 2001 ומנסים לנבא מה כן יצליח השנה. מומלץ.
if (('false' === 'false' && hw_is_mobile) || ('true' === 'false' && !hw_is_mobile)) {
document.querySelector('#div-hwad-970x250-95754').remove();
} else {
window.googletag = window.googletag || {cmd: []};
window.adslots = window.adslots || {};
googletag.cmd.push(function() {
const adslot_95754 = googletag.defineSlot('/23571088/HWzone/970x250', [970, 250], `div-hwad-970x250-95754`);
if (adslot_95754) {
adslot_95754.setTargeting('test', 'infinitescroll')
adslot_95754.addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.pubads().setRequestNonPersonalizedAds(0);
googletag.enableServices();
const options = {
rootMargin: '0px',
threshold: 0.5
};
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
observer.unobserve(entry.target);
googletag.display(entry.target.id);
console.log({
adslotid: '95754',
name: '970x250',
mobile: 'false',
desktop: 'true',
width: '970',
height: '250'
});
}
});
}, options);
if (document.querySelector('#div-hwad-970x250-95754').getBoundingClientRect().top < window.innerHeight) {
observer.unobserve(document.querySelector('#div-hwad-970x250-95754'));
googletag.display(`div-hwad-970x250-95754`);
console.log({
adslotid: '95754',
name: '970x250',
mobile: 'false',
desktop: 'true',
width: '970',
height: '250'
});
} else {
observer.observe(document.querySelector('#div-hwad-970x250-95754'));
}
} else {
console.log('no adslot_95754');
}
});
}


