Okay, after some trial and error it seems that the VPN that is used causes the problem of not filtering the ads by AdGuard. It seems to be enough to add the worker.exe process to AdGuard if just a proxy (without VPN is used). So I will need to investigate further to get it working in combination with the VPN.