Added ad priority option (issue #1953)