I manage a large network and ads are blocked at the edge of the network.
You must MITM all traffic and do some magic with stripping/injecting JavaScript then? Because every time I’ve tried with pihole, its just threads and threads of people saying its not possible with DNS blocking because the ads are served from the video servers.
We also deploy a browser extension via GPO/Intune to catch those and protect endpoints when they are off net.
I actually wasn’t in favor of that but the rest of team was so after risk assessing it, we determined that trusting a vendor with the permission to rewrite webpages was less of a risk than drive-by malware or phishing/redirection from a malicious ad
They said they pay for YouTube premium so they might not have to block YouTube ads