---
title: "Cross Ad Group Query Fencing"
url: "https://www.omnicliq.com/en/scripts/cross-adgroup-query-fencing/"
description: "When the same query serves from two ad groups, keeps it in the most relevant one and blocks it everywhere else with a negative exact keyword."
locale: "en"
---

# Cross Ad Group Query Fencing

> When the same query serves from two ad groups, keeps it in the most relevant one and blocks it everywhere else with a negative exact keyword.

- Category: Negatives & Fencing
- Level: Account
- Mode: Makes changes
- License: Apache 2.0
- GitHub: https://github.com/Omnicliq-Digital-Agency/google-ads-scripts/tree/main/scripts/cross-adgroup-query-fencing
