Skip to content

Commit

Permalink
appnexus bid adapter - update logic banner adtype in request (#10048)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnellbaker authored Jun 5, 2023
1 parent 7033149 commit 09062b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/appnexusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {Renderer} from '../src/Renderer.js';
import {config} from '../src/config.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {ADPOD, BANNER, NATIVE, VIDEO} from '../src/mediaTypes.js';
import {auctionManager} from '../src/auctionManager.js';
import {find, includes} from '../src/polyfill.js';
import {INSTREAM, OUTSTREAM} from '../src/video.js';
import {getStorageManager} from '../src/storageManager.js';
Expand Down Expand Up @@ -917,9 +916,7 @@ function bidToTag(bid) {
tag['banner_frameworks'] = bid.params.frameworks;
}

// TODO: why does this need to iterate through every ad unit?
let adUnit = find(auctionManager.getAdUnits(), au => bid.transactionId === au.transactionId);
if (adUnit && adUnit.mediaTypes && adUnit.mediaTypes.banner) {
if (deepAccess(bid, `mediaTypes.${BANNER}`)) {
tag.ad_types.push(BANNER);
}

Expand Down

0 comments on commit 09062b3

Please sign in to comment.