How to Get the Ad Code of Problematic Ads on Mobile Phones

Ad Optimization
Last updated: August 23, 2019 | by Kean Graham

This post was most recently updated on August 23rd, 2019

Here is a step-by-step guide on how to capture the live ad code of problematic ads on mobile phones using Google Chrome and a JS bookmarklet.

Step 1: On your mobile phone, download, and Install

Step 2: Go to one site, then save it as a bookmark


Step 3: Edit the bookmark you just saved

  • Use a short name (i.e ‘Problem Ad’)
  • The paste this JS code in the URL field:

javascript:(function(){var xmlHttp = null;xmlHttp = new XMLHttpRequest();“POST”, “”, true );xmlHttp.setRequestHeader(‘Content-Type’, ‘application/x-www-form-urlencoded’);xmlHttp.send(“url=” + encodeURIComponent(location.href) + “&source=” + encodeURIComponent(document.documentElement.outerHTML));})();

edit bookmark

Step 4: Now, go to the page where you saw the problematic ad

(example below)

view page

  • Now, go to your bookmarks and click on the ‘Problem Ad’ bookmark you saved earlier.
  • It will send that page to the MonetizeMore system and we should be able to replicate the problem and advise how to fix it.

problem ad

ad screenshot

If you want to fix a problematic ad on your site, contact MonetizeMore and we can help you fix, manage,  and optimize ads on your site for monetization.

You may also sign-up for FREE to Google Ad Exchange here.

Related Reads:


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%"


Paid to Publishers


Ad Requests Monthly


Happy Publishers

Recommended Reading

Ad Optimization
March 27, 2023

The Top 5 Ad Sizes That Generate the Most Revenue in 2023

Read More
March 22, 2023

The Ups and Downs of ChatGPT for Publishers| Maximize Your Revenue…But at What Cost?

Read More
Traffic Cop
Last updated: March 22, 2023

The High Cost of Fake Traffic: $143 Billion Gone

Read More

Trusted by 1,500+ publishers worldwide

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

Let's Talk

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

Start Now