I have recently got a mail by adsense taem that my account is blocked due to invalid clicks.What is the ultimate solution for this are there any alternatives to google adsense.
There is almost no solution. All you can do is appeal. In that appeal you have to say what caused the invalid clicks; what you did to protect the advertiser when you detected it; and what you will do in the future to prevent it. if you do not have that information, then your appeal will fail. 99.9% of appeals fail