Skip to content

Commit

Permalink
Removed setting the AV_WIDTH/AV_HEIGHT, bidWidth/bidHeight to `imp.ex…
Browse files Browse the repository at this point in the history
…t` for video. (#12418)
  • Loading branch information
s-solodovnikov authored Nov 6, 2024
1 parent 7504055 commit ee61757
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 1 addition & 9 deletions modules/aniviewBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const converter = ortbConverter({
imp(buildImp, bidRequest, context) {
const { mediaType } = context;
const imp = buildImp(bidRequest, context);
const isVideo = mediaType === VIDEO;
const isBanner = mediaType === BANNER;
const { width, height } = getSize(context, bidRequest);
const floor = getFloor(bidRequest, { width, height }, mediaType);
Expand All @@ -43,14 +42,7 @@ const converter = ortbConverter({
imp.bidfloorcur = DEFAULT_CURRENCY;
}

if (isVideo) {
deepSetValue(imp, `ext.${BIDDER_CODE}`, {
AV_WIDTH: width,
AV_HEIGHT: height,
bidWidth: width,
bidHeight: height,
});
} else if (isBanner) {
if (isBanner) {
// TODO: remove once serving will be fixed
deepSetValue(imp, 'banner', { w: width, h: height });
}
Expand Down
1 change: 0 additions & 1 deletion test/spec/modules/aniviewBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ describe('Aniview Bid Adapter', function () {
expect(url).equal('https://rtb.aniview.com/sspRTB2');
expect(method).equal('POST');
expect(imp[0].tagid).equal(CHANNEL_ID_1);
expect(imp[0].ext.aniview.AV_HEIGHT).equal(VIDEO_SIZE.height);
expect(imp[0].id).equal(videoBidRequest.bids[0].bidId);
expect(ext.aniview.pbjs).equal(1);
});
Expand Down

0 comments on commit ee61757

Please sign in to comment.