Random Ads

Random Ads gives you the ability to display random ads from selected ad groups on every refresh.

Displaying Random Ads

Display Random Ads using shortcode

  • Short code for reference : [wpadcenter_random_ad adgroup_ids=2 align='center' max_width='on' max_width_value=300]

  • Add shortcode as shown in the image below.

  • Alignment can be "left", "right" and "center".

  • Max width can be set to "on" or "off".

  • Max Width Value is the value in pixels.

  • Click on Publish/Update button to save shortcode.

Display Random Ads using Gutenberg Block

  • Select WPAdCenter Random Ad block in the editor as shown in the image below.

  • Choose ad groups from which random ads will be fetched.

  • Set alignment for the ad.

  • To provide a maximum width for ad, enable Max Width option and provide maximum width value.

  • Click on Publish/Update button.

Display Random Ads using Elementor Widget

  • Select WPAdcenter Random Ad widget in the Elementor, it is present under General category.

  • Select ad groups from which a random ad will be fetched.

  • Specify alignment for the ad.

  • To provide a maximum width for ad, enable Max Width option and provide maximum width value.

  • Click on Publish/Update button.

Display Random Ad using widget

  • Select WPAdcenter Random Ad widget as shown in the image.

  • Set the title for the widget.

  • Select ad groups from which random ad will be fetched.

  • To provide a maximum width for ad, enable Max Width option and provide maximum width value.

  • Click on Save.