Ad Holding

Last edited: 2025/09/24


Ad holding “holds” an ad on the top of the viewport when the User scrolls down.

How does it work?

  1. When the ad is rendered a blank spot below it appears You can modify selected parameters - separately for Desktop and for Mobile (the Device type is detected automatically):
    1. Distance from the website header (in pixels) where the ad will be "held".
    2. Height (in pixels) of the space added below the ad (width is determined automatically).
  2. Then, when it reaches the top of the screen it „sticks” to it for long as the user scrolls through the blank spot
  3. Afterwards it goes up the same way as the content

Example:

Example of Ad Holding in action

Example of Ad Holding in action

See it on a page: link

qr_yieldbird_adholder.png

Advanced Ad holding configuration

You can customize the ad holding behavior to better match the layout and user experience of your website by adjusting the following parameters:

Distance from page header [px]

Defines the vertical space (in pixels) between the held ad and the top of the page (i.e., the header).

image.png

<aside> <img src="/icons/arrow-right_green.svg" alt="/icons/arrow-right_green.svg" width="40px" />

Good practice: Adjust this value to accommodate the height of your website’s top navigation menu.

</aside>

Extra space below ad [px]

Specifies the amount of additional space shown below the held ad.

Important: To prevent layout shifts, the additional space is calculated based on the tallest size requested for the Ad Unit. For example, if you set it to 50px and the Ad Unit requests 250x300 and 250x400, the total container size will be 250x450 (400+50).

image.png

<aside> <img src="/icons/arrow-right_green.svg" alt="/icons/arrow-right_green.svg" width="40px" />

Good practice: More space below the ad generally improves viewability. However, excessive spacing can negatively affect user experience.

</aside>

Exclude creative types

Define rules to automatically disable Ad Holding based on specific creative characteristics. You can specify keywords or patterns (e.g., a "forbidden" string) that, when detected in the creative HTML code, will prevent Ad Holding from being applied.

<aside> <img src="/icons/arrow-right_green.svg" alt="/icons/arrow-right_green.svg" width="40px" />

Good practices: Use this option when you need to e.g.:

On this page: