Reviews on Cars, Smartphones, Electronics, Laptops. Mobile phone downloads, Songs, Movies Updated.

Translate Page

download now

Saturday, August 13, 2011

Blogger – How To Add Adsense Inside Posts Only

Adsense Within Posts

It is difficult to place Adsense ads within the post body using the built-in gadgets. To do this, we’re going to have to put our Adsense code directly into the template.
We still can’t put the ad unit in the middle of the post, but we can put it at the top of the post, below the title, with the text wrapping around it. Great! That’s proven to be the most effective placement, so that’s exactly what we want.

You can go and read her post for the full instructions, but here are the basic steps:
  1. Get your Adsense code from the Adsense website
  2. Parse the code to replace special characters with HTML entities
  3. In Blogger, go to Layout, then choose Edit HTML
  4. Make a backup of your template by clicking Download Full Template
  5. Click Expand Widget Templates
  6. Search for <data:post.body/>
  7. Place your Adsense code on the line immediately above this
  8. Save the template
Note 1: It’s very important to parse the code (ie replace ‘<’  with ‘&lt’; and ‘ >’  with ‘&gt;’ etc). If you do not do this, your Adsense units will not display correctly and you risk being banned by Google.
Note 2: You probably want to place your Adsense code within a floating div, so that the text wraps around it.


No comments:

Post a Comment