Skip to content

Commit

Permalink
handle vastXml as base64 string
Browse files Browse the repository at this point in the history
  • Loading branch information
rs-guian committed May 2, 2023
1 parent 2465f85 commit 2ad1241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/retailspotBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function createBid(response, bidRequests) {

// retreive video response if present
if (response.mediaType === 'video') {
bid.vastXml = response.vastXml;
bid.vastXml = window.atob(response.vastXml);
} else {
bid.ad = response.ad;
}
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/retailspotBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ describe('RetailSpot Adapter', function () {
const responseWithSingleVideo = [{
'requestId': 'bid_id_0',
'placement': 'placement_0',
'vastXml': '<VAST>Empty sample</vast>',
'vastXml': 'PFZBU1Q+RW1wdHkgc2FtcGxlPC92YXN0Pg==',
'cpm': 0.5,
'height': 300,
'width': 530,
Expand Down

0 comments on commit 2ad1241

Please sign in to comment.