The girl got excited <by> <with> her new toy

wikipedia.org:

(1) The girl got excited by her new toy.

My variant:

(2) The girl got excited with her new toy.

Could you explain the difference between "by" and "with"? Thanks!


You can think of by, in this case, in the way she got excited, she got excited due to earn this toy.

Using "with", passes the idea of the feeling that she had when she acquires it, the feeling when she in his company, maybe playing with it, using it.

So, by is used to express the way that she got excited. And with, expresses the idea of his possession and the feelings due to it.