State Farm Insurance will no longer run a television advertisement starring Rob Schneider because of the actor's anti-vaccination views. The move comes after a social media campaign called for Schneider to be dropped as a spokesperson.

Phil Supple, the insurance company's director of public affairs, tells PR Week, “[Schneider's] ad has unintentionally been used as a platform for discussion unrelated to the products and services we provide,” he said. “With that, we are working to remove the ad from our rotation at this time.”

Representatives for both Schneider and State Farm have not yet responded to TheWrap‘s request for comment.

Also read: 13 Major LA Clippers Sponsors Pull Out in Wake of Donald Sterling Racist Rant

Schneider reprised his popular “Saturday Night Live” character the Richmeister, aka “the Copy Guy,” for the State Farm campaign.

But it didn't go over well with some viewers, and the social media pages “Science Babe” and “Chow Babe” are being credited with starting the push for State Farm to pull the ads.

Critics of the ads also produced a video that asked supporters to post comments on State Farm's Facebook and Twitter pages.

“State Farm provides health insurance, and nothing ensures public health more than getting vaccinated,” the video says. “It is time to end the anti-vaccination movement; with your help, we can elicit change.”

See video: ‘Daily Show's’ Samantha Bee Takes on Anti-Vaccine Truthers and the ‘Outbreak of Liberal Idiocy’

Schneider has long held a stance against vaccinations. In 2012, he came out against California Bill AB 2109 that requires parents to seek professional medical advice regarding the risks and rewards of vaccinating their children.

After the bill passed both houses of the California legislature, Schneider wrote the following message on Twitter:

Today California passed a law to force parents to get a Doc's permission to not vaccinate their kids or they can't attend school! Nazi's — Rob Schneider (@RobSchneider) June 28, 2012

Watch the video asking State Farm to drop Rob Schneider below.