There was a thriving core to the software industry that existed well before the ad-fueled web and still exists today. Plain old business websites, line-of-business internal software, desktop apps, embedded and IoT software, etc., none of these things depend on ads. If you can't see that there is plenty of things to do for software developers to do if ads are curtailed, you need to broaden your horizons.