Using social media to advertise, collect information,

Many companies are using social media to advertise, collect information, or gather background on individuals. Do you think this is ethical?