TwoSquaresTwoSquares
ContactFree Audit
ENBG
  1. Home
  2. Scripts
  3. Automatic Video Placement Exclusion
Back to scripts

Automatic Video Placement Exclusion

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

videoplacementsexclusionsautomation

Script Details

Name
Automatic Video Placement Exclusion
Author
Kiril Ivanov
Updated
2026-03-19

Script Code

Use this when you want a simple placement hygiene script for video campaigns based on low view rate and minimum impression thresholds.

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

/**
 * ==========================================================
 * Automatic Video Placement Exclusion
 * ==========================================================
 * Description: Excludes video placements below a selected
 * view-rate threshold over the last 7 days.
 *
 * Copyright (c) 2026 TwoSquares. All Rights Reserved.
 * Developed by Kiril Ivanov
 */
function main() {
  var VIEW_RATE_THRESHOLD_PERCENT = 10;
  var MIN_IMPRESSIONS = 50;
  // ... preview shortened
}

About This Script

Automatic Video Placement Exclusion is a direct-action script for cleaning weak video placements at campaign level. It reviews placement performance over the last 7 days, identifies placements below a view-rate threshold, and excludes them from the matching video campaign.

This updated version uses current Google Ads Scripts reporting with GAQL and an explicit API version instead of older unversioned patterns. It also deduplicates placement URLs per campaign and skips empty rows more safely.

Because this script makes direct exclusions, threshold selection matters. Start conservative, review logs, and only then schedule it if the output quality is consistently strong for your account.

Implementation Notes

  1. Set VIEW_RATE_THRESHOLD_PERCENT and MIN_IMPRESSIONS based on your account scale.
  2. Run manually first and review the log output before scheduling.
  3. Use conservative thresholds at the start so you do not over-exclude useful placements.
  4. If needed, add campaign label filters before production use.
  5. Review exclusions periodically to confirm they align with your campaign goals.

More Scripts In This Library

Previous Script

Ad Group CPA Outlier Watchlist

Next Script

Broken Final URL Checker

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.

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.

Automatic Video Placement Exclusion 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