Shortcodes
Last updated
The plugin registers one shortcode.
JM_GOOGLE_ADOutputs a single ad unit.
{JM_GOOGLE_AD: id=1}id
Yes
The ad unit's ID, as shown in the Ad units list in the admin.
The shortcode is registered site-wide, so it works anywhere e107 parses shortcodes — theme templates, custom pages and menus.
The shortcode produces an empty string, with no markup and no gap in the layout, when:
No ad unit with that ID exists.
The ad unit is not Active.
The visitor is not in the ad unit's user class.
The current page is in the excluded pages list.
This is deliberate. A visitor who is not supposed to see an ad sees nothing at all, rather than an empty placeholder.
If you only want auto ads, you do not need this shortcode anywhere. The script is inserted automatically on every page.
Last updated