The below code works great for automatically injecting Adsense ads into WordPress articles after every few paragraphs, it is customizable.  I am using it on now.  You can easily change the values so it shows after 2nd or 3rd paragraphs, it is entirely up to you.

I pasted the code in so the formatting doesn’t get changed by WordPress.  I still pasted it below, but don’t use the below code due to text formatting by WordPress publishing this post–that won’t allow the PHP to run, make sure to use the Paste2 code at link provided.

Wordpress Adsense inject after every few paragraphs

$content = apply_filters(‘the_content’, $post->post_content);
$save = explode(“</p>”, $content);
$adon=0; //you choose after how many paragraphs you want the code to appear
foreach($save as $item) {
echo $item; //print the <p> block
echo “</p>”;
if(preg_match(‘/<p> /’,$item)==0 && $tcount>=2 && $adon==0) {
<script async src=”//”></script>
<!– Techlightspeed top –>
<ins class=”adsbygoogle”
(adsbygoogle = window.adsbygoogle || []).push({});
if(preg_match(‘/<p> /’,$item)==0 && $tcount>=4 && $adon==1) {