What rank was Adolf Hitler in the German army during World War 1?

What rank was Adolf Hitler in the German army during World War 1?