Postat în original de
Adelin
Am gasit codul asta care este bunicel, zic eu. Poti pune o imagine cu link de afiliere care sa inlocuiasca reclama adsense neafisata. Dar , ma gandesc eu, nu se mai poate insera un cod ceva care sa ne arate de cate ori a fost afisata imaginea respectiva ? <script>
// Run after all the page elements have loaded
window.onload = function(){
// This will take care of asynchronous Google ads
setTimeout(function() {
// We are targeting the first banner ad of AdSense
var ad = document.querySelector("ins.adsbygoogle");
// If the ad contains no innerHTML, ad blockers are at work
if (ad && ad.innerHTML.replace(/\s/g, "").length == 0) {
// Since ad blocks hide ads using CSS too
ad.style.cssText = 'display:block !important';
// You can put any text, image or even IFRAME tags here
ad.innerHTML = 'AICI CODUL IMAGINII';
}
}, 2000); // The ad blocker check is performed 2 seconds after the page load
};
</script>