Barry Cooper, a former narcotics officer, explains in pretty great detail how they train with alert dogs:
A lot of the video isn't particularly relevant, but he does discuss how the officers are trained to incite the dog to alert and how the desire for the ball is a prey drive.