> For the complete documentation index, see [llms.txt](https://docs.wpeka.com/wp-adcenter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wpeka.com/wp-adcenter/placing-ads/rotating-ad-group-pro.md).

# Rotating Ad Group (Pro)

### Displaying Rotating Ads

#### Display Rotating Ads using Gutenberg Block

{% hint style="danger" %}
Please note that the Gutenberg Block for displaying Rotating Ads will be deprecated soon. Refer <https://docs.wpeka.com/wp-adcenter/placing-ads/placing-ad-using-consolidated-block-elementor-widget> to replace the Rotating Ads Gutenberg block with the Consolidated Ad Gutenberg Block.
{% endhint %}

* Select **WPAdcenter Rotating Ads** block in the editor as shown in the image below.

![](/files/CjmKppbgea79wAVirf6V)

* Select an Ad group from which the rotating ads will be fetched.
* Specify the time span between each rotation.
* Specify alignment for the ad.
* To provide maximum width for an ad, enable the **Max Width** option and provide a maximum width value.
* Enable **Order Randomly** option to fetch ads in random order, by default the ads will be fetched as per the published date.
* 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.

#### Displaying Rotating Ads using Shortcode

* Shortcode for reference: \[wpadcenter\_rotating\_adgroup adgroup\_id=2 time=2 align='center' random\_order='on' max\_width='on' max\_width\_value=300 devices=mobile,tablet,desktop]

![](/files/-M_trhoHbKC42vikHPjV)

* Specify the ad group ID from which rotating ads will be fetched.
* Specify the time span between each rotation using the time attribute.
* Alignment can be specified as "left", "right" and "center".
* Set random order as **on**, if the ads should be fetched in random order. If not specified or set to **off**,\
  ads will be ordered as per the published date.
* 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 the shortcode.

#### Displaying Rotating Ads using Elementor

{% hint style="danger" %}
Please note that the Elementor Widget for displaying Rotating Ads will be deprecated soon. Refer <https://docs.wpeka.com/wp-adcenter/placing-ads/placing-ad-using-consolidated-block-elementor-widget> to replace the Rotating Ads Elementor widget with the Consolidated Ad Elementor widget.
{% endhint %}

* Select **WPAdcenter Rotating Ads** widget which is present under **General** category.

![](/files/hg9BQdWvPVmbpB8wz4kS)

* Select the ad group from which rotating ads will be fetched.
* Specify alignment for the ad.
* Specify the time span between each rotation.
* To provide maximum width for an ad, enable the **Max Width** option and provide a maximum width value.
* Enable **Order Randomly** option to fetch ads in random order, by default the ads will be fetched as per the published date.
* 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.

#### Displaying Rotating Ads using Widget

* Select **WPAdcenter Pro Rotating Ad** widget as shown in the image below.

![](/files/-M_txyvWbFzETiMhHpnW)

* Provide a title for the widget.
* Select an ad group from which the rotating ads will be fetched.
* Specify the time span between each rotation.
* Specify alignment for the ad.
* To provide maximum width for an ad, enable the **Max Width** option and provide a maximum width value.
* Enable **Order Randomly** option to fetch ads in random order, by default the ads will be fetched as per the published date.
* To display ads on specific devices, select the corresponding checkboxes.
* Click on the **Save** button.
