How to prevent Google from serving on pages with violations to protect your earnings

DoubleClick For Publishers / Google Ad Manager Ad Optimization
March 5, 2020 | by Kean Graham
How to prevent Google from serving on pages with violations to protect your earnings

Google can disable ad serving on your site at any time if you continue to violate program policies. The worst-case scenario is getting your entire account banned. Often, only a specific section or page is in violation, so you don’t have to shut Google demand completely but only prevent it from serving where violations exist.

The steps below apply to WordPress users only but might also provide some useful bits of information if you are using a different CMS.

Preparation

Step 1: List all the URLs of the pages with violations in a notepad, 1 per line. Exclude the root domain and add *.

For example, if this is the page, you only list it as /sunflawer-shaders-1-14-4/*

site example

Sample on a notepad for 2 URLs:

URL

Step 2: Create a header Hook on Wordpress using Ad Inserter plugin

  • If not done yet, install Ad Inserter plugin and activate it
  • Go to Settings > Ad Inserter
  • Click on General Settings (gear icon)
  • Go to the Hooks tab
  • Create a hook with action: wp_head and make sure it’s checked
  • Save Settings

ad inserter settings

Step 3: On Google Ad Manager, create a key-value pair (KVP):

  • key name: google
  • value: no

Implementation

Step 1: Deploy the header tag that contains the KVP in one of the blocks

kvp code

Step 2: Select all sections

select sections

Step 3: Select the header hook you created for the Insertion

header source code

Step 4: Click on Lists > click URLs > paste the list of URLs with violations 1 per line (see below screenshot)

Step 5: Select White list > Save settings

select settings

Step 6: Open the block which contains the regular header tag/s that targets the URLs where you don’t want Google to run

Step 7: Click Lists > paste the list of URLs where you don’t want Google to run > set to Black list

code section

Repeat steps 4 to 7 for URLs you’d like to add in the future.

Step 8: Save

Google line items in Google Ad Manager

The action below will make your Google line items ineligible to serve where the key-value pair exists.

Step 1: In Google Ad Manager, open each of your AdSense/Google Ad Exchange line items

Step 2: Set Custom Targeting to Google > is none of > no

custom targeting

Step 3: Save

Conclusion

Now you know how to add an extra layer of protection and prevent your account from getting banned. Violating Google program policies is never a good idea. Be sure to follow them as closely as possible.

Are you still struggling with policy violations or invalid traffic and don’t know how to rid yourself of these issues? Let MonetizeMore help! Our ad optimization specialists know Google program policies inside and out and can help you with invalid traffic concerns. Sign up to MonetizeMore today!

Ad Ops Tips & Guides, Industry News, Latest Tech and Success Stories - right in your inbox.

We are committed to protecting you Privacy Data

Here’s the course that 300+ pubs used to scale their ad revenue.

Enroll today

Book Banner

"Working with MonetizeMore has been a transformative experience as they helped to increase my overall revenues by over 180%"

4.9

$100M+

Paid to Publishers

3B+

Ad Requests Monthly

1500+

Happy Publishers

Recommended Reading

q4-make-more-money
Blog
October 3, 2023

Elevate Your Q4 Earnings: Dive into Uncharted Ad Revenue Territories!

Read More
how-to-increase-website-speed
Search Engine Optimization (SEO)
October 2, 2023

10 Easy Ways to Increase Website Speed

Read More
advanced-ads-vs-ads-insertor
Blog
September 29, 2023

Advanced Ads vs Ad Inserter

Read More

Trusted by 1,500+ publishers worldwide

10X your ad revenue with our award-winning solutions.

Let's Talk

Close

Ready to 10X your ad revenue with the #1 ad management partner?

Start Now