Trick To Add Google Adsense, Adbrite, And Other Javascript Ad Units Into Blogger Posts


Adding Google Adsense, Adbrite and Other javascript units into blogger posts is very useful of all bloggers and website holders.Because this ad unit get highest clicks on your ads.But the code of ad units are not able to parsed directly into your blogs HTML.

Today here we tell you a little trick how to change your ad units in perfect combination with your Blogs HTML.We do not say any thing to make this post lengthy.
You only have to do just to replace two words with the words listed below for changing Google Adsense, adbrite and other java based ad script code for perfect combination with your Blogs HTML.



& = &amp; Replace it with < – &lt;

” = &quot; Replace it with  > – &gt;

For Example, a Google Adsense code should become looks similar to code below:


&lt;script type="text/javascript"&gt;&lt;!--

google_ad_client = "pub-XXXXXXXXXXXXXXX";

google_ad_width = 336;
google_ad_height = 280;
google_ad_format = "336x280_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_text = "000000";
google_color_url = "000000";
//--&gt;&lt;/script&gt;
&lt;script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"&gt;
&lt;/script&gt;




While an Adbrite ad code will looks like similar to code below:


&lt;script type="text/javascript"&gt;

var AdBrite_Title_Color = '0000FF';

var AdBrite_Text_Color = '000000';
var AdBrite_Background_Color = 'FFFFFF';
var AdBrite_Border_Color = 'FFFFFF';
&lt;/script&gt;
&lt;script src="http://ads.adbrite.com/mb/text_group.php?sid=303771&amp;zs=3330305f323530" type="text/javascript"&gt;&lt;/script&gt;
<div><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=303771&amp;afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div>

Simply use the text editor to parse the code and then replace the characters.Don't worry about the violating AdSense TOS or other terms and conditions, as once the blogs web pages are rendered and presented to the viewers and visitors, the code will be exactly same as the original code before any replacement.!!

We love comments if you having any problem changing your code then comment us.

No comments:

Post a Comment

Any Question, Feedback, Suggestion and Idea are always welcome.If you are asking a question then don't forget to subscribe the following comments for getting answers directly in your mailbox.