Justice Steven Rares today said the videos of Mr Shanks, better known as FriendlyJordies, constituted a "relentless and vicious campaign against Mr Barilaro".
He accepted the [now] retired politician was "traumatised" and said Google had failed to take responsibility for its conduct as a publisher.
Justice Rares noted Mr Shanks had called Mr Barilaro "disgusting" names and related him to the Mario brothers from Nintendo's video games.
"Although Mr Shanks styles himself as a comedian, his repeated use of such terms was not comedic," the judge said
"It was nothing less than racist hate speech."
Politicians have been attacking social media platforms for removing content. Google can now point to this ruling and say they are justified in doing it.