An Adaptive Algorithm for Selecting Profitable Keywords for Search-Based Advertising Services