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.
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.
Add another line to Google Adsense code google_adtest = "on"; Don't forget the semicolon. More on Adsense Testing Precauations in my blog.
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.
take a screenshot of working adsense ads, every ad format, and you can place it anywhere for testing purpose
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.
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.
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):
Besides those four tips, consider these ones as well: AdSense Tip #5: Manage your own AdSense account AdSense Tip #6: Carefully craft blog or forum pages AdSense Tip #7: When NOT to use CSS AdSense Tip #8: Access your console from alternate domains 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....)
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.
I asked Google about using this and got the following response: So, you have to get permission from Google to do this.