For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Manage Capping for Popunders and Fullpage Interstitials

As a Publisher, when you create or edit a Popunder, Desktop Fullpage Interstitial, or Mobile Fullpage Interstitial zone, you can enable or disable capping for your ad zone. With this option, you can manage capping (display frequency) on your own side.

Supported Ad Formats: Popunder, Mobile Popunder, Desktop Fullpage Interstitial, Mobile Fullpage Interstitial.

Setting Up

Step 1: Enable/Disable Capping Through the Snippet

Disable the capping on the Popunder snippet. Only the adConfig block is shown below — copy the full tag from your zone's tag page in the Admin Panel and set capping_enabled or ad_capping_enabled to false.

Note: Complete Step 2 and Step 3 to ensure the ad is not triggered on every click.

Step 2: Setting Up Event Listener

Set up the event listener for the creativeDisplayed event so that you can store and increment the capping counter on your own side.

For Popunder zones you can use the on_redirect callback instead of this event listener. See using the should_fire callback below.

Step 3: Managing the Page DOM

Based on the value of the counter, which you can store in any way, exclude the snippet from the page DOM. You can do this on the front end or the back end; both examples follow.

FE Example:

BE Example:

Using the should_fire callback

Instead of keeping the snippet out of the page DOM, you can leave the tag in place and decide on each click whether the ad should be served. When capping is disabled, the ad is only served if your callback returns true.

The callback can only suppress the ad, not allow extra displays: with capping disabled the ad is still served at most once per page load. on_redirect is available on Popunder only; Fullpage Interstitial zones use the creativeDisplayed listener from Step 2 to count displays.

Popunder

Inline + Remote Script

Remote Script Only

Desktop and Mobile Fullpage Interstitial

On the asynchronous tag, pass the name of your function in the data-should-fire attribute rather than the function itself. The function must be defined on the page before the tag runs.

Last updated

Was this helpful?