Optimizing marketing investments in uncertain times