Yahoo and Microsoft Said to Be Weighing Ad Pact