Automatic Video Placement Exclusion
Excludes low-view-rate video placements from video campaigns using current GAQL reporting and duplicate-safe batching.
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
- Set VIEW_RATE_THRESHOLD_PERCENT and MIN_IMPRESSIONS based on your account scale.
- Run manually first and review the log output before scheduling.
- Use conservative thresholds at the start so you do not over-exclude useful placements.
- If needed, add campaign label filters before production use.
- Review exclusions periodically to confirm they align with your campaign goals.
More Scripts In This Library
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.