Skip to content

Commit

Permalink
Yahoo Ads Bid Adapter: Fix to not set bidResponse vastUrl field with …
Browse files Browse the repository at this point in the history
…bid nurl value.
  • Loading branch information
zach-bowman committed Aug 19, 2024
1 parent 4835e08 commit 48cc1bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions modules/yahooAdsBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,10 +660,6 @@ export const spec = {
bidResponse.mediaType = VIDEO;
bidResponse.meta.mediaType = VIDEO;
bidResponse.vastXml = bid.adm;

if (bid.nurl) {
bidResponse.vastUrl = bid.nurl;
};
}

if (deepAccess(bidderRequest, 'mediaTypes.video.context') === 'outstream' && !bidderRequest.renderer) {
Expand Down
9 changes: 0 additions & 9 deletions test/spec/modules/yahooAdsBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1495,15 +1495,6 @@ describe('Yahoo Advertising Bid Adapter:', () => {
expect(response[0].mediaType).to.equal('video');
})

it('should insert video VAST win notification into vastUrl', () => {
const { serverResponse, bidderRequest } = generateResponseMock('video', 'vast');
const response = spec.interpretResponse(serverResponse, {bidderRequest});
expect(response[0].ad).to.be.undefined;
expect(response[0].vastUrl).to.equal('https://yahoo.com?event=adAttempt');
expect(response[0].vastXml).to.equal('<VAST></VAST>');
expect(response[0].mediaType).to.equal('video');
})

describe('wrapped in video players for display inventory', () => {
beforeEach(() => {
config.setConfig({
Expand Down

0 comments on commit 48cc1bd

Please sign in to comment.