Facebook and Google worked closely with a right-wing advocacy group to help it push ads promoting anti-Islam and anti-immigrant messages in swing states during the 2016 election cycle, Bloomberg reported on Wednesday.

A group called Secure America Now spent millions of dollars on ads during the election cycle that linked Democratic candidates to terrorism or warned about the spread of Islamic Sharia law, according to Bloomberg.

Bloomberg’s sources said that Google representatives met with the group on June 16, 2016, to discuss ways to improve the ad campaign.

ADVERTISEMENT

And Facebook used the group’s video ads to test out new video formats. After running different formats, Facebook would survey the viewers to find out which was the most popular.

The video that Facebook used was a Secure America Now clip called “Are we safe?” that showed black-and-white images of Muslims who have carried out attacks next to colorful images of the U.S.

A Google spokesperson told Bloomberg that the company later blocked some of the group’s ads. The spokesperson said in a statement that if the company finds ads that violate its policies “we immediately disapprove them and stop showing them.”

One of the ads that Secure America Now ran was a fake tourism video that said Sharia law was dominant in France.

“Under Sharia law, you can enjoy everything the Islamic State of France has to offer, as long as you follow the rules,” a narrator says in the video.