The key difference is that the JavaScript approach makes you dependent upon third party ads being served correctly, while the standard HTML approach makes bad code in third party ads just affect the display of those ads.
That third party dependency is a significant difference.
That third party dependency is a significant difference.