Google (Nasdaq: GOOG) is putting a new spin on ecommerce.

The search giant testing an online shopping service with same-day delivery in San Francisco with partners including Target Corp. and Walgreen Co.

The pilot project, called Google Shopping Express, lets local residents order items from participating retailers, which also include Toys “R” Us Inc., Staples Inc. and American Eagle Outfitters Inc., Google said on its website. Customers can get items from multiple stores.

Google is expanding in e-commerce to compete with Amazon.com Inc., the world’s largest online retailer, as it seeks to step up growth and lessen its dependence on Web search, which now accounts for most of revenue. Last month, Google agreed to buy Channel Intelligence Inc. to add online marketing tools retailers use to bolster Internet sales. In November, Google acquired BufferBox Inc., a service for delivering e- commerce goods to physical kiosks.

Shops including Nob Hill Foods and Blue Bottle Coffee are also included in the service, Google said.

If the pilot program goes well, Google Inc. plans to expand delivery service to other markets.

“We hope this will help users explore the benefits of a local, same-day delivery service, and help us kick the tires on the new service,” Google said in a Thursday statement.

Google has learned that the more time people spend online, the more likely they are to use its dominant search engine or one of its other popular services, like its YouTube video site or Gmail, that include advertising.

The delivery service also could spur merchants to buy more online ads if Google’s same-day delivery service encourages consumers to do more of their shopping online. Having to wait days or, in some cases, more than a week for the delivery of online orders ranks among the biggest drawbacks to Internet shopping.

It’s a problem that Amazon.com Inc. and eBay Inc., which operate the largest e-commerce sites, already have been trying to solve by offering same-day service in some U.S. markets. Wal-Mart Stores Inc., the world’s largest retailer, also offers same-day delivery in five markets.

Google has hired courier services to pick up the orders at the merchant stores and then deliver them to the customer’s home or office.

Although the couriers will be working on a contract basis, they will be driving Google trucks and wearing company-issued uniforms.

It remains unclear whether Internet shopping and same-day delivery can be profitable. Online grocer Webvan collapsed in 2001, largely because it couldn’t devise a pricing plan that would pay for the costs of same-day delivery without alienating shoppers unwilling to pay too much extra for the added convenience.

Google is still trying to figure out how much to charge for its same-day delivery service. For the six-month test period in the San Francisco area, consumers won’t have to pay a surcharge. Google instead will receive a commission from participating merchants.

The expansion into same-day delivery comes at the same time that Google is preparing to close some of its older online services so it can devote more attention and money to other projects.

The realignment has irked some Google users. The biggest complaints have centered on Google Reader, which allows people to automatically receive headlines and links from their favorite sites, and iGoogle, which allows Web surfers to design a page consisting of the Google search engine surrounded set up other online features, such as local weather reports and stock market quotes.

Google Reader is scheduled to close in July and iGoogle will shut down in November.

Google shares fell $8.47 to close at $794.19 on Thursday.