Problem Installing CPM Star Custom Ad Formats

Discuss any gaming related topics, Get the latest update on different games.
Post Reply
User avatar
CyberPunk
PGO Enthusiast
Posts: 145
Joined: Thu Jan 02, 2014 4:20 pm

Problem Installing CPM Star Custom Ad Formats

Post by CyberPunk » Wed Dec 02, 2015 5:24 pm

I had a problem attaching CPM Star custom ads like Dynamic Site Skin, Anchor Ad, Pushdown, Flash Kit, Dynamic Editorial, Static Editorials and Offers, Video Preroll, Video Floor Ad, Youtube Static Editorial on my site, after installing the ad codes the certain part of the site where I put the code stops loading or the whole page doesn't load at all. If you are experiencing these errors too here's the solution:

All you need to do is remove the BEGIN and END texts in the ad code, for example:

Dynamic Site Skin original code:

<!-- BEGIN CPMSTAR TWO-SIDED ASYNCHRONOUS SITESKIN CODE 20130626 -->
<script type="text/javascript">
var cpmstar_siteskin_settings = {
pid: *****, //your poolid
centerWidth: '985px', //distance IN PIXELS of ad from left side of page, e.g. "800px"
fixed: '1', //fix ads near top of screen: "0" to allow ads to scroll with page
topPos: '0px', //optionally shift the ad down from top of page
zIndex: 100 //adjust layering of ad vs. other page elements
};
(function(){var t=document.createElement('script');t.type='text/javascript';t.async=1;t.src=(document.location.protocol == "https:"?"//server":"//cdn") + ".cpmstar.com/cached/js/siteskin_v100.pack.js";var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(t,s);})();
</script>
<!-- END CPMSTAR SITESKIN CODE -->

After editing:

<!-- CPMSTAR TWO-SIDED ASYNCHRONOUS SITESKIN CODE 20130626 -->
<script type="text/javascript">
var cpmstar_siteskin_settings = {
pid: *****, //your poolid
centerWidth: '985px', //distance IN PIXELS of ad from left side of page, e.g. "800px"
fixed: '1', //fix ads near top of screen: "0" to allow ads to scroll with page
topPos: '0px', //optionally shift the ad down from top of page
zIndex: 100 //adjust layering of ad vs. other page elements
};
(function(){var t=document.createElement('script');t.type='text/javascript';t.async=1;t.src=(document.location.protocol == "https:"?"//server":"//cdn") + ".cpmstar.com/cached/js/siteskin_v100.pack.js";var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(t,s);})();
</script>
<!-- CPMSTAR SITESKIN CODE -->

Now the ad should appear nicely on your site.

Share this Post

Problem Installing CPM Star Custom Ad Formats

Sponsor

Sponsor

PinoyGaming.Org
The largest Filipino Gaming Community
 

Post Reply