Most automation tools like Tasker or AutoInput don’t “see” ads, they just repeat taps at set spots. If you want something to actually recognize and close an ad, you’d need image-recognition scripts, which is way more complicated than most small farms use.