Learning the Models of Customer Behavior: From Television Advertising to Online Marketing