Skip to content

Commit

Permalink
Merge pull request #7 from TappxJon/master
Browse files Browse the repository at this point in the history
Fix: include multiples formats in request
  • Loading branch information
prebidtappx authored Sep 5, 2024
2 parents 9c16cfb + 9f29b12 commit a57b491
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/tappxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,8 @@ function buildOneRequest(validBidRequests, bidderRequest) {

banner.api = api;

let format = {};
format[0] = {};
format[0].w = w;
format[0].h = h;
banner.format = format;
const formatArr = bannerMediaType.sizes.map(size => ({w: size[0], h: size[1]}))
banner.format = Object.assign({}, formatArr);

imp.banner = banner;
}
Expand Down

0 comments on commit a57b491

Please sign in to comment.