Rotating YPN and AS with Phpadsnew

Discussion in 'Guidelines / Compliance' started by keikor, Jan 31, 2006.

  1. #1
    Hi,

    I was trying to install phpadsnew and got through the part where i can rotate between google adsense and ypn ads. However, i noticed that when i am using the remote invocation for javascript type, i can't get the real javascript source pulled up from the source file, means when i view the source file of the page, it is showing something ;like this:-

    <script language='JavaScript' type='text/javascript' src='http://www.mysite.com/phpadsnew/adx.js'></script>
    <script language='JavaScript' type='text/javascript'>
    <!--
       if (!document.phpAds_used) document.phpAds_used = ',';
       phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
       
       document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
       document.write ("http://www.mysite.com/phpadsnew/adjs.php?n=" + phpAds_random);
       document.write ("&amp;what=zone:3&amp;withText=1");
       document.write ("&amp;exclude=" + document.phpAds_used);
       if (document.referrer)
          document.write ("&amp;referer=" + escape(document.referrer));
       document.write ("'><" + "/script>");
    //-->
    </script><noscript><a href='http://www.mysite.com/phpadsnew/adclick.php?n=a35a85bd' target='_blank'><img src='http://www.mysite.com/phpadsnew/adview.php?what=zone:3&amp;n=a35a85bd' border='0' alt=''></a></noscript>
    Code (markup):
    That's why i was wondering whether this is allowed per TOS? Because i can't seem to view the javascript pulled from ypn or adsense server.

    In fact, if i use the local mode for phpadsnew, i can see real javascript source code being pulled out like this:-

    <script language="JavaScript" type="text/javascript">
    <!--
    ctxt_ad_partner = "myypnadcode";
    ctxt_ad_section = "";
    ctxt_ad_bg = "";
    ctxt_ad_width = 250;
    ctxt_ad_height = 250;
    ctxt_ad_bc = "000000";
    ctxt_ad_cc = "000000";
    ctxt_ad_lc = "FFFFFF";
    ctxt_ad_tc = "FFFFFF";
    ctxt_ad_uc = "FFFFFF";
    // -->
    </script>
    <script language="JavaScript" src="http://ypn-js.overture.com/partner/js/ypn.js">
    </script><div id="beacon_4" style="position: absolute; left: 0px; top: 0px; visibility: hidden;"><img src='http://www.mysite.com/phpadsnew/adlog.php?bannerid=4&amp;clientid=8&amp;zoneid=3&amp;source=&amp;block=0&amp;capping=0&amp;cb=47b2a94244b0562b64ae67a2a2b909b6' width='0' height='0' alt='' style='width: 0px; height: 0px;'></div>
    Code (markup):
    The problem is i have some static file where php is not available. So, any suggestions to this? thanks.

    Just to add that i notice several big sites such as Jensense are using this method. The javascript code can't be viewed from the source file.
     
    keikor, Jan 31, 2006 IP
  2. telecomm

    telecomm Peon

    Messages:
    118
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    what is Phpadsnew ?
     
    telecomm, Feb 1, 2006 IP