Ad Layout

When creating or editing an ad unit, you can adjust the ad layout with the ad Layout / Output options. 

You can define the position and the margin values and assign existing style settings by specifying a container ID or class.

Advanced Ads Pro offers additional options to insert custom code and display an ad only once per page.

Layout / Output options

Go to Advanced Ads > Ads and create a new ad or edit an existing ad unit. Scroll down to the Layout / Output options.

Ad layout options
Layout / Output options of Advanced Ads

Position

You can align the ad to the left, center, or right inside your layout with the Position option. Use the clearfix option to prevent the following elements from floating around the ad.

Please note: your Ad Label alignment configuration in the Placement options overrides these settings.

Margin

The Margin option allows you to add distance to adjacent elements around the ad unit. This way, you can shape the appearance of your ads inside your layout.

Example for an ad unit with and without a margin
ad layout without margin (l.) and with margin (r.)

Container ID

Specify the ID of the ad container. Leave blank for random or no id.  An id-like string with only lowercase letters, numbers, and hyphens.

Container Classes

Specify one or more classes for the container. You can separate multiple classes with a space.

Advanced Features

With Advanced Ads Pro, you get additional options to customize the appearance and behavior of your ad.

Display only once

This option specifies that the display is shown only once per page. This sounds trivial at first, but it is a handy feature.

A typical use case is when you have added an ad to multiple groups that rotate on different placements. Or also, when you assign a group with various ads to a manual placement, which you insert multiple times via shortcode into the content of the same page.

The goal is the same in both examples: you want to prevent users from seeing the same ad twice. On the one hand, so they don’t get annoyed and banner-blind. On the other hand, to increase the chance that your visitors will click the ads.

By default, the first appearance of the ad in the source code is displayed when this option is checked. In combination with Cache Busting, the order depends on the Cache Busting option used for the ad and placement.

They are checked in the following order:

  1. ad positions without Cache Busting,
  2. passive Cache Busting,
  3. AJAX Cache Busting.

Using rotations and limiting the appearance of ads to only one per page can break loops and cause ads not to show or rotate as intended.

Custom Code

You can customize your ad with additional HTML and CSS. Just insert your custom code into the textbox.

Advanced layout/output options
additional Layout / Output options with Advanced Ads Pro

Subscribe to our newsletter and get 2 add-ons for free!

* indicates required
Interests

What else you need to know

  • The ad code is practically wrapped in an additional block (div ) and inline styles for the features above.
  • The clearfix option adds a <br/> tag with inline styles behind the wrapper.
  • You don’t need to type # or . in container ID and container classes fields.

Make it better

Increase your ad management skills without spending more time.
Join over 150,000 publishers and AdOpts increasing their ad revenue.