Use qualified leads, customer acquisition cost and contribution margin to decide whether advertising earns its budget.