Three years ago, the beginning of the end of the U.S. television business looked certain when one of the largest ad buying agencies vowed to move a big chunk of its purchases to YouTube from TV budgets.