Ad Inserter Pro Guidelines and Tips

Ad Inserter is a simple yet powerful WordPress ad management plugin with many advanced advertising features to insert ads at optimal positions.

Official documentation: https://adinserter.pro/documentation

There are many Ad Management plugins for Wordpress, Ad Inserter Pro (AIPro) is a very easy to use and efficient option that we’ve seen implemented successfully by many clients in HTL, and with which we have some experience and can help with configuration. Some tips we have seen that benefit maintenance are:

  • Use a code-block per adSlot, div, script, etc. You can add many blocks to AIP so there’s really no need to convolute and clutter the code in block contents unnecessarily. So lets try and keep things clean and granular. It is possible to add logic to block contents so as to conditionally and dynamically change the output of a block, however this should really be necessary in very specific advanced cases. In the following screenshot you can see that there’s up to 96 code blocks available for use. You can see the block group index by clicking on the button on that is marked:
  • image
  • Leverage manual insertion This helps, among many other things, with cleaning up the contents of a block, and it also allows for individual management of parts of your content. e.g. When adding scripts to the header you can add each script in its own block and you can then control the enablement of each script by only pausing and unpausing the relevant block and without having to modify the header. See how on block 21 we define our script, and we then add it the header by using the shortcode (In the following examples, ex.co could be removed/paused by simply going in and pausing block 25).
  • image
    image
  • Be consistent with ad configuration sources This is more a matter of preference. It is possible to scatter ad configuration among many sources:
    • The ad management/configuration system
    • Script tags on page
    • External javascript files
    • etc.
    • Being consistent on the sources for ad configuration can really simplify ad management. Therefore, when using AIPro and HTLBid, there’s already many third party services and ad networks that can be configured in HTLBid, but for anything that needs extra implementation like: “adding scripts”, “adding divs”, etc., it can be a good idea to try and keep these configurations in AIPro code-blocks.

  • Be mindful of how white and blacklists work When using multiple lists in AIPro, the filtering for each is ANDed, as in: categories IN "x,y,z" AND tags IN "a,b,c". If you want to use OR logic for your filters you can probably do so by manually inserting blocks that each have their respective condition, or you can check: https://adinserter.pro/documentation/black-and-white-lists?highlight=filter+categories&HTLD=1#check-options Note: Please confirm this as it may change in future AIPro versions.
  • You CAN change the CSS with which AIPro code-blocks are added
  • There is a button to Toggle insertion and alignment options . It can be found beside the alignment dropdown

    image