I think the difference here is that Piped is using a custom backend server (piped-backend) which scrapes youtube html to obtain the video content/metadata (a-la invidious), while your app was using the youtube API. Google is allowed to shut your app down, but AFAIK can't police who can and can't consume their publicly available HTML.