Ping is how long it takes for your computer in milliseconds to communicate with another computer, whether it's just someone in a server or the server host themself.
You can't 'acquire' ping because everyone just has ping already.
Generally, the lower the ping, the better. A ping of 75 or lower is generally good, between 75 and 150 is somewhat good, and above 175 generally will yield poor connection results (i.e. lag and stuttering as a result of your client trying to connect with the server).
Ping is affected by many things, including the distance between you and the host geologically (for instance, generally players in Australia have high pings when trying to connect to players in America), and the connections of both you and the host.