modules/gptPreAuction.js
Function makeBidRequestsHook
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const makeBidRequestsHook = (fn, adUnits, ...args) => {
appendGptSlots(adUnits);
const { useDefaultPreAuction, customPreAuction } = _currentConfig;
adUnits.forEach(adUnit => {
// init the ortb2Imp if not done yet
Avoid too many return
statements within this function. Open
Open
return `${adServerAdSlot}#${adUnit.code}`;
Avoid too many return
statements within this function. Open
Open
return true;