Skip to main content

How to Insert Adsense Inside Posts: After the First Paragraph

How to Insert Adsense Inside Posts: After the First Paragraph: do you know that which part of your site is more good for Adsense Earning or you want to know that which part of your site is generate more revenue add Adsense code inside you post and check google heat map, Recent studies showed that placement of Adsense is best after 1st paragraph you can generate more revenue by applying this in your blog. Unfortunately Google blogger not allowed to ads placement within the posts so we will make a script for you to fix that issue.
We will make a JavaScript code for Ad placement using DIV tag and we select the location after first paragraph so now you don't need to add tags in each post manually so you just need to put this script in your blog with your Adsense ads code.
How to Insert Adsense Inside Posts: After the First Paragraph

How to Add Adsense Ads within Blogger Posts

Its very simple to add Adsense Ad code in blogger. just follow below steps to install Adsense Ads code in blogger.
  • Login into Blogger.
  • Go to templates Edit HTML.
  • Press Ctrl + F and Find.
<data:post.body/>

  • You found multiples <data:post.body/> lines in your blogger template please replace 2nd one line with below code.

<div id='adsense-target'><data:post.body/></div>

  •  After this you need to paste blogger if condition code which is written in below.

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='adsense-content' style="display:block;text-align: center">ADSENSE CODE HERE</div></b:if>

  • Please use this tool for converting Adsense Ad code for blogger Adsense Ad code converter.
  • Finally right after <div id='adsense-target'><data:post.body/></div> Add below script.

<script type='text/javascript'>
function insertAfter(addition,target) {
var parent = target.parentNode;
if (parent.lastChild == target) {
parent.appendChild(addition);
} else {
parent.insertBefore(addition,target.nextSibling);
}
}
var adscont = document.getElementById(&quot;adsense-content&quot;);
var target = document.getElementById(&quot;adsense-target&quot;);
var linebreak = target.getElementsByTagName(&quot;br&quot;);
if (linebreak.length &gt; 0){
insertAfter(adscont,linebreak[0]);
}
</script>

  • Click save template to save the theme, 
With this trick you can add adsense ads code in yout blog right after first paragraph and i hope you get double quantity ads clicks by using this trick. Enjoy and must leave your feedback here.

Comments

  1. i fill this bro but my adsense code found the ads on last on post

    ReplyDelete
  2. give me your website url

    ReplyDelete

Post a Comment

Popular posts from this blog

Show Breadcrumbs in Google Search Results for Blogger

Show Breadcrumbs in Google Search Results for Blogger : Everyone can add Breadcrumbs in their blog but you can Rear find this topic. so today you learn about how you can show you breadcrumbs in google search results for blogger, this Article is only for blogger. You need to follow few below steps: Go to the Dashboard > template > Edit HTML Press CTRL + F and search bar is appear. Find Article Tag in your template. if your theme in HTML 5. <Article If you find Article tag then paste below cord on the above of Article Tag. Note: If your theme is not in HTML 5 and you are not able to find article tag in your theme then paste below line and search. itemtype= ' http://schema.org/BlogPosting ' Step 4: Paste below code above this line. <b:if cond= ' data:blog.pageType == &quot;item&quot; '> <b:if cond= ' data:blog.pageType == &quot;item&quot; ' > <div class= ' breadcrumb ' xmlns: v= ' http://rdf.

How To Start A Blog And Make It Successful

How To Start A Blog And Make It Successful : If you are a new blogger and you don't know about blogging and you want to make it successful then you must know about some important thing otherwise you can not get desire output from your blog. and you waste your all efforts and time on blog. Read some my Experience Suggestion below. How To Start A Blog And Make It Successful Never Use Free Blogger Theme:  First Remember one thing never use free themes you are on WordPress or blogger doesn't matter don't use free themes because they are not develop accordingly today requirement few themes are not even not responsive and also not SEO friendly. if you want your blog go viral on social media and google then please be original write your own content and must post that contents which audience demand. But if your theme is not good you may right your own contents but finally your google can't understand your posts and it take long time in indexing also due to errors google

How to Disable Copy Paste JavaScript For Blogger

Disable Copy Paste JavaScript For Blogger : In this Article we share with you how you can disable copying text from your blog and disable CTRL + C key. it will help you to protect your content from copy cats. Here is the Disable Copy Paste Script for Blogger. Now days any one want to Earn huge money, copy cats copy your original content from your blog and paste into their own blog, so you can't take any action against him if you don't purchase DMCA. if you don't have a money to purchase purchase a DMCA copyrights then just simple use this script no one can copy your contents from your site, and feel free to use this Script this script is not harmful for your site. it is the best script for content protection this script is build in JavaScript also we have a CSS disable copy paste script so CSS copy paste disable is more faster then JavaScript Script. you can use one of them at a time. Here is the link of CSS Script  CSS Disable Copy Function . Here we share with you a Dis