Constructor
new PublisherEco(main)
Constructor of PublisherEco class
Parameters
| Name | Type | Description |
|---|---|---|
main |
Object | Instance of the main CpexPackage class |
Methods
(async) reRender(hbKey)
Wraps HB reRender to pass hbKey
Parameters
| Name | Type | Description |
|---|---|---|
hbKey |
string | Header bidding key |
(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>
(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)>