The Internet is shaking up the ad industry even as it keeps it afloat