The usual definition of that improper integral is
$$\lim_{a\to-\infty}\int_a^c x\,dx+\lim_{b\to\infty}\int_c^b x\,dx$$
where $c$ is some constant real number. (A theorem tells us that the choice of $c$ does not change this value.)
Both those integrals are divergent, therefore both limits do not exist, therefore the sum does not exist.
Therefore your integral is undefined.
That said, there is another definition for your integral, namely the Cauchy principal value, which is
$$\lim_{a\to\infty}\int_{-a}^a x\,dx$$
Under that definition, the integral inside the limit is always zero, so the total value is defined and is zero.
However, this is not the current standard definition of an improper integral, and if that is what you mean by your expression you need to say so.