I don't know how they did that. Even if they blocked for the video, the ads would not have stayed blocked for long.
The reliable ways to block YouTube ads:
(1) Don't use YouTube
(2) Pay for YouTube premium
(3) Watch YouTube on a browser and use uBlock Origin extension on the browser.
(4) There are some Android apps as well (YouTube Vanced, etc.)