You should give them the code when you make the reservation and again when you check in, as the system doesn't automatically transfer it from the reservation to the check-in.
Also, remember to ask for partner points for a car rental or airline (these award extra Gold Passport points) and are not automatically credited.