LOS ANGELES—The hotel industry has used loyalty programs as a way to attract guests and, ideally, keep them from switching over to a competitor. While they have seen some success, hoteliers have had different experiences with them depending on their role in the industry.