Firewall rule and Google Ads

Hello, everyone!
Maybe somebody can help me
I have a site on weblium. And I have an attack on my site. Someone is clicking my Google Ads. I finded out a pattern of this attack and create a rule which blocks users agents. But I still have clicks on my ads. Even when I blocked all ip’s I still have clicks. I asked google and whey told me that I have a problem with URL address. And after all my tries I understood that when I turn on DNS I have a problem from google with URL. But when I turn off DNS my blocking rule does not work. What can I do with such problem?