e.g. I got a new camera.

(What is the meaning of 'got'?
1. I bought a new camera.
2. I received a new camera from somebody. What does e.g. mean? #1 or #2?)

The word "got" simply means that you received a new camera. You could have bought it or you could have received it from someone.

"e.g." means "for example."