PGAI V2 Instructions

Blog
Last updated: January 3, 2025 | by Mike Hartmann
PGAI-V2-for-make-more-ad-money

This post was most recently updated on January 3rd, 2025

PubGuru Ad Inspector (PGAI) is a tool used to identify and resolve issues and opportunities on publisher sites. PGAI’s latest version is built on a large suite of tests that runs periodically on publisher sites.

The goal of PGAI V2 is to notify users about issues that could negatively impact revenue and to alert publishers and PubGuru monetization specialists alike to revenue opportunities.

PubGuru Ad Inspector does automatically run in the background on a small percentage to detect issues but publishers may wish to view the results of the tests and to do so there are two options for running PGAI on a particular page:

  1. For publishers that are already using PubGuru to enhance their advertising revenue, you can add ?pg_debug=true to the website URL
  2. The second option is to run the PubGuru Ad Inspector script directly in the console. This is useful for publishers or pages that are not running the PubGuru script. First, load the site with the URL parameter from the first step attached (?pg_debug=true) Simply open Google Dev Tools, navigate to the Console tab, and paste the code below in before hitting enter. You may need to wait a few seconds for the tests to run.
const script = document.createElement('script');
script.type = 'text/javascript';
script.crossOrigin = 'anonymous';
script.src = 'https://m2hb.s3.amazonaws.com/pgai-v2/sherlock.js';
const target = document.getElementsByTagName('head')[0];
target.insertBefore(script, target.firstChild);

Recommended Reading

dynamic-allocation
Ad Industry News
May 14, 2025

Google’s Dynamic Allocation Sunset: The Industry-Shaking Shift to Header Bidding

Read More
media-net-vs-adsense
Blog
May 9, 2025

Media.net vs AdSense vs MonetizeMore: Best Monetization Partner Revealed

Read More
monumetric-mediavine
Blog
May 7, 2025

Monumetric vs Mediavine vs MonetizeMore: Best Ad Monetization Partner

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