SAN FRANCISCO — A federal judge Wednesday dismissed a proposed class action against YouTube over the so-called “Adpocalypse” debacle, ruling that its contract with content providers gave YouTube leeway to decide how advertisements are shown.

The lawsuit was filed last October by the producers of the “Zombie Go Boom” YouTube channel, described by its creators as “a live-action zombie series that is essentially a combination of ‘Mythbusters’ and ‘The Walking Dead.’” It sought to represent a class of other filmmakers who were financially impacted by YouTube’s ad changes.