Traffic Cop Tutorial: How to block ads from serving to invalid traffic – AdX or AdSense hardcoded

Traffic Cop
Last updated: October 31, 2022 | by Kean Graham
Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded

This post was most recently updated on October 31st, 2022

Traffic Cop

If using WordPress, you can deploy the Traffic Cop script using any of these plugins:

Advanced Ads

Click Advanced Ads > Ads > New Ad

Give it a title or name. Something that would allow you to easily identify this ad (e.g. m2_trafficcop)

Ad type: Plain Text and Code

Paste the script in the space provided under Ad Parameters

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Click Publish

Select </body> placement

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Ad Inserter

Click Settings > Ad Inserter

Click the gear icon (Ad Inserter General Settings)

Click the Footer tab

Paste the script in the space provided

Click to enable

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Click Save Settings

If you need to deploy this on specific sections only, watch this tutorial:

AdSense or Ad Exchange tags

You will be provided with a new set of AdSense or Ad Exchange tags which look something like this:

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

    1. Remove any old hardcoded AdSense or Ad Exchange from the site
    2. If using WordPress, you can deploy the tags using any of these plugins:

Advanced Ads

Click Advanced Ads > Groups & Rotation > Add New Group

Give it a name & save

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Edit the newly created group and set to Ordered Ads & select number of ads you want to display per page

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Click Update Groups

Click Advanced Ads > Ads > New Ad

Give it a title or name. Something that would allow you to easily identify this ad (e.g. ad_top_sidebar)

Ad type: Plain Text and Code

Paste the tag in the space provided under Ad Parameters

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Set Display and Visitor condition as needed

Select Group

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Click Publish

Select the placement or spot where you’d like it to show up

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Repeat steps for the next tag you need to deploy.

If the ad is intended for the sidebar, click Appearance > Widgets

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Drag Advanced Ads into position and select which ad you’d like to show on the spot selected, then click Save

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Watch this tutorial for more info:

Ad Inserter

Click Settings > Ad Inserter

Use a new ad block and paste the <body> tag provided to you.

Specify which page categories you’d like it to show up and which spot on the page

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Repeat steps for the next <body> tag you need to deploy.

If the ad is intended for the sidebar, specify which page categories this ad will serve but keep Insertion: Disabled

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Then, go to Appearance > Widgets

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Drag Ad Inserter into position and select which Block you’d like to show on the spot selected, then click Save

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Check out PubGuru University to learn more about deploying ad tags, optimizing ads with AdSense, Google Ad Manager, and more!

Test it!

  1. Download PubGuru Ad Inspector
  2. Open a page on your site where the ads are deployed
  3. Turn on PubGuru Ad Inspector and click Refresh page
  4. Under the Logs tab, you will see the status of Traffic Cop

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

Google Analytics and GDPR Compliance

Our tech is now able to seamlessly handle Google Analytics tracking and compliance to GDPR, with no extra codes needed! This makes implementation a lot simpler and unloads a bunch of codes from your site. Imagine a 100 lb of weight lifted off your shoulder. You’re welcome.

  1. Remove your Google Analytics tracking codes and any GDPR codes.
  2. Inform your MonetizeMore Account Manager in advance if you plan to do this, so you can agree on a specific schedule to deploy the changes.
  3. We’ll take care of everything else from here.

Checking Reports

Traffic Cop Tutorial: How to block ads from serving to invalid traffic - AdX or AdSense hardcoded MonitizeMore

  1. You will receive email instructions to setup your account on https://app.pubguru.com/
  2. Watch this quick introduction video: https://youtu.be/I8Z1BK0vUDU
  3. Witness how Traffic Cop protects your earnings from fraud traffic!

See the video tutorial here:

More than 1500 publishers see 50-400% ad revenue growth with us.

Don't just take our word for it

$100M+

Paid to Publishers

3B+

Ad Requests Monthly

1500+

Happy Publishers

Recommended Reading

ad-placement-guide
Ad Optimization
March 27, 2024

Ultimate Guide To Ad Placements for Ad Revenue Optimization

Read More
make-money-vignette-ads
Blog
Last updated: March 27, 2024

Vignette Ads:How publishers are seeing 10X gains with it?

Read More
march-core-update-penalty
Blog
March 21, 2024

Surviving Google’s March 2024 Core Update

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