You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pbjs.requestBids() method can be called in two different ways.
In both examples I make use of the twin ad unit feature.
Add ad units and request adUnitCodes
// create ad unitspbjs.addAdUnits([{code: 'div-1',/* ... */},{code: 'div-1',/* ... */},]);// request bids for the created ad unitspbjs.requestBids({adUnitCodes: ['div-1']});
With this call structure, the adUnitCodes array in the auctionEnd event has only the ad unit codes from the array.
Type of issue
Bug
Description
The
pbjs.requestBids()
method can be called in two different ways.In both examples I make use of the twin ad unit feature.
Add ad units and request adUnitCodes
With this call structure, the
adUnitCodes
array in theauctionEnd
event has only the ad unit codes from the array.Ephemeral ad units
With this call structure, the
adUnitCodes
array in theauctionEnd
event has duplicatedcode
s .Steps to reproduce
Use Ephemeral ad units variant from the description and
and look the
adUnitCodes
array.Test page
Expected results
adUnitCodes
are always unique.Actual results
adUnitCodes
are unique only if explicitly specified in theadUnitCodes
requestBids parameter.Platform details
Other information
What is the behaviour if
adUnitCodes
andadUnits
are provided as params?The text was updated successfully, but these errors were encountered: