You will get points for incidental spend on 3rd party bookings, but not for room spend or night credit. Also, Marriott is one of the few chains that still extends elite recognition benefits (ie, free i-net, potential upgrade, exec lounge access) on 3rd party bookings.
Cheers.