Social media giant Twitter has admitted that it used phone numbers and email addresses, meant for security purposes to serve targeted ads.