The Diary of a Wimpy Kid series and all Jeff Kinney's books are fiction.
While inspired by his own childhood, they are invented narratives with exaggerated humor—not factual memoirs or autobiographies.