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…
If you want to include Adsense Ads between you posts in a certain predefined way, then you can check out Moosecandy Plugin
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.
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