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/*

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

Sample on a notepad for 2 URLs:

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

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

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

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

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

Step 2: Select all sections

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

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

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

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

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

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

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

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

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

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!

Recommended Reading

how-to-generate-tags-for-multiple-ad-units
Blog
November 22, 2024

How to generate tags for multiple ad units?

Read More
A target with a bullseye.
AdSense Ad Optimization
November 20, 2024

How to Find Your Target Audience to Increase Your AdSense Revenue

Read More
Ad Optimization
November 18, 2024

Top 5 Ad Viewability Strategies that will Boost Revenue

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