Programmatic ad fraud detection and mitigation