Title: Automatically insert Adsensein posts
Last modified: August 18, 2016

---

# Automatically insert Adsensein posts

 *  [abstroose](https://wordpress.org/support/users/abstroose/)
 * (@abstroose)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/automatically-insert-adsensein-posts/)
 * I am in desperate need for a hack/plugin which enables Adsense ads to be automtically
   inserted into posts between certain paragraphs. Currently, I am using the Adsense
   Deluxe plugin. It works great, but now I am expanding my blog with many authors.
   Obviously, I can’t expect them to place the adsense tag in every one of their
   articles.
 * I was thinking maybe using a combination of the Adsense Deluxe plugin, and the
   More Paragraphs plugin ([http://www.lacaraoscura.com/2005/07/26/more-paragraphs-a-more-plugin-for-wordpress/](http://www.lacaraoscura.com/2005/07/26/more-paragraphs-a-more-plugin-for-wordpress/))
   which automatically adds the <!–more–> tag after a configureable number of paragraphs.
 * I am not to experienced in working with PHP, so if anyone else could come up 
   with a solution that would be great.
 * Thanks a lot.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Christopher J. Hradil](https://wordpress.org/support/users/chradil/)
 * (@chradil)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/automatically-insert-adsensein-posts/#post-429940)
 * slightly off topic, but Adsense doesn’t like you ‘overloading’ a page with Adsense
   content, so if you tried to do something dynamic like insert the adsense code
   more than once (eg. in *random* comments or posts) the Google Adsense backend
   is sophisticated enough to not allow itself to be called more than x times per
   http request for a particular URI, when this happens they don’t send you any 
   ad content for that particular request.
 * working with a couple of other platforms we had tried a couple of times to acomplish
   something similar, and what would happen is that once a particular post or ‘thread’
   of a discussion for example became lengthy because the *random* placement was
   called more times than Google allows all ads dissapeared from that particular
   page/thread.
 * personally, i’ve chosen (with WP at least) to insert clients adsense code by 
   hand into a customized sidebar.php and header.php, we have several versions of
   each file within the themes used, then depending on the page content different
   amounts or types of ads are displayed.
 * food for thought…
 *  [thilak](https://wordpress.org/support/users/thilak/)
 * (@thilak)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/automatically-insert-adsensein-posts/#post-429946)
 * If you want to include Adsense Ads between you posts in a certain predefined 
   way, then you can check out Moosecandy Plugin
 *  Thread Starter [abstroose](https://wordpress.org/support/users/abstroose/)
 * (@abstroose)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/automatically-insert-adsensein-posts/#post-429951)
 * thilak: That is what I am currently using, however I do not want to insert Adsense
   Ads between posts, but in a specific paragraph of a post.
 * chradil: I understand what you’re saying, but I was talking even if it was to
   insert the Adsense Ad just once between the first and second paragraph.
 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/automatically-insert-adsensein-posts/#post-429955)
 * I actually at one point had that exact functionality running for a version of
   CG-Inbetween. It would allow a target position that was a paragraph offset.
 * The difficulty is catching/determining the paragraph offsets correctly — it depends
   on the original content and anything that processed it. Even the more-paragraphs
   plugin wasn’t getting it right all the time…
 * My original ‘trick’ was just looking for a dual linefeed or CRLF in the source
   content — but I think the wysiwyg editor makes that not as ‘useful’ an approach.
   might look at it again in the weeks ahead…
 * -d

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Automatically insert Adsensein posts’ is closed to new replies.

 * 4 replies
 * 4 participants
 * Last reply from: [davidchait](https://wordpress.org/support/users/davidchait/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/automatically-insert-adsensein-posts/#post-429955)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
