Hotels generally restrict loyalty benefits and earning for customer who booked via an OTA (to whom they had to pay a big commission). Some will allow benefits but not earning. Booking via a corporate-style agent is usually fine.
Airlines don't differentiate