Microsoft is preparing $50 billion takeover bid for Yahoo! to counter Google's acquisition of online advertising giant DoubleClick.