yousaytoo mobile: m.yousaytoo.com Top_logo_new
YouSayToo
    is an ad revenue sharing community that rewards you for socializing and sharing online.
How?
    Write your journal, upload games and buzz yourself out to make money online.
    The more people read your content, the more money you make.
    Participate in our Affiliate Program - invite your friends to make money!
Journal

Make your AdSense blocks stand out! And your CTR :-)



Embellish Ad units and Link units without fear of empty blocks.

A nice way to increase the CTR of Link units and Ad units while making sure that you don't have any page with an empty AdSense block: use collapsing units script as a base for further Javascript actions.Have you ever thought of doing something beautiful with your AdSense blocks?


I'm sure many of you now know about the "images next the ads" which increase your CTR everytime, some of you who don't allow Public Ads to display when there isn't enough ads in Google's inventory to display on your page may know about collapsing units which can hide empty AdSense blocks and re-gain the space in your page.Well, the html file that Google provides you with can be adapted to do more things than hiding the AdSense block, for example it can hide additional HTML elements if the AdSense block is empty, or show hidden elements waiting to be activated via JavaScript.I would like to provide you with a very simple example on this page.At the bottom of this article you should see an AdSense Link Unit accross the page size 728x15

On the top of this Link unit there is this graphic:

Well, if you don't see this Link unit, it means there is no ads to display for this article and you should not see the graphic above on the page either, how is this possible?Simple, I use a DIV around the graphic and the AdSense block, which I've named id="google_ads_adlink" and then in the AdSense code I use as google_alternate_ad_url this file :http://www.senserely.com/google_adsense_script_adlink.html (right click to download it) Here is an extract of the code for setting up your AdSense block :
<div id="google_ads_adlink" align="left" style="cursor: pointer; width: 100%;">
<img src="http://www.senserely.com/images/bg-adlink.gif" width="751" height="10" border="0" />
<div style="background-color: #f3a84e; width:100%;">
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXX";
google_alternate_ad_url = "http://www.senserely.com/google_adsense_script_adlink.html";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
google_color_border = "f3a84e";
google_color_bg = "f3a84e";
google_color_link = "000000";
google_color_url = "000000";
google_color_text = "000000";
//--></script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></div>

You can see that the IMG tag is within the DIV id="google_ads_adlink" and so will be hidden in case there is no Adlink to display... Here is the code for the alternate url which contains the javascript to hide the DIV id="google_ads_adlink" :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type&quot; content="text/html; charset=iso-8859-1" />
<title></title>
<script type="text/javascript">
var w = window;
if (w.parent.document.getElementsByName) {
var google_ad_frames = w.parent.document.getElementsByName("google_ads_frame");
var google_ads_adlink = w.parent.document.getElementById("google_ads_adlink");
for (var i = 0; i < google_ad_frames.length; i++) {
var f = google_ad_frames[i];
if (f.contentDocument) {
if (w.document == f.contentDocument) {
f.height = f.width = 0;
google_ads_adlink.style.display="none";
}
} else if (f.contentWindow) {
if (w == f.contentWindow) {
f.height = f.width = 0;
google_ads_adlink.style.display="none";
}
}
}
}
</script>
</head>
<body style="background-color: transparent;">
</body>
</html>

Here you go, enjoy this example and other ideas you can come up with and if you have any question to ask please do so by commenting here.
For those who want to know if it is allowed by AdSense's Terms of Service (and you should always ask yourself this question first) yes it is. :D

Tagged as adsense tips


Like it?
P1
41
M2
Clock Aug 29 2006 11:51 am

1 comments
Bookmark and Share

+journal  share  spam

wwwSENSERELYcom's journal


The REAL truth about the Winkie...

Simply put, LinkieWinkie or http://www.LinkieWinkie.com is a website that senses websites and blogs talking about it (referrers) and then sends back traffic to those sites by displaying a link to the pages mentioning http://www.LinkieWinkie.com !I’ll see in the stats if there’s ever going to have some web traffic coming from http://www.LinkieWinkie.com and will report in case there is.Here’s the enigmatic explanation its webmaster wrote: “Linkie Winkie is a bit of a social experiment and we want to see what happens. We’re not going to tell you much about it, except that its

read more Rarr

Tagged as news


AdSense Search can now be embedded in your website!

Hello, today I've seen in my AdSense admin panel that they have - at last - released a new option for AdSense Search: You can embed it in your website, not only simply choosing colors for background and links.What you have to do if you want to test this feature very quickly on a site where you already use AdSense Search is:1. Create a page using your site's template and where you usually put content write this: <!-- Google Search Result Snippet Begins --><div id="googleSearchUnitIframe"></div><script type="text/javascript"> var googleSearchIframeName = 'googleSearchUnitIframe';

read more Rarr

Tagged as adsense

you might also like

Comments1 comments
Aug 31 2006 08:26 am

Thanks for the info, I've added (ordinary) collapsing ads to my entire site. I don't know why I didn't implement it sooner.

Cryo.

0
Dotz1Replycom
CommentsLeave a comment
Guest:
RECENT
buzzers
CONTEST RULES ABOUT TERMS OF USE PRIVACY POLICY CONTACT US WEBMASTERS MAKE MONEY
YOUSAYTOO.COM 2006 - 2008 - 1.39 sec