You can try giving them a nice warm bath. I’m sure the dogs will enjoy that. You can use the opportunity to wash them with flea/tick shampoo at the same time.
You may not be able to keep pets in your apartment, but that doesn’t mean you can’t bring them in for a brief while in order to bathe them.