Earlier quoted context omitted.
TikTok should be banned in the US. China banned all of our homegrown social networks, its pretty standard international precedent to ban theirs, given the security risks.
China didn't specifically "ban" US social networks because they were US social networks. The companies themselves didn't want to comply with Chinese laws so they cannot operate there. It's the same as Facebook now threatening to leave the EU if they have to comply with EU data protection laws.
Also, Google actually has a sizeable office in Beijing. I'm not sure what they do specifically since it's not easy to access any of their public services without an obscure VPN (the most popular ones get blocked pretty quickly).