adsense coding in myspace layouts

Discussion in 'HTML & Website Design' started by Emerhil, Jan 1, 2008.

  1. #1
    Hello,

    I have a question about the placement of adsense code into myspace layotus that are offered from layout sites. The sites give you free layouts, but they have a google ad embedded in them. Well, even if they dont there are plenty of layouts that will result in google ads.

    So my question is about the client id that benefits from the google ad. Do the layout sites have their client id in the ads? Will they benefit from you using their layout - as far as adsense?

    If so, how are they coding in their own affiliate id's into the layouts?

    If I have a layout from one of the sites, how would I edit the code to put in my own id? And how are they coding in their id - if they are.

    Thanks.
     
    Emerhil, Jan 1, 2008 IP
  2. nicangeli

    nicangeli Peon

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I have never seen a myspace layout with google ads on. Anyway,

    If they are, all you would have to do is in the source code delete their code and replace it with yours.

    ?? Does this solve your problem?

    Nick
     
    nicangeli, Jan 1, 2008 IP
  3. NCDE302

    NCDE302 Peon

    Messages:
    425
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    good idea :)
     
    NCDE302, Jan 1, 2008 IP
  4. Emerhil

    Emerhil Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That does not answer my question. Below is the layout code (edited so it will post)

    < style>body{background-color: ffffff;background-position: bottom left;background-repeat: no-repeat;background-attachment: fixed;background-image: url("ht tp://www.layoutflux. com/images/layouts/supermario/bg.jpg");}
    table.contactTable a img{visibility: hidden;}
    table,tr,td{background-color: transparent;border-style: none;}
    table table table{border-top-style: solid;border-top-width: 5px;border-top-color: fffa01;border-right-style: solid;border-right-width: 5px;border-right-color: fffa01;border-bottom-style: solid;border-bottom-width: 5px;border-bottom-color: fffa01;border-left-style: solid;border-left-width: 5px;border-left-color: fffa01;background-color: ff0202;}
    table table,table table table table,table table table td{border-style: none;background: transparent;}
    table table table td table td.text a{margin-left: 10px;}
    table.contactTable td.text a{margin-left: 0px;}
    General,body,div,p,strong,td,textarea,input,.text,span.redtext,span.redbtext,span.blacktext10,span.blacktext12{color: ffffff;font-family: comic sans ms;}
    Headings,span.orangetext15,span.whitetext12,span.nametext,span.btext{color: ffffff;font-family: comic sans ms;}
    ProfileName,span.nametext{font-family: comic sans ms;color: ffffff;}
    ContactHeader,table.contactTable tr td.text span.whitetext12{color: 000000;display: none;}
    AllLinksNormal,a,a:link,a:visited,a.man,a.man:link,a.man:visited,a.navbar,a.navbar:link,a.navbar:visited,a.redlink,a.redlink:link,a.redlink:visited,a.searchlinkSmall,a.searchlinkSmall:link,a.searchlinkSmall:visited,a:hover,a:active,a.man:hover,a.man:active,a.navbar:hover,a.navbar:active,a.redlink:hover,a.redlink:active,a.searchlinkSmall:hover,a.searchlinkSmall:active{color: ebff11;font-family: comic sans ms;}
    NavBarNormal,a.navbar,a.navbar:link,a.navbar:visited,a.navbar:hover,a.navbar:active{color: ffffff;font-family: comic sans ms;}
    table.contactTable{background-image: url("http://www.layoutflux.com/images/layouts/supermario/contact.jpg");background-position: center center;background-repeat: no-repeat;}
    table.contactTable a{rc: 1;display: block;rc: 1;width: 115px;rc: 1;height: 28px;}
    span.blacktext12 { width: 430px; height: 200px; }
    span.blacktext12 { background-image: url(http://www.layoutflux.com/images/layouts/supermario/ex.jpg) }
    span.blacktext12 img { display: none !important; }
    table table table td { vertical-align: top !important; }
    span.blacktext12 { background-color: transparent; background-attachment: scroll; background-repeat: no-repeat; background-position: center center; }
    span.blacktext12 { visibility: visible !important; font-size: 0px; letter-spacing: -0.5px; display: block !important; }
    Labels,span.lightbluetext8{font-family: comic sans ms;color: ffffff;}
    table.navigationBar{background-color: ff0202;border-left-style: solid;border-right-style: solid;border-top-style: solid;border-bottom-style: solid;border-left-width: 5px;border-right-width: 5px;border-top-width: 5px;border-bottom-width: 5px;border-left-color: fffa01;border-right-color: fffa01;border-top-color: fffa01;border-bottom-color: fffa01;}
    InterestsNormal,a.searchlinkSmall,a.searchlinkSmall:link,a.searchlinkSmall:visited,a.searchlinkSmall:hover,a.searchlinkSmall:active{color: ffffff;}
    ProfilePic,table tr td table tr td table tr td table tr td.text a img{border-left-style: solid;border-right-style: solid;border-top-style: solid;border-bottom-style: solid;border-left-width: 5px!important;border-right-width: 5px!important;border-top-width: 5px!important;border-bottom-width: 5px!important;border-left-color: ffffff;border-right-color: ffffff;border-top-color: ffffff;border-bottom-color: ffffff;}
    table.contactTable tr td.text img,table.contactTable tr td.text a:hover img{rc: 8;border: 0!important;}
    CommentFriendsPics,table tr td table tr td.text table tr td.text table tr td table tr td a img{border-left-style: solid;border-right-style: solid;border-top-style: solid;border-bottom-style: solid;border-left-width: 5px;border-right-width: 5px;border-top-width: 5px;border-bottom-width: 5px;border-left-color: ffffff;border-right-color: ffffff;border-top-color: ffffff;border-bottom-color: ffffff;}
    TopFriendsPicsRequired,table tr td table tr td.text table tr td.text table tr td table tr td table tr td a img,table tr td table tr td.text table tr td.text table tr td table tr td table tr td a:hover img{rc: 1;border-left-style: none;rc: 1;border-right-style: none;rc: 1;border-top-style: none;rc: 1;border-bottom-style: none;}
    TopFriendsPics,table tr td table tr td.text table tr td.text table tr td table tr td table tr td a img{border-left-style: solid;border-right-style: solid;border-top-style: solid;border-bottom-style: solid;border-left-width: 5px;border-right-width: 5px;border-top-width: 5px;border-bottom-width: 5px;border-left-color: ffffff;border-right-color: ffffff;border-top-color: ffffff;border-bottom-color: ffffff;}.function{}</style><a href="ht tp:// layoutflux. com/">Contact Box Generated from Layout Flux</a><a href="ht tp:// layoutflux. com/" target="_blank"><img src="ht tp://layoutflux. com/img/button.gif" style="position:absolute; left:0px; top: 0px;" border="0"></a>
     
    Emerhil, Jan 1, 2008 IP
  5. Emerhil

    Emerhil Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    And in that code above I do not see anything about google ads. Yet, the myspace result is ads. Here is a sample of the result of doing 'view source' on the web page:


    <!-- ProfileV1 NH-->
    <html>
    <!-- ELS2MWEBNET1342 -->
    <!-- UserViewProfile -->
    <head><title>
    MySpace. com - Hicks - 36 - Female - RENO, Nevada - w w w. myspace. com /hicksinterprises
    </title><meta name="keywords" content="friends networking sharing photos finding friends blogs journals blogging journaling bands music rate pics join groups forums classifieds online social networking" /><meta name="description" content="MySpace profile for Hicks with pictures, videos, personal blog, interests, information about me and more" /><meta http-equiv="expires" content="0" /><meta http-equiv="Pragma" content="no-cache" />
    <script type="text/javascript" src="http://x.myspace.com/js/videos/swfobject.js"></script>

    <script type="text/javascript" src="http://x.myspace.com/modules/common/static/js//system.web.extensions/1.0.61025.0/microsoftajax.js"></script>
    <script type="text/javascript" src="http://x.myspace.com/modules/common/static/js/myspacejs040.js"></script>

    <link rel="stylesheet" type="text/css" href="http://x.myspace.com/modules/common/static/css/global004.css" />
    <link rel="stylesheet" type="text/css" href="http://x.myspace.com/modules/common/static/css/myspace.css" />
    <link rel="stylesheet" type="text/css" href="http://x.myspace.com/modules/common/static/css/google-003.css" />
    <link rel="stylesheet" type="text/css" href="http://x.myspace.com/modules/common/static/css/header002.css" />

    <style type="text/css">

    td.columnsWidening img,td.columnsWidening object {max-width:100% !important;width: expression(this.width > 400 ? 400 : true);}
    td.columnsWidening img,td.columnsWidening object {max-width:100% !important;width: expression(this.width > 400 ? 400 : true);}</style>
    <script type="text/javascript">
    if(typeof Type==="undefined") throw "ASP.NET AJAX framework missing.";
    Type.registerNamespace("MySpace");
    Type.registerNamespace("MySpaceRes");
    MySpaceRes.Common = {"Yes":"Yes","No":"No","Ok":"Ok","Attention":"Attention"};
    MySpaceRes.Header = {"Cancel":"Cancel / Cancelación","Continue":"Continue / Continuar"};
    MySpace.ClientContext = {"UserId":304986800,"DisplayFriendId":304986800,"IsLoggedIn":true};

    </script></head>
    <body alink="4e607b" link="4e607b" vlink="4e607b" bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0" style="visibility:visible; display:block" class="bodyContent">

    <!-- Header:profiles -->
    <script type="text/javascript" >var MySpaceClientContext = {"UserId":304986800,"DisplayFriendId":304986800,"IsLoggedIn":true};

    MySpaceClientContext.PreferredCulture = 'en-US';
    </script><div align="center"><table width="800" cellspacing="0" cellpadding="0" border="0" bgcolor="#003399" align="center"><tr><td><!-- Google: 466 -->
    <div id="header_gae"><script type="text/javascript" language="JavaScript">

    function google_ad_request_done(google_ads)
    {
    var i = 0;
    if (google_ads == null || google_ads.length == 0) return;
    var ctl = null;
    var str = '';
    str = '';
    str += '<noscript> <img height=1 width=1 border=0 src="ht tp:// pagead2.googlesyndication.com/pagead/imp.gif?client=ca-fim_myspace_uvp_728x90&event=noscript"/> </noscript>';
    i++;
    document.write(str);
    var gafc = document.getElementById("gafc");
    if (gafc == null) return;
    gafc.className = gafc.className.replace("adcount4", "adcount" + google_ads.length);
    }
    var google_color_line = "ffffff";
    var google_adtest = "off";
    var google_kw = "";
    var google_language = "en";
    var google_ad_height = 90;
    var google_ad_width = 728;
    var google_ed = "0:0:OGJlYzMwNmE4NDBkNWZiYc2tWYp0O_T_fIkLgniOl8q8Id-tCDYFwkS8kvtKsMdSvCG03RnpGefI3LyTO_MBXTw32Q8nh6cdwtL8LW-N4wBKZhRMO-obDbsP9b29vS8W::0:0:NmZmM2IxZjU0NWI5NDlhMqpRXZBoSD13C8lfToYkn2iKSCBHFdjO7Wt3tjfvoGsMdw2xQVRP1aE8lWmHiA6pGqbOpaXooQl1ABWKzW5QHpVaoX9TOq8J8zcwyOZ5xyIX";
    var google_ad_output = "html";
    var google_color_border = "ffffff";
    var google_safe = "high";
    var google_ad_type = "text,image";
    var google_ad_channel = "fim_myspace_uvp,fim_myspace_united-states";
    var google_kw_type = "broad";
    var google_color_bg = "ffffff";
    var google_encoding = "utf8";
    var google_cust_ch = "";
    var google_ad_format = "728x90_pas_sln";
    var google_color_link = 003197;
    var google_color_url = 003197;
    var google_ad_client = "fim_myspace_uvp_728x90";
    </script>
    <script type="text/javascript" language="JavaScript" src="http://pagead2.googlesyndication. com/pagead/show_ads.js"></script>
    </div><script src="ht tp://creative. myspace. com/cms/js/ad_wrapper0058.js" type="text/javascript"></script>
    <div class="clear"></div><div id="googlebar">
    <STYLE>
    #header_gae { text-align:center; margin-left:auto; margin-right:auto; }
    #profilelinks { padding-right:25px;}
    #profilelinks select { visibility:visible !important; WIDTH: 125px;}
    body DIV DIV DIV#profilelinks{ VISIBILITY: visible !important; display:inline !important; position:static; padding-right:15px; }
    </STYLE>
    ... edited some so this would post.
     
    Emerhil, Jan 1, 2008 IP
  6. Emerhil

    Emerhil Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    So I put in the playout code, and that results in a webpage with a google ad? If I try to edit the layout within myspace - all I see is the CSS info (in which I cannot see the google part?)

    My question is NOT to figure out how to get rid of the ad. My question is how does the ad show up? WHat is done in the CSS part of that mysapce layout that causes the ad to result in the first place? How would I edit the layout code (the CSS stuff I paste into myspace) to make the adsense use a different client id - like my own!!

    Anyone here understand this?
     
    Emerhil, Jan 1, 2008 IP
  7. Gallito

    Gallito Peon

    Messages:
    1,939
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I'm sure this is done by design so that people can't just remove all of myspace's revenue from their pages. Pretty sure that changing myspace ads to your own adsense code would not make them very happy.
     
    Gallito, Jan 1, 2008 IP