TwoSquaresTwoSquares
ContactFree Audit
ENBG
  1. Home
  2. Scripts
  3. YouTube Channel Exclusion Audit And Blocker
Back to scripts

YouTube Channel Exclusion Audit And Blocker

Reviews YouTube placements in video campaigns, whitelists acceptable channels in a sheet, and excludes channels that fail your country or topic rules.

youtubevideoplacementsexclusionsgoogle-sheets

Script Details

Name
YouTube Channel Exclusion Audit And Blocker
Author
Kiril Ivanov
Updated
2026-03-19

Script Code

Use this when you want a stricter YouTube placement-control workflow with spreadsheet whitelisting and email reporting.

Preview is public. Unlock full code with name and email.

/**
 * ==========================================================
 * YouTube Channel Exclusion Audit And Blocker
 * ==========================================================
 * Description: Reviews YouTube placements, whitelists good
 * channels, and excludes channels that fail your rules.
 *
 * Copyright (c) 2026 TwoSquares. All Rights Reserved.
 * Developed by Kiril Ivanov
 */
function main() {
  var SPREADSHEET_URL = "https://docs.google.com/spreadsheets/d/xxxx";
  // ... preview shortened
}

About This Script

YouTube Channel Exclusion Audit And Blocker is a more advanced placement-control script for video campaigns. It reviews recent YouTube placements, checks channel metadata, whitelists acceptable channels in a sheet, and excludes channels that do not meet your rules.

This updated version cleans up the original draft by fixing variable naming, channel parsing, spreadsheet handling, builder usage, and logging structure. It still relies on the YouTube advanced service, so that dependency must be enabled before use.

Because this script performs direct exclusions based on metadata rules, it should be tested conservatively. The whitelist sheet is important because it lets you preserve channels you have already vetted manually.

Implementation Notes

  1. Enable the YouTube advanced service before running the script.
  2. Replace the spreadsheet URL, sheet name, and alert email values.
  3. Adjust allowed countries, impression range, and topic-category logic for your account.
  4. Run manually once and confirm the whitelist and exclusion behaviour.
  5. Only schedule it after you trust the metadata rules and email output.

More Scripts In This Library

Previous Script

Week-over-Week Query Growth Waste Alert

Next Script

Zero Impression Keyword Checker

Automatic Video Placement Exclusion

Excludes low-view-rate video placements from video campaigns using current GAQL reporting and duplicate-safe batching.

Display Placement Domain Excluder

Excludes display placements that match domain rules and optionally adds them to a shared excluded placement list for broader reuse.

Placement Exclusion Candidate Finder

Finds expensive non-converting placements in Display/Video campaigns to support exclusion decisions.

Account Anomaly Detector

Compares today’s account performance against the same weekday across previous weeks and alerts when impressions, clicks, conversions, or cost move outside expected bounds.

YouTube Channel Exclusion Audit And Blocker FAQs

Common setup, usage, and troubleshooting questions for this script.

Dominate your market. Own your growth.

Let's build measurable growth together.

Get Free Audit
TwoSquares

Full-service digital growth agency. SEO, PPC, paid social, GEO and web development for UK brands ready to scale.

ENBG

Ask AI about TwoSquares

ChatGPT
Perplexity
Grok
Claude
Gemini

Services

  • SEO
  • GEO
  • PPC
  • Paid Social
  • Email Marketing
  • Web Design & Dev
  • CRO
  • Strategy & Planning
  • Consultancy
  • Custom Solutions

Solutions

  • AI Search Growth System
  • Demand Generation & Lifecycle
  • Pay-Monthly Websites

Audits

  • PPC Audit
  • SEO Audit
  • GEO Audit
  • Website Audit
  • Full Marketing Audit
Featured on Best in Britain

Company

  • About Us
  • Our Brands
  • Blog
  • Contact
  • Case Studies
  • Careers
  • Templates

Resources

  • Resources Hub
  • AI Readiness Toolkit
  • SEO Glossary
  • Free Tools

Industries

  • Hotels & Resorts
  • Property & Rentals
  • Restaurants & Bars
  • E‑commerce & DTC

Connect

[email protected]
SSL Secured
GDPR Compliant

© 2026 TwoSquares Limited (SC877356). All rights reserved.

Privacy PolicyTerms of ServiceCookie PolicySitemap

TWOSQUARES