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)
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. |
<optional> | Array of bidders to exclude from formats |
(async) refresh(adUnitsopt) → {Promise.<boolean>}
Refreshes specific ad positions for ECO sasic
Parameters
| Name | Type | Attributes | Description |
|---|---|---|---|
adUnits |
Array. |
<optional> | Array of adUnit codes to refresh |
Returns
True if successful
- Type:
-
Promise.
<boolean>
configureBidderConfigs(bidderConfigs)
Configures ECO-specific bidder configs.
Parameters
| Name | Type | Description |
|---|---|---|
bidderConfigs |
Object. |
Mutable Prebid configs keyed by bidder; delete a schain property to disable it |
(async) getAdUnitElementId(hbKey) → {Promise.<(string|undefined)>}
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)>