Update ad serving code. #188