PublisherEco

Publisher-specific class for ECO


Constructor

new PublisherEco(main)

Constructor of PublisherEco class

Parameters
Name Type Description
main Object

Instance of the main CpexPackage class

Methods

(async) reRender(elementIdopt, adUnit, excludeBiddersopt) @public

Wraps HB reRender to pass adUnit

Parameters
Name Type Attributes Description
elementId string <optional>

Resolved DOM element ID

adUnit string

Header bidding key

excludeBidders Array.<string> <optional>

Array of bidders to exclude from formats


(async) refresh(adUnitsopt) → {Promise.<boolean>} @public

Refreshes specific ad positions for ECO sasic

Parameters
Name Type Attributes Description
adUnits Array.<string> <optional>

Array of adUnit codes to refresh

Returns

True if successful

Type: 
Promise.<boolean>

configureBidderConfigs(bidderConfigs) @internal

Configures ECO-specific bidder configs.

Parameters
Name Type Description
bidderConfigs Object.<string, Object>

Mutable Prebid configs keyed by bidder; delete a schain property to disable it


(async) getAdUnitElementId(hbKey) → {Promise.<(string|undefined)>} @internal

Returns (as promise) DOM element ID for adUnit/hbKey

Parameters
Name Type Description
hbKey string

Header bidding key

Returns

Element ID

Type: 
Promise.<(string|undefined)>