You are correct. Google serves ads from the same domains as the actual legitimate content therefore sending those requests to null via DNS blackhole would simply block YouTube entirely. UBO and other browser extensions strip out or work around the problematic code itself to render a functioning page without the ads.