LAP – Leos AdSense

download available in wordpress.org plugin repository


This plugin allows add AdSense code to your posts. Important is, that this plugin allows you specify different ID and channel ID or ad-slot ID (Useful, if you have several authors of your pages with their own AdSense settings). All IDs are specified at each post separately. AdSense ads are invoked by adding <!--[LAP-plugin1]--> - <!--[LAP-plugin5]--> tag into your post. Keep in mind, that you can have up to 3 blocks on your post at once. Plugin can identify how old is your post also and can show AdSense ads for posts older than you specify.

Installation
Simple as expected – copy “leos-adsense-plugin.php” into plugin directory of your WordPress installation and activate.

Setting up – IDs
You will find extra field bellow post editor called “Leos Adsense”. Specify here user’s ID and channle or ad-slot ID (if you have any).

Setting up – AdSense code

Under “Settings” -> “LAP” menu you will find simple form for code insertion and specification for how minimaly old days will this plugin handle code insertion. You can specify up to five different codes.

google_ad_client
Google_ad_client ID must be specified like this: google_ad_client = “pub-XXXXX”; Exactly ‘XXXXX‘ will be replaced with ID specified at each post. Google_ad_channel or ad-slot must be spcified like this: google_ad_channel = “YYYYY”; Exactly ‘YYYYY‘ will be replaced with channel/slot ID specified at each post. At “Show ads for posts older than:” option specify, how many days should be post old to show ads in. (0 means immeditaly show ads.)

Showing adds
Google AdSense code is invoked by inserting <!--[LAP-plugin1]--> tag for inserting code 1, <!--[LAP-plugin2]--> tag for code 2 etc. anywhere into your post.

If you like our work, please be kind and consider donating. Any amount is appreciated whether it be $1.00 or $100.