Skip to content

Commit

Permalink
Tappx Bid Adapter : fix multiple format sizes (prebid#12209)
Browse files Browse the repository at this point in the history
* 10207_include setConfig function and intruccions in readme file

* Update tappxBidAdapter.md

* Update tappxBidAdapter.js

* multiple formats

---------

Co-authored-by: jgarciaorad <jgarciaorad@tappx.com>
  • Loading branch information
prebidtappx and TappxJon authored Sep 9, 2024
1 parent 5b18978 commit 78fa92e
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 78fa92e

Please sign in to comment.