Yahoo Signs Ad Pact With Google; Earnings and Revenue Miss