Home generator oil type

I have some extra Amsoil synthetic 15w-40 diesel oil and have been using that in my smaller generators with no issues. I figure synthetics will hold up better in generators as well, especially being air cooled.

I put it in my oiled air compressor too!