Skip to content

Commit

Permalink
Readpeak Bid Adapter : remove click url encoding (#11120)
Browse files Browse the repository at this point in the history
* Add banner support to readpeak bid adapter

* Add onBidWon callback to trigger burl

* Remove .only from test

* Fix merge

* Revert package-lock.json version update

* Remove encoding of click target URL

---------

Co-authored-by: Tuomo Tilli <tuomo.tilli@readpeak.com>
Co-authored-by: readpeaktuomo <66239046+readpeaktuomo@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 20, 2024
1 parent 969e417 commit 8cce0b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/readpeakBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ function nativeResponse(imp, bid) {
keys.cta = asset.data && asset.id === 5 ? asset.data.value : keys.cta;
});
if (nativeAd.link) {
keys.clickUrl = encodeURIComponent(nativeAd.link.url);
keys.clickUrl = nativeAd.link.url;
}
const trackers = nativeAd.imptrackers || [];
trackers.unshift(replaceAuctionPrice(bid.burl, bid.price));
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/readpeakBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ describe('ReadPeakAdapter', function() {
height: 500
});
expect(bidResponse.native.clickUrl).to.equal(
'http%3A%2F%2Furl.to%2Ftarget'
'http://url.to/target'
);
expect(bidResponse.native.impressionTrackers).to.contain(
'http://url.to/pixeltracker'
Expand Down

0 comments on commit 8cce0b8

Please sign in to comment.