This document describes algorithms to automatically create and optimize SEM campaigns for e-commerce merchants with limited budgets. It discusses methods to determine the best landing page for keywords by modeling return on investment. It also describes how to initially select keywords to bid on and set bid amounts, within the budget, by prioritizing keywords with the highest expected returns. The goal is to maximize sales from SEM with automated bidding that performs comparably to human management.