Added filters to ad stats querying.