Tries from Glasgow pro Pat MacArthur and another from big prop Gordon Reid plus 18 points from the boot of Frazier Climo gave Ayr a well deserved win in front of a very healthy crowd.
Glasgow props Ed Kalman and Hamish Mitchell played their part in a great win for the Millbrae men.
Ayr take a break from the British & Irish Cup - their next fixture in the competition is against Birmingham & Solihull at Millbrae on February 13.
Glasgow's Dave McCall went over for a try for Heriot's but the men from Goldenacre went down 57-12 to Coventry.