Apples and oranges. Banning Google in China meant that its product (user data) couldn't be produced in China. That's unfortunate but they still have users elsewhere in the world and on VPNs. On the other hand ad sales _to_ China have continued growing ever since the ban.
Huawei (or any smartphone company) has no alternative to chips that license US technology.