Help - WPAdCenter
WPAdCenter 2.0.0
WPAdCenter 2.0.0
  • Introduction
  • Installation
    • Installing Free
    • Installing Pro
  • Creating Ads
    • Image Ads
    • Google Adsense Ad
    • Text Ad
    • Ad Code
    • AMP Ads
    • HTML 5 Ad
    • Video Ads
    • Additional Ad Options
  • Manage Ads
  • Manage Ad Groups
  • Placing Ads
    • Placing Ad Using Consolidated Block/Elementor Widget
    • Single Ads
    • Adgroup Ads
    • Random Ads
    • Ordered Ads (Pro)
    • Rotating Ad Group (Pro)
    • Animated Ads (Pro)
    • Place ads with Widgets for WordPress 5.8 and above
  • Reports
  • Email Reports (Pro)
  • Settings
    • General
    • Scripts
    • Integrations
    • Privacy Options
    • Advertiser's Settings (Pro)
    • Advanced (Pro)
    • Placements (Pro)
    • Link Management (Pro)
    • In-Feed Ads (Pro)
  • GA Tracking (Pro)
  • Lazy Loading (Pro)
  • Custom Ad Sizes (Pro)
  • Advertisers (Pro)
  • Packages (Pro)
  • A/B Testing (Pro)
  • Integrating MaxMind License Key
  • Affiliate Link Management (Pro)
    • Creating Affiliate Links
    • Affiliate Link Categories
    • Adding Affiliate Links on Posts/Pages
    • Bulk Import/Export Affiliate Links
    • Affiliate Link Reports
  • FAQ
  • Video Resources
Powered by GitBook
On this page

Was this helpful?

  1. Placing Ads

Random Ads

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

PreviousAdgroup AdsNextOrdered Ads (Pro)

Last updated 3 years ago

Was this helpful?

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 devices=mobile,tablet,desktop]

  • 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.

  • To display ads on specific devices, specify the names of devices. If the 'devices' attribute is not provided the ad will be shown on all devices.

  • Click on Publish/Update button to save shortcode.

Display Random Ads using Gutenberg Block

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

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

  • Set the alignment for the ad.

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

  • To display ads on specific devices, select the corresponding checkboxes. The changes will take effect on the preview page or live page and not while editing.

  • Click on Publish/Update button.

Display Random Ads using Elementor Widget

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

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

  • Specify alignment for the ad.

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

  • To display ads on specific devices, select the corresponding checkboxes. The changes will take effect on the preview page or live page and not while editing.

  • 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 a random ad will be fetched.

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

  • To display ads on specific devices, select the corresponding checkboxes.

  • Click on Save.

Please note that the Gutenberg Block for displaying Random Ad will be deprecated soon. Refer to replace the Random Ad Gutenberg block with the Consolidated Ad Gutenberg Block.

Please note that the Elementor Widget for displaying Random Ad will be deprecated soon. Refer to replace the Random Ads Elementor widget with the Consolidated Ad Elementor widget.

https://docs.wpeka.com/wp-adcenter/placing-ads/placing-ad-using-consolidated-block-elementor-widget
https://docs.wpeka.com/wp-adcenter/placing-ads/placing-ad-using-consolidated-block-elementor-widget