Ad Placement settings | Adverts | Ad insert mode/dynamic restrictions | Quick Start | Test ads
These settings apply to all ads (random, top, bottom, and widget). They will override all other settings.
/> On:|
- only for single posts and pages |
Exclude ads from page types
| all ads | widget ads | |
| front - | ||
| home page (latest posts page - may or may not be same as front) | ||
| page - publish; ?> single page(s) | ||
| single - publish; ?> single post(s) | ||
| archive - categories, tags, authors, dates | ||
| search (widgets only for now) | ||
| 404 (widgets only for now) |
Notes: Your home page is the page displaying your latest posts. It may be different to your front page if you have configured your front page to be a static page.
If you have set your front page to be a static 'page' rather than your latest posts, the 'page' tick box will also apply to the front page.
You must configure your individual widgets from the widgets control panel. Ticking the 'all ads' box will also exclude the widget ads.
| Single/Page | Home | Archive | |
Top ad | |||
| Only show top ad on posts longer than: | '; adinj_selection_box("home_top_ad_if_longer_than", $ad_if_longer_settings, $unit); echo ' | '; adinj_selection_box("archive_top_ad_if_longer_than", $ad_if_longer_settings, $unit); ?> | |
| Max num of top ads on whole page: | 1 | '; adinj_selection_box("archive_max_num_top_ads_per_page", $num_ads_array); ?> | |
Random ads | |||
| Max num of random ads on whole page: | n/a | '; adinj_selection_box("archive_max_num_random_ads_per_page", $num_ads_array); ?> | |
| Max num of random ads per post: | '; adinj_selection_box("home_max_num_random_ads_per_post", $num_ads_array); echo ' | '; adinj_selection_box("archive_max_num_random_ads_per_post", $num_ads_array); ?> | |
Bottom ad | |||
| Only show bottom ad on posts longer than: | '; adinj_selection_box("home_bottom_ad_if_longer_than", $ad_if_longer_settings, $unit); echo ' | '; adinj_selection_box("archive_bottom_ad_if_longer_than", $ad_if_longer_settings, $unit); ?> | |
| Max num of bottom ads on whole page: | 1 | '; adinj_selection_box("archive_max_num_bottom_ads_per_page", $num_ads_array); ?> | |
|
|
Rotation: ".adinj_percentage_split('ad_code_top_', 1, $ops).""; ?> |
Be especially careful if you decide to use the 'float' layout options. Make sure that you don't have adverts floated over the top of other page elements, or vice-versa.
|
|
Rotation: ".adinj_percentage_split('ad_code_random_', 1, $ops).""; ?> |
|
Docs: Try a 336x280 advert. |
Rotation: ".adinj_percentage_split('ad_code_bottom_', 1, $ops).""; ?> |
/> mfunc: Use mfunc tags for dynamic features - Dynamic features will work with WP Super Cache, W3 Total Cache and WP Cache. Only select this mode if you are using one of those caching plugins.
Note: A supported caching plugin does not appear to be active. If you are not using WP Super Cache / W3 Total Cache / WP Cache you should use one of the direct insertion modes below.'; } ?>/> direct_dynamic: Direct ad insertion with dynamic features - Dynamic features will work if no caching is used. Only select this if you are not using any caching plugin.
/>
direct_static: Direct static ad insertion- Warning: This mode will be removed very soon (March 2011). There will only be an 'mfunc' and a 'direct' mode to simplify things. I recommend you switch to 'direct_dynamic' if you are using this mode. If you aren't using dynamic features make sure the tick boxes below are unticked. No dynamic feature support. Select this if you are are not using dynamic features or are using an incompatible caching plugin.
Note: Dynamic ad blocking features (restricting ad views by referrer or IP address) are only available in the mfunc, or direct_dynamic modes.
Comma separated list e.g.:
.google., .bing., .yahoo., .ask., search?, search., /search/
Comma separated list e.g.:
0.0.0.1, 0.0.0.2Or you can list one IP per line with optional comments e.g.
192.168.0.1
0.0.0.2
//my ip
0.0.0.3For reference your current IP address is
With WP Super Cache version 0.9.9.8+ you can use the fastest 'mod rewrite rules' caching mode. With older versions of WP Super Cache you'll have to use the slower 'legacy mode'.
Go to the WP Super Cache advanced options page WP Super Cache advanced options page to configure the caching mode.
W3 Total Cache will cache the the page on-disk if you use its Page Cache: 'Disk (basic)' mode. However if you use its Page Cache: Disk (enhanced) mode it won't cache the page. If you aren't using Ad Injection's dynamic features then you can use W3 Total Cache with Page Cache: Disk (enhanced) mode.
With WP Cache just turn the caching on and all pages will be cached. You may however want to consider upgrading to WP Super Cache as it has more efficient caching options such as serving static files via mod rewrite.
Recommended settings:
- WP Super Cache - 0.9.9.8+ using mod_rewrite mode.
- W3 Total Cache - Page Cache: 'Disk (basic)' mode.
- WP Cache - Just turn the caching on.
1. Copy and paste your ad code into the ad code boxes.
2. Choose how many ads of each type you want displayed.
3. Configure any ad positioning (optional).
4. Check the ad insertion mode (in the Insertion mode and ad display restriction section).
5. If you are using a compatible ad insertion mode you may configure dynamic ad display restrictions. i.e. showing ads only to certain people (e.g. search engine visitors), or blocking ads from specific IPs.
6. Enable your ads (tick box at the very top).