AOL, now known as Oath Inc., has agreed to pay $4.95 million in penalties under violations of a federal law intended to protect the personal data of children on the internet—the largest settlement under that statute in U.S. history.

New York Attorney General Barbara Underwood said in a news release announcing the settlement that AOL violated the Children’s Online Privacy Protection Act by conducting billions of auctions for ad space on hundreds of websites that it knew were aimed at young children.