How To Exclude Children‘s Channels From YouTube Advertising

In the most recent article in their “How To” series, YouTube highlighted how to enable your business or website to show up for video searches but exclude childrens’ channels from appearing as ad keywords.

YouTube is a video-sharing service that allows users to upload, share and watch videos. The “youtube exclusion list” is a command-line tool that allows you to exclude children’s channels from YouTube advertising.

A number of large sponsors abandoned YouTube in the middle of March when their pre-roll commercials (paid films that play before the main content and can be skipped after 5 seconds) were broadcast in videos containing inappropriate material. However, we’d want to discuss another crucial subject in this article: inadvertently exhibiting pre-rolls in children’s material.

The issue is that, even with proper targeting settings for an adult audience, children’s channels get a significant quantity of impressions (up to 90% in certain circumstances). This is because parents utilize their “adult” accounts on their mobile and desktop devices to display cartoons and instructive films to their children.

Advertisers, understandably, do not want to spend money on kids who only watch pre-rolls since it has no impact on sales. Negative keywords may be used to filter out such movies and channels, but this is time-consuming and complicated, and it will not filter out all of the channels and videos.

Because they have a common, childlike name or an insufficient description, many non-popular children’s channels and videos continue to broadcast pre-roll adverts, and many children still view them. Using AdWords scripts, it is possible to automate the search and exclusion of such channels, as seen below.

Solution to the Issue

Google AdWords enables you to manage your advertising account with your own JS scripts. They’re built on Google Apps Scripts, and their major benefit is the ability to integrate with other Google services like Google Drive, Spreadsheets, YouTube, Analytics, BigQuery, and others, as well as third-party APIs. You may utilize the YouTube Data API v3 to locate a video for an ad placement, for example.

It turns out that children’s videos are grouped together based on their tags rather than their names. Similar tags for several children videos in English, Russian, and Ukrainian were discovered after changing the YouTube video search script and stored in a Google Spreadsheet for future use. Although the file is open to the public, it is advised that you make a duplicate of it and store it to your Google Drive before Getting the Script Ready and replacing the file id with a new one.

Important Information

var report =‘SELECT Url’ + ‘FROMURL PERFORMANCE REPORT’ + ‘WHERE CampaignName CONTAINS “Video”‘ + ‘DURING YESTERDAY’); var rows = report.rows(); var videoId = row[‘Url’]; var row =; toString(). videoIdList.push([videoId]); replace(‘’,”);

for (var i = 0; i < videoList.length; i++) { var results = YouTube.Videos.list(‘snippet’, {id: videoList[i]}); try { if (results.items[0].snippet !== undefined) { var channelId = results.items[0].snippet.channelId; var tags = results.items[0].snippet.tags; if (uniqueChannel[channelId] !== true){ for (var k = 0; k < tags.length; k++) { if (tagsObj[tags[k]] !== undefined) { channels.push([channelId]); uniqueChannel[channelId] = true; Logger.log(“Add to the library with extensions – ” + channelId); break; } else { continue; }; } } } } catch (e) { Logger.log(e); } }

The ID of the video channel will be given to the array for exclusion if any of the video tags match the tags in the library (if it has not already been added via another video from the same channel).

After you’ve verified all of the videos, repeat the process to add all of the channels to your AdWords account’s list of prohibited sites. A list with the same name as the one in the script (in this case, “Video channels”) must be constructed ahead of time. The list of prohibited sites has a maximum of 65,000, so there shouldn’t be any issues with overflow.

var excludedPlacementList = AdWordsApp.excludedPlacementLists().withCondition(‘Name = “Video_Channels”‘).get().next(); for (var d = 0; d < channels.length; d++) { excludedPlacementList.addExcludedPlacement(“”+channels[d].toString()); };

Problems Occurred

Although the aforementioned technique seemed to work, there were still some difficulties. We ran across the following issue when utilizing this script. Due to AdWords’ 30-minute constraint, the script was unable to process all of the videos from the prior day. As a result, no new exceptions were introduced.

It was also vital to upload videos as often as possible in order to save money by targeting the proper audience. Unfortunately, even after adding a video to the list of exceptions, they did not begin operating immediately, according to our experience. It might take up to two days, according to Google technical assistance, although it normally takes less. As a result, if you have a list of channels that the script collects, you need add them to the exception list ahead of time.


It seems sensible to run the script every hour and not examine the movies that have already been verified, since the script would otherwise surpass the 30-minute restriction in the middle of the day. This script was used to create the solution. It was a little more difficult than the original version of the script, but the results were fantastic.

We’ve introduced the ability to save txt files containing checked information to Google Drive. The IDs for the examined material were saved in the file and compared to the new IDs afterwards. A different approach from the open-source Undercode.js package was used to do the comparison.

We obtained an array of solely new videoIds for the previous hour as an output, which we tested for tags using the technique defined in the initial version of the script. We then put all of the videos for the current day to the same txt-file when the script was finished.

Getting the Script Ready

  1. Specify the name of the Google Drive file that will be created: If there is no such file, it will be produced automatically. var dataFile = “videoIds.txt”;

  2. Choose the campaigns you wish to examine: ‘WHERE CampaignName INCLUDES THE WORD “(Video)” The AdWords Help contains AWQL syntax.

  3. var spreadsheet = SpreadsheetApp.openById(’11PMGc70yLE88Npi47Hwb6W36Y8yjw2N2CdXXLgdK12o’); var spreadsheet = SpreadsheetApp.openById(’11PMGc70yLE88Npi47Hwb6W36Y8yjw2N2CdXXLgdK12o’);

  4. Create a broad list of disallowed locations in the AdWords interface: var not included AdWordsApp.excludedPlacementLists = PlacementList (). ‘Name = “Video channels”‘, withCondition(‘Name = “Video channels”‘). get(). next(); and replace “Video channels” with its name.

  5. YouTube should be enabled in the enhanced APIs. Enable YouTube API in Google Developers Console after the first views. The error log will include the URL.

  6. For script operation, set a “Every Hour” schedule.

And there you have it!

As a consequence, we developed a script that evaluated YouTube channels containing children’s video material every hour while staying within the time restriction. By adding additional tags to the Spreadsheet file, you may adapt the script to any subject. The modified script’s code may be found here. Your comments and ideas are greatly appreciated.

Keep in mind that video channels containing other material may sometimes be included in the exemption list, although this is uncommon. There are two primary causes for this. Material for children, as well as other forms of content, is shared by the channel owners. In certain cases, video channels may utilize the incorrect tags to increase their traffic.

According to our findings, after you start utilizing the script, your viewing rate (VTR, or view-through rate) will drop dramatically, since adults use the “skip” button more often than youngsters, but your ad will still be seen by the right people.

Use the script to target the proper audiences with your adverts.

The “youtube exclusions” is a feature that allows you to exclude children’s channels from YouTube advertising. This means that the ads will not be shown on the kids’ channel.

Frequently Asked Questions

Can I exclude YouTube channels?

A: Currently, I am unable to exclude any specific YouTube channels.

How do I restrict YouTube Kids to approved channels?

A: You can search for
Youtube Kids on your device to restrict it from certain channels.

Can I remove ads from YouTube Kids?

A: Unfortunately, YouTube Kids is not able to remove ads. This is due to the fact that YouTube has a copyright agreement with Disney which prevents them from doing so.

Related Tags

  • google ads
  • exclude kids content youtube
  • google ads placement exclusion list
  • youtube kids
  • google ads blacklist

Leave a Comment

Your email address will not be published.