Conversation so far:
What were his ideas about?
The Theodicy tries to justify the apparent imperfections of the world by claiming that it is optimal among all possible worlds.
Was he spiritual or religious?
Leibniz asserted that the truths of theology (religion) and philosophy cannot contradict each other, since reason and faith are both "gifts of God.
Did others agree with him?
CANNOTANSWER.
Was he optimistic because of his beliefs and that he saw a purpose in things such as religion and philosophy?
if God is all good, all wise and all powerful, how did evil come into the world?
The answer (according to Leibniz) is that, while God is indeed unlimited.
What does he believe God caused evil?
God does not arbitrarily inflict pain and suffering on humans; rather he permits both moral evil (sin) and physical evil (pain and suffering.
What do people get from the balance of this according to him?
Further, although human actions flow from prior causes that ultimately arise in God, and therefore are known as a metaphysical certainty to God.

Question: What did he think we gained from our actions already being known to God?
Self-contained rewrite: What did Gottfried Wilhelm think we gained from our actions already being known to God?