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(hbKey) @public

Wraps HB reRender to pass hbKey

Parameters
Name Type Description
hbKey string

Header bidding key


(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>

(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)>