Skip to content

Commit

Permalink
Kargo Bid Adapter: fixing adm for legacy vast support (#8616)
Browse files Browse the repository at this point in the history
* kargo adapter - always setting adm for legacy support

* kargo adapter - fixing tests
  • Loading branch information
andyrusiecki authored Jun 29, 2022
1 parent 2b423e1 commit 91aa018
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions modules/kargoBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const spec = {
}

const bidResponse = {
ad: adUnit.adm,
requestId: bidId,
cpm: Number(adUnit.cpm),
width: adUnit.width,
Expand All @@ -103,8 +104,6 @@ export const spec = {

if (meta.mediaType == VIDEO) {
bidResponse.vastXml = adUnit.adm;
} else {
bidResponse.ad = adUnit.adm;
}

bidResponses.push(bidResponse);
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/kargoBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ describe('kargo adapter tests', function () {
cpm: 2.5,
width: 300,
height: 250,
ad: '<VAST></VAST>',
vastXml: '<VAST></VAST>',
ttl: 300,
creativeId: 'bar',
Expand Down

0 comments on commit 91aa018

Please sign in to comment.