Amazon.com Inc. is gearing up to more directly challenge Google Inc.'s dominance of the online advertising market, developing its own software for placing ads online that could leverage its knowledge of millions of Web shoppers.

Initially, Amazon plans to replace those ads on its pages that Google chiefly supplies with a new in-house ad placement platform, said people familiar with the matter. In the future, that system could...