1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Mashing up google ads using java script?

Discussion in 'AdSense' started by Small Fry, Oct 31, 2007.

  1. #1
    Locanto looks like a recent AU gumtree clone that likes local subdomains.
    What do you guys think of these ad blocks above and below the classifieds.

    http://sydney.locanto.com.au/Pets/T/

    I have pasted in some code source snippets below. They are cutting up the ads using java script and placing them into their own format that blends with the classifieds are they not?

    <script language="JavaScript" type="text/javascript">
    <!--

    var loc_lang = "en";
    var loc_max_num_ads_header= 2;
    var loc_max_num_ads_footer= 5;
    var loc_max_num_ads_not_found= 5;
    var loc_min_num_ads= 2;
    var google_adnum = 0;
    var ad_count=100;

    function google_ad_request_done(google_ads) {

    var s = '';
    var i;


    if (google_ads.length == 0) {
    document.write('&nbsp;')
    return;
    }
    s += '<TR class="entry-adsense-header"><TD colspan=2>&nbsp;<\/td><td><div style="font-size:8pt;">' + '<a href="' + google_info.feedback_url + '">Ads by Google<\/a>' + '<\/div><\/TD><\/TR>';

    if (google_ads[0].type == "image") {
    s += '<TR class="entry-adsense" id="resultRow_' + ad_count +'" onmouseover="DoNav(\'resultRow_' + ad_count + '\',\'highlight\',\'entry-adsense\')"><TD colspan=2>&nbsp;<\/td><td><a href="' + google_ads[0].url +
    '" target="_top" title="go to ' + google_ads[0].visible_url +
    '"><img style="border:none;" src="' + google_ads[0].image_url +
    '"width="' + google_ads[0].image_width +
    '"height="' + google_ads[0].image_height + '"/><\/a><\/TD><\/TR>';

    } else {
    if (google_ads.length == 1 && loc_max_num_ads > 1) {
    ad_count++;
    s += '<TR class="entry-adsense" id="resultRow_' + ad_count +'" onmouseover="DoNav(\'resultRow_' + ad_count + '\',\'highlight\',\'entry-adsense\')"><TD colspan=2>&nbsp;<\/td><td><a href="' + google_ads[0].url +
    '" ' + 'onmouseover="window.status=\'' + google_ads[0].visible_url + '\'; return true; " ' +
    'onmouseout="window.status=\'\';">' +
    '<span style="font-size:18pt">' + google_ads[0].line1 + '<\/a><br><\/span>' +
    '<span class="textDesc" class="textDesc" style="font-size:14pt">' + google_ads[0].line2 + '&nbsp;' + google_ads[0].line3 + '<br><\/span>' +
    '<br><span class="fl">' + google_ads[0].visible_url +
    '<\/span><\/TD><\/TR>';
    if (google_ads[0].bidtype == "CPC") {
    google_adnum = google_adnum + google_ads.length;
    }

    } else if (google_ads.length > 1 || (google_ads.length == 1 && loc_max_num_ads == 1)) {
    for(i=0; i < google_ads.length; ++i) {
    ad_count++;
    s += '<TR class="entry-adsense" id="resultRow_' + ad_count +'" onmouseover="DoNav(\'resultRow_' + ad_count + '\',\'highlight\',\'entry-adsense\')"><TD colspan=2>&nbsp;<\/td><td><a href="' + google_ads.url +
    '" ' + 'onmouseover="window.status=\'' + google_ads.visible_url + '\'; return true; " ' +
    'onmouseout="window.status=\'\';"><b>' +
    google_ads.line1 + '<\/b><\/a><br>' +
    '<span class="textDesc">' + google_ads.line2 + '&nbsp;' + google_ads.line3 + '<\/span> ' +
    '<br><span class="fl">' + google_ads.visible_url +
    '<\/span>';
    s += '<\/div><\/TD><\/TR>'

    } // end of for
    if (google_ads[0].bidtype == "CPC") {
    google_adnum = google_adnum + google_ads.length;
    }
    }
    }

    document.write(s);
    return;
    }
    // -->
    </script>

    and


    <script language="JavaScript" type="text/javascript">
    <!--

    google_ad_client = 'pub-3633945329979632';
    google_ad_output = 'js';
    google_ad_type = 'text';
    //google_language = 'en';
    google_feedback = 'on';
    google_encoding = 'utf8';

    //2006-11-30: S JS header
    google_ad_channel = "2988820766";
    google_max_num_ads = loc_max_num_ads_header;
    // -->
    </script>
    <script language
     
    Small Fry, Oct 31, 2007 IP
  2. Melvinng

    Melvinng Peon

    Messages:
    850
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Adsense Ban?
     
    Melvinng, Oct 31, 2007 IP
  3. Pierce

    Pierce Active Member

    Messages:
    634
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    95
    #3
    its fine so long as they dont modify the underlying adsense code.

    Pierce
     
    Pierce, Oct 31, 2007 IP
  4. IXM

    IXM Peon

    Messages:
    213
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hard to say though... it looks like they've pretty much changed the way adsense shows itself. While it still includes all of features of normal adsense (like "Ads by Google" and having the URL under the description), they've changed how it's spaced and other formatting. And on the right side they've made the URL as small as possible.

    What bothers me most are the Adsense blocks at the top and bottom of the list. They've changed the spacing between each link and hell, you can even select the text, which isn't normal in itself.
     
    IXM, Oct 31, 2007 IP
  5. Pierce

    Pierce Active Member

    Messages:
    634
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    95
    #5
    ah i see its the one at the top, not the one on the right. (theres 2 adblocks on that page with google ads)

    Pierce
     
    Pierce, Oct 31, 2007 IP
  6. Small Fry

    Small Fry Peon

    Messages:
    375
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    They perhaps should have just gone another step further and made ads that click on themselves.
     
    Small Fry, Oct 31, 2007 IP
  7. DirSP

    DirSP Peon

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Those features are reserved for premium publisher?
     
    DirSP, Oct 31, 2007 IP
  8. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #8
    I know premium customers can do things like this to their ads. I wish google would allow us little guys to be able to do it too. Out ctr's would be so much better, thus earning them more money.
     
    bigrollerdave, Oct 31, 2007 IP
  9. wholeseller

    wholeseller Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    use tags properly but dont edit the script
     
    wholeseller, Oct 31, 2007 IP
  10. shanX

    shanX Peon

    Messages:
    490
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    No Iframe, some premium publishers could also define kewords for ads, I have seen...
     
    shanX, Oct 31, 2007 IP
  11. denimsakura

    denimsakura Peon

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Thats a premium publisher, i verified it.
     
    denimsakura, Oct 31, 2007 IP
  12. Small Fry

    Small Fry Peon

    Messages:
    375
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #12
    That is a bit unfair. Especially as the ads seem so blended with classified links. How much revenue payola does it take to become a premium publisher?
     
    Small Fry, Nov 1, 2007 IP
  13. microbrain

    microbrain Banned

    Messages:
    1,079
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #13
    And My Friend's site Got Banned from adsense Because of These changes ...He contacted Google,they Replied that changes to adsense code are prohibited thats why we blocked your site from adsense ...so,BE CAREFULL
     
    microbrain, Nov 1, 2007 IP
  14. Pendragon

    Pendragon Peon

    Messages:
    257
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Right or wrong, It's a clever bit of coding and 'blending'. I bet they get a high CTR.... :)
     
    Pendragon, Nov 1, 2007 IP