> Why did google code end? Was it too hard for them to monetize?
My guess is that abuse (people hosting files/data that google didn't/wasn't allowed to host) made it untenable for a service that wasn't generating revenue and had limited headcount.
Something like Google drive or yt could spend a lot more energy stomping it rather than the handful of folks from the open source programs team.