The Art of Spending: Optimizing Your Marketing Budget with Nonlinear Optimization