Clicking ads is exactly what they exist for. Not convinced this breaks the law any more than just clicking an ad would.