# Adgroup Ads

### Displaying Ad Groups

#### Display Ads using Short Code

* Copy Short Code from the **Manage Ad Groups** table.
* Past copied shortcode in the editor as shown in the image below.

![](/files/-M_tgqoOjFe5s9IOpbsH)

* Shortcode for reference : \[wpadcenter\_adgroup adgroup\_ids=5 align='none' num\_ads=1 num\_columns=1 max\_width="on" max\_width\_value=300 devices=mobile,tablet,desktop]
* Here you can provide the alignment options as "left", "right", "center" or "none".
* Specify the number of ads to be displayed.
* Also, you can specify the number of columns.
* Max width can be set to  "on" or "off".
* Max Width Value is the value in pixels.
* Click on **Publish**/**Update** button.

#### Display Ads using Widgets.

* To display ad groups using widgets, select the **WPAdCenter Ad Group** widget as shown in the image below.

![](/files/-M_ti7sE3yvnj0ybzkaK)

* From here you can specify a title for the grouped ads.
* Select the ad groups that you wish to display, you can also select multiple ad groups.
* Specify the number of ads.
* Specify the number of columns.
* Choose an alignment for the ads to be displayed.
* 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 the **Save** button.

#### Display Ads using Elementor

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

* Select **WPAdCenter Grouped Ads** widget, it is present under general widgets.

![](/files/foekQVzd3vOf2FlUEA1m)

* From here you can select the ad groups to be displayed.
* Select the number of ads.
* Select number of Columns.
* Specify the alignment for the ads.
* 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 Ads using Gutenberg block

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

* To display ad groups using Gutenberg block add **WPAdCenter Grouped Ads** block to the editor as shown in the image below.

![](/files/cXqrqZwHG3bfwCqpMTQp)

* From here you can select single/multiple Ad Groups to be displayed.
* Also, select the alignment for the Ad Groups.
* Specify the number of Ads to be displayed
* Specify the number of columns to be displayed in the front-end.
* 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wpeka.com/wp-adcenter/placing-ads/adgroup-ads.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
