Insert Adsense Inside Blog Post in Blogger
Display AdSense Ads after the Post Title in Blogger
After the Template Editor opens, click somewhere inside the code area and then press the CTRL + F keys (or Command + F if you are a mac user) on your keyboard so that the editor’ search box opens up. Now, search the following line:
<data:post.body/>
Note: If you find multiple occurrences of <data:post.body/>, stop at the second one or the last one.
2. Now, place the below code just above <data:post.body/>
<b:if cond=’data:blog.pageType == "item"’> PLACE YOUR AD CODE HERE </b:if>
3. Copy the AdSense code that you want to show and use the below tool to convert it into plain text. Just above the line that we just found, add the following HTML and replace the “ADSENSE CODE HERE” text with the converted ad code:
Enter raw code here
Get escaped code here
4. Replace the PLACE YOUR AD CODE HERE with your Parsed Adsense Ad Code.
5. Click on Save Template and You are done!
Display AdSense Ads After the First Paragraph in Blogger
<b:if cond=’data:blog.pageType == "item"’>
<div id=’adsense-content’ style=”display:block;text-align: center”>ADSENSE CODE HERE</div></b:if>
4. Click on Save Template and You are done!
Display AdSense Ads At the End of your Blog Post.
<b:if cond=’data:blog.pageType == "item"’>
<div id=’adsense-content’ style=”display:block;text-align: center”>ADSENSE CODE HERE</div></b:if>
4. Click on Save Template and You are done!
Remember, if you do not parse your adsense ad codes, then you will get an error.
Have Questions? Fire away, we’re here for you!