Dual approach for the solution of an advertising control problem