Inserting Ads into new Blogger.com
In my previous post, I've explained how to insert ads into Classic template of blogger. If you are using the new Blogger beta, here's how you can insert ads:
There are two ways to insert ads into new blogger.
Way 1:
Login to blogger, go to your blog "Settings" from the dashboard, click on "Template", Click on "Add Page Element", In the popup window that appears, click on "Add to Blog" of HTML/Javascript section (Fourth one from top-left as of the time of this post), Paste the adsense code in the Content section and click on "Save Changes". That's it. You can change the location by dragging the element in the "Page Elements" page.
Way 2: This method gives you more flexibility in adding code at different locations.
Step 1: Login to blogger, go to your blog "Settings", click on "Template", Click on "Edit HTML"If you want your ads to be displayed at different locations, just add the code at the appropriate page element like after < class =" '"> etc.
Step 2: In the Edit HTML page, check the option "Expand Widget Templates"
Step 3: Search for "post-body". After <> and before <>, add your code. Add again after post.body. This will show ads like what's being shown in this blog now. A Ad after the post title and one at the end of the post.
Update: If you get an error like
Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The processing instruction target matching "[xX][mM][lL]" is not allowed.Since Blogger started using XML everything is more strict and standardized. The above error simply mean the Adsense code is not standized XML and solve it we need to put " instead of ' in the script tags.
Update:
If you are unable to view ads, please remove the comments'< ! - -'and ' / / - - >' from the adsense code.


0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home