How to prevent an adUnit from being monetized

In some situation, it is necessary for a given adUnit to not be monetized. Here are the ways to achieve that.

By removing the container div from the page: 

Pubstack Ad Management scans the page in order to find divs with id corresponding to the adUnits that have been configured in the Pubstack UI. If Pubstack does not find a div, the corresponding adUnit will not be monetized. Therefore, an easy way to prevent a given adUnit from being monetized is to remove the corresponding div from the page's HTML.

By applying the style "display: none" to the container div

Pubstack Ad Management has a native feature that prevents it from monetizing any adUnit which corresponding container div has the style "display: none". In case you are unable/unwilling to remove the container div, adding this style to it instead is an easy way to make sure the adUnit will not be monetized (in situations where for example the div is present but not actually visible on the page). It would look like this:

<div id="div-gpt-ad-banner" style="display: none;"></div>