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

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:

Source:<a href=""></a>

Kean Graham

CEO and Founder at MonetizeMore

Kean has been a pioneer in the AdTech world since 2010 who believes in the supremacy of direct publisher deals, programmatic advertising, and building ad technology as keys to scaling ad revenue. Here, he provides publisher resources and guides covering areas like website monetization, AdSense optimization, Google Ad Manager, Ad Exchanges, and much more.

Get our latest ad optimization tips delivered to your inbox

Fill out my online form.

Submit a Comment

Your email address will not be published.