You need to do it on your PC. The Mail app on the iPad is not sophisticated enough to handle"rules". I set up a couple of rules on my PC to dump emails straight into trash on Gmail. It works. This cannot be done on Safari, since the mobile site also does not allow access to the necessary part of the Gmail site.
This has worked for other email accounts, according to feedback from the last time I came across this question.