Top adverts | Random adverts | Bottom adverts | Footer adverts | Misc settings | Tag docs | Test ads
DOCS;
$total_rand_split = adinj_total_split('ad_code_random_', $ops);
$total_rand_alt_split = adinj_total_split('ad_code_random_alt_', $ops);
$total_top_split = adinj_total_split('ad_code_top_', $ops);
$total_top_alt_split = adinj_total_split('ad_code_top_alt_', $ops);
$total_bottom_split = adinj_total_split('ad_code_bottom_', $ops);
$total_bottom_alt_split = adinj_total_split('ad_code_bottom_alt_', $ops);
$total_footer_split = adinj_total_split('ad_code_footer_', $ops);
$total_footer_alt_split = adinj_total_split('ad_code_footer_alt_', $ops);
?>
Ad rotation / split testing and alternate content are advanced features. If you don't understand these features you probably don't need them and can therefore ignore this tab. In summary:
Ad rotation / split testing: You can define multiple adverts for the same ad space which are rotated according to the ratios you define. The percentage of views that each ad will be shows is displated beneath the ratio text box. For example if you define two ads and set both to have a ratio of '50' they will each be shown (roughly) 50% of the time. The numbers don't have to add up to 100 as the ratio is calculated based on the total. e.g. if you have two advert - one is set with a ratio of '1' and the other '3' the ratios will be 25% and 75%. Please remember this isn't strict ad rotation, it is random selection based on ratios so the ratios will be correct over a large sample of ad views, not a small sample.
Alternate content: This is content that is displayed when ads are blocked for the user. You could use this alternate content to show other content, some kind of layout filler, or even a different type of ad. I've added support for rotation of alternate content as well.
When defining conditions that refer to the length of the content; do you want to count viewable characters, all characters (which includes HTML tags), or number of words?
(default is to inject ads at unique positions)
$title $num
$percent
EOT;
}
function adinj_docs_tags(){
?>
These tags can be inserted into the page source to override the configured behaviour on single posts and pages. Because sometimes specific pages need to be treated differently.
<!--noadsense--> OR <!-no-adsense--> OR <!--NoAds--> OR <!--OffAds--> - disables all ads on this page. These tags are here to make this plugin compatible with the tags from Adsense Injection, Whydowork Adsense and Quick Adsense.
<!--adsandwich--> - Inserts the top and bottom ad but no random ads. Disables all other ads.
<!--adfooter--> - Insert a single ad at the very bottom. Disables all other ads.
<!--adsensestart--> - Random ads will start from this point*. For compatibility with Adsense Injection.
<!--adsenseend--> - Random ads will not be inserted after this point*. New tag but I've kept the Adsense Injection naming convention to make it fit with the above tag.
<!--adstart--> - Random ads will start from this point*.
<!--adend--> - Random ads will not be inserted after this point*.
These four tags will not affect the top and bottom ad.
Custom field for disabling adverts
To disable all adverts on the page you can also set the custom disable_adverts field to '1' from the WordPress post editor.