So is it possible for a network to get a virus? Not a particular computer, but the network itself?

My home network is suddenly riddled with adware, weather I am on my desktop, laptop, iPhone, or android tablet. And all different browsers. If I use my phone with out connecting to my wifi or if I take my laptop or tablet to anywhere else and connect to that wifi, no problems.