Tech giant Facebook will pay $40 million to settle a class-action lawsuit after admitting that it overstated video-viewing metrics over an 18-month period between 2015 and 2016. The overinflated video view counts led advertisers to overpay for ads.

Variety.com reports that Facebook has admitted to overstating video-viewing metrics during an 18 month period between 2015 and 2016 and will have to pay $40 million to advertisers who claim that they overpaid the firm for ads due to inaccurate data. Despite the settlement, Facebook has continued to claim that the lawsuit is “without merit.”

The proposed class-action lawsuit began in 2016 when two similar lawsuits were filed against Facebook at the same time, these were consolidated and combined with other complaints. Attorneys representing the plaintiffs stated that they planned to file a motion requesting that they get 30 percent of the settlement fund which amounts to $12 million as reimbursement of their $730,000 expenses incurred during the three year period of litigating the case.

Attorneys believe that the settlement only accounts for 40 percent of the $100 million that they estimate advertisers “may realistically have been able to recover” in court. The basis of the lawsuit was over Facebook’s method of calculating video viewing time. Facebook had a policy to not count video views that lasted less than three seconds but by discarding shorter view views, the company arrived at higher average watch times.

The lawsuit alleged that the higher average watch times allowed the company to inflate average watch metrics by as much as 900 percent. The overestimated figures did not affect how much advertisers directly paid but did lead them to believe that their content was reaching a larger viewer base than it was. The proposed settlement states: “Plaintiffs allege the metrics indirectly impacted billing, since (all else being equal) advertisers are likely to pay more for video ads that are being watched longer.”

The motion for the court to approve the settlement was filed on October 4 in the U.S. District Court for the Northern District of California in Oakland.

Lucas Nolan is a reporter for Breitbart News covering issues of free speech and online censorship. Follow him on Twitter @LucasNolan or email him at lnolan@breitbart.com