Back to Publisher API Reference

pbjs.removeAdUnit(adUnitCode)

Remove adUnit(s) from the pbjs configuration, If adUnit is not given then it will remove all adUnits

Kind: static method of pbjs API.

Param Scope Type Description
adUnitCode Optional String or Array of strings the adUnitCode(s) to remove, if empty it removes all

Back to Publisher API Reference