Google treats this as a Circumventing Systems violation, and when it’s caught the usual outcome is account suspension, not just a rejected ad.
A lot of guides make it sound easy, but they ignore reality: Google doesn’t rely only on bots anymore. They use manual checks, user behavior, account...