Debug only version

Guille Filipich edited this page Jun 20, 2018 · 16 revisions

Features:

  • This simplified implementation provides the debug screens for desktop and mobile devices.
  • To enable it, in your browser add    ?adcase.debug=true to any url. This will show the blue "ads" button, only for you.
  • ?adcase.debug=false to turn it off.
  • Enabling this feature will not add any overhead to your website. Debug screen will only be loaded for users that set the adcase.debug url parameter. Regular users will not be affected.

Implementation instructions:

Replace:

<script async='async' src='https://www.googletagservices.com/tag/js/gpt.js'></script>

with:

<script>
var adcase = { src: "https://www.googletagservices.com/tag/js/gpt.js?" };
if(   localStorage.getItem("adcase.debug") 
   || document.location.href.indexOf("adcase.debug=true")>0 )  {
  adcase.src="https://storage.googleapis.com/adcase.io/dist/3/debug-only.js";
} 
adcase.s = document.createElement("script");
adcase.s.async = true;
adcase.s.src = adcase.src;
document.head.appendChild(adcase.s);
</script>

 

Support and new ideas:

  • Open a Github issue, we'll do our best to solve your request asap.
  • Please remember adcase.io is given for free as is, with no contractual support. As it is not a Google product, it has no Google official support.

 

<!-- enjoy -->
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.