Sorry, it's been forever since I last did it and can't find my code example.
The gist of it is that the ad blocker will block the ads.js file. So the code in that file will not run.
Another approach is to check the .offsetHeight property of your ad element onload. If it's 0, then that means the ad blocker set its css display to "none".
Sorry, not following the description here, but my research seems to agree with you regarding writing it myself.
Do you have any code examples you could share, it might help me understand what you explained above.
Sorry, it's been forever since I last did it and can't find my code example.
The gist of it is that the ad blocker will block the ads.js file. So the code in that file will not run.
Another approach is to check the .offsetHeight property of your ad element onload. If it's 0, then that means the ad blocker set its css display to "none".
Gotcha, that explains!