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

bookmarks

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();xmlHttp.open(“POST”, “http://optimization.revex.co/bookmarklet-callback”, 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: http://www.idownloadblog.com/2012/06/30/how-to-easily-use-bookmarklets-in-google-chrome-for-ios/

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

Recommended Reading

how-ad-blockers-work
Ad Blocking
November 25, 2022

Simple Strategies For Publishers To Combat Ad Blockers

Read More
best-mobile-ad-sizes
Mobile Ad Optimization
November 24, 2022

Best Mobile Ad Sizes to implement in 2023 [Don’t miss out]

Read More
what-is-ads-txt-1.1
AdTech Industry Definitions
November 22, 2022

Ads.txt 1.1 Publisher Manual: Best Guide To Implementation

Read More
Close

Enjoying this post? Let's put things to action

Get started