A Spotify ad has been banned for "unjustifiably" distressing children.
The advert mimicked a horror film and showed young people being menaced by a scary doll when they played a particular song.
In its ruling, the Advertising Standards Authority (ASA) said the setting and events were "particularly likely" to scare younger viewers.
Spotify has been told to make sure its future adverts are fit for children to watch and are targeted appropriately.
In a statement, Spotify said: "We acknowledge the ruling from the ASA and regret any distress the ad may have caused the complainant."
The ASA has also banned an ad for breast enlargement which was shown during ITV's Love Island.
The Spotify advert ran on YouTube in June 2018 and featured several scenes of young people regularly playing the song Havana by Camila Cabello.
The video shows the music also waking a "horror film style doll" that then pops up and scares the characters every time the track is played.
The ad generated a complaint that it:
- had caused distress to a child
- was being shown on a YouTube channel younger viewers were likely to watch
And the ASA upheld both of these complaints "in part".
The implied violence in the clip, its music, the reactions of the characters and the abrupt ways the doll appeared all served to make it likely to scare children, said the ASA.
"The fact that the ad was set inside a home, including a bedtime setting, and featured a doll, meant it was particularly likely to cause distress to children who saw it," it said in its ruling.
Not enough had been done to make it clear that the advert was not a trailer for a horror movie, it said.
The ASA said that the advert had been scheduled to run before content connected with a video game suitable for players aged 10 or above. And, it said, the channel it had appeared on was designed to attract a younger audience.
Spotify defended itself by saying that although the advert had some horror-film-style scenes, there was no gore or violence.
The soundtrack helped establish it was intended to be "tongue-in-cheek".
And the on-screen text used to close the ad - "Killer songs you can't resist" - helped reinforce its intent to make a spoof rather than a clip that was genuinely scary.
In addition, it said, 73% of the audience for the channel the ad appeared on was aged between 18 and 44.
After the ruling, it said: "We take our responsibilities as a marketer very seriously and continue to be mindful of the ASA's guidance on the effective and appropriate targeting of advertising campaigns."