Skip to content

Commit

Permalink
Rise Bid Adapter: pass hp in supply schain (#7898)
Browse files Browse the repository at this point in the history
* add Rise adapter

* fixes

* change param isOrg to org

* Rise adapter

* change email for rise

* fix circle failed

* bump

* bump

* bump

* remove space

* Upgrade Rise adapter to 5.0

* fixed schain hp parameter encode

* updated schain test

Co-authored-by: Noam Tzuberi <noam.tzuberi@ironsrc.com>
Co-authored-by: noamtzu <noamtzu@gmail.com>
Co-authored-by: Noam Tzuberi <noamtzu@users.noreply.github.com>
Co-authored-by: Laslo Chechur <laslo.chechur@ironsrc.com>
Co-authored-by: Inna Yaretsky <innay@ironsrc.com>
  • Loading branch information
6 people authored and faisalvs committed Jan 3, 2022
1 parent 917a5ea commit 472bc66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/riseBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function getSupplyChain(schainObject) {
scStr += '!';
scStr += `${getEncodedValIfNotEmpty(node.asi)},`;
scStr += `${getEncodedValIfNotEmpty(node.sid)},`;
scStr += `${getEncodedValIfNotEmpty(node.hp)},`;
scStr += `${node.hp ? encodeURIComponent(node.hp) : ''},`;
scStr += `${getEncodedValIfNotEmpty(node.rid)},`;
scStr += `${getEncodedValIfNotEmpty(node.name)},`;
scStr += `${getEncodedValIfNotEmpty(node.domain)}`;
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/riseBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ describe('riseAdapter', function () {
const requests = spec.buildRequests(bidRequests, bidderRequest);
for (const request of requests) {
expect(request.data).to.be.an('object');
expect(request.data).to.have.property('schain', '1.0,1!indirectseller.com,00001,,,,');
expect(request.data).to.have.property('schain', '1.0,1!indirectseller.com,00001,1,,,');
}
});

Expand Down

0 comments on commit 472bc66

Please sign in to comment.