Software to optimize marketing campaigns