The AI Leap in Contextual Advertising: Transforming a Legacy Solution