Simulating Adsense ad sizes ?

Discussion in 'AdSense' started by MindBuster, Sep 27, 2005.

  1. #1
    I'm building a new site and want to check ad placement with some javascript that simulates adsense ad sizes before implementing real adsense ad, as i dont need google to snoop around before the site is ready for launch.

    As im not used to javascript, writting it myself, does anyone here have some sample javascripts that simulates AS ads ?

    Guess i could just use some images with the correct sizes, but would prefer javascript.

    How do YOU test ad placement without using live AS ads ?

    Thanks.
     
    MindBuster, Sep 27, 2005 IP
  2. amitpagarwal

    amitpagarwal Peon

    Messages:
    375
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can get the graphics of similar sizes from Google Adformats page.
     
    amitpagarwal, Sep 27, 2005 IP
  3. medusa

    medusa Peon

    Messages:
    349
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you do not want graphics, you can insert adsense codes, but without your adsense id. You can replace the id with "adsensetesting" or something.

    Not sure whether it will serve your purpose.
     
    medusa, Sep 27, 2005 IP
  4. amitpagarwal

    amitpagarwal Peon

    Messages:
    375
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Add another line to Google Adsense code google_adtest = "on";

    Don't forget the semicolon. More on Adsense Testing Precauations in my blog.
     
    amitpagarwal, Sep 27, 2005 IP
  5. keikor

    keikor Peon

    Messages:
    665
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Nice advice amit. Sounds simple and easy to understand, but most of us forget to do it.
     
    keikor, Sep 27, 2005 IP
  6. Jarodboy

    Jarodboy Prominent Member

    Messages:
    7,233
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    330
    #6
    Tks amit, that would help me a lot
     
    Jarodboy, Sep 27, 2005 IP
  7. my44

    my44 Peon

    Messages:
    722
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have one quicker way: just resize the cell or table to emulate Adsense size. eg if you are doing Skyscraper 160x600, just set your cell-table width=160, height=600.

    doing this way will give you a good idea how the ads placement *will* look like with the rest of your menus, contents, etc.

    also this is good because, from my experience, if i preview my actual Adsense, it counts actually as an impression! so my impressions usually jump significantly during the day i'm doing some website editing.

    hope that helps.
     
    my44, Sep 27, 2005 IP
  8. alang

    alang Notable Member

    Messages:
    2,021
    Likes Received:
    220
    Best Answers:
    0
    Trophy Points:
    235
    #8
    take a screenshot of working adsense ads, every ad format, and you can place it anywhere for testing purpose
     
    alang, Sep 27, 2005 IP
  9. my44

    my44 Peon

    Messages:
    722
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #9
    That is possible too. Or go to Google AdSense > Contents > Ad Formats - on the many ads there, right-hand-click, save the image, then put it into your "test" page.
     
    my44, Sep 27, 2005 IP
  10. Eric Giguere

    Eric Giguere Peon

    Messages:
    541
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I wouldn't do that, because that will get the Mediabot to come fetch the page. If your page isn't ready for prime time (see Tip #1 of my AdSense tips) then you really don't want your content analyzed before you think it's ready, because the ads that will be displayed for the next while (until the next crawl) won't be relevant.

    So I'd recommend just using a table or even a blank image sized to the right size.
     
    Eric Giguere, Sep 27, 2005 IP
  11. alang

    alang Notable Member

    Messages:
    2,021
    Likes Received:
    220
    Best Answers:
    0
    Trophy Points:
    235
    #11
    there is a tip from the master. Thanks you very much Eric, I should consider buying you book now....
     
    alang, Sep 27, 2005 IP
  12. dct

    dct Finder of cool gadgets

    Messages:
    3,132
    Likes Received:
    328
    Best Answers:
    0
    Trophy Points:
    230
    #12
    I generally just use an image but lately I've been using a div tag with the appropriate height and width.
    
    <div style=" padding-left:4px; padding-top:2px; font-size:10px; 
                     text-align:left; font-family: verdana, sans-serif;
                     width:234px;height:60px;border:1px solid;
                     background-color:#FFFFCC">
    <div style=" font-weight:bold; margin-bottom:2px;color:#000066 "><u>Title</u></div>
    Description
    <div style="margin-top:5px; "><div style=" color:#0000FF; text-align:right">URL</div></div>
    </div>
    
    Code (markup):
     
    dct, Sep 27, 2005 IP
  13. Eric Giguere

    Eric Giguere Peon

    Messages:
    541
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Besides those four tips, consider these ones as well:


    Note that Tip #6 needs to be updated to refer to the new section targeting feature.

    Who says I don't provide free content? :) You'll probably be interested in my AdSense blog. I try to post something there every day. (For some reason, I can't get the feed to show up in my profile, though....)
     
    Eric Giguere, Sep 27, 2005 IP
  14. scott.symbiotic.com

    scott.symbiotic.com Peon

    Messages:
    167
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #14
    when your building an ad you like it will give you the script and in the script it actually discribe the size as in google_ad_width = 336,google_ad_height = 280. All you need to do is use a grapics editor like fireworks or photoshop to make yourself an image of that size or whatever the ad style size you have picked.
     
    scott.symbiotic.com, Sep 27, 2005 IP
  15. tlainevool

    tlainevool Guest

    Messages:
    1,071
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I asked Google about using this and got the following response:

    So, you have to get permission from Google to do this.
     
    tlainevool, Sep 27, 2005 IP