How to avoid getting ghost banned : There’s no way to be absolutely sure if you were ghost banned or not. (For example, your content may be randomly absent from search results with no obvious consistency.) But people seem to suggest that the content of your tweets may have something to do with it. (There is a reason why Google banned all apps that allowed recurring links content.) So the best way to avoid being banned is:
(1) to never post the same links many times,
and
(2) post unlinked tweets as well (that is, content that contain no links).