User Guide – Using CM Ad Changer Shortcodes to Display WordPress Ad campaigns

The user guide has moved to a new location

This page is no longer maintained

In order to display WordPress ad campaigns from the server site, Cm ad-changer makes use of shortcodes, which can be modified and inserted on any page, post and widget area.
To add one or more WordPress Ad campaigns to a post or page, you’ll need to use a shortcode called cm_ad_changer. The, to add different parameters to your shortcode, use the following additions, which are also listed in the plugin settings panel:

  • campaign_id – ID of a campaign (required).
  • linked_banner – Banner is a linked image or just image. Can be 1 or 0 (default: 1)
  • debug – Show the debug info. Can be 1 or 0 (default: 0).
  • wrapper – Wrapper On or Off. Can be 1 or 0 (default: 0).
  • class – Banner(wrapper) class name.
  • target_blank – Whether the banners should open the links in new tab or not (default: 1)
  • [PRO] no_responsive – Banner not responsive. Can be 1 or 0 (default: 0).
    No responsive banner attribute is defines, this cancels the use of banner variations, and instead banners with original dimensions only are requested.
  • [PRO] custom_css – The CSS code which would only be outputted if the banner is shown. (default: empty).
  • [PRO] height – the height of a banner – set with CSS – will not resize the banner (default: NULL)
  • [PRO] width – the width of a banner – set with CSS – will not resize the banner (default: NULL)
  • [PRO] allow_inject_js – Whether to allow server to inject JS or not. Can be 1 or 0 (default: 1).
  • [PRO] allow_inject_html – Whether to allow server to inject HTML or not. Can be 1 or 0 (default: 1).

View this example to see how the wrapper works.

https://www.cminds.com/wordpress-plugins-knowledge-base-and-documentation/?hscat=174-cm-ad-changer-cmac