Investors are learning that online advertising stocks may be just as vulnerable as old-school media companies amid a looming potential economic downturn.