NEWARK, N.J. (AP) — A New York City-based online advertising company has agreed to pay consumer affairs officials in New Jersey $1 million to settle claims it violated online privacy settings.

State officials accused PulsePoint of using hidden code to place "cookies" on Apple's Safari web browsers without notifying consumers or getting their consent.

Acting Attorney General Hoffman says the unauthorized cookies enabled the company to place as many as 215 million targeted ads on web browsers used by New Jersey consumers between June 2009 and February 2012.

The settlement includes a $566,200 civil penalty and $250,000 for advertising services that PulsePoint will provide the Consumer Affairs Division.

Under the settlement, PulsePoint acknowledges that it engaged in the practice until February 2012. It does not admit wrongdoing under the state's Consumer Fraud Act.