Remove Ad Unit
Remove adUnit(s) from the pbjs configuration. If adUnit is not given then it will remove all adUnits.
pbjs.removeAdUnit(adUnitCode);
Arguments:
  • adUnitCode: string or array of string

    adUnits to be removed.

    Accepted Values
    Field Scope Type Description
    adUnitCode Optional String or Array of strings The adUnitCode(s) to remove, if empty it removes all.
Response
  • param1: string

    String indicating some value that has to be passed as a string type.

  • param2: number

    Number indicating some value that has to be passed as a number type.

    Note: This number should be between 0 and infinity.
Response Description
{ response: example }