I know there are photographs of the Earth from the lunar surface taken during Apollo 11, 14 and 17. Here are some for reference (there are many for Apollo 17).
Apollo 11 (AS11-40-5923):
Looking at the Apollo 12 image library, Apollo 15 image library, and Apollo 16 image library, I've seen no images of the Earth taken from the lunar surface. Then again, there are many images so it is possible that I might have overlooked one of them. All the Apollo missions landed on the near-side of the Moon and the landing site needed to be in a direct line of sight with the Earth to maintain communications with mission control in Houston. If there are zero images of the Earth taken from the surface during Apollo 12, 15 and 16, then why is that?