Skip to content

Commit

Permalink
adstirBidAdapter support topic api (prebid#11177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryohamadaumt authored and mefjush committed Mar 7, 2024
1 parent a7b95cf commit 787006a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/adstirBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const spec = {
topurl: config.getConfig('pageUrl') ? false : bidderRequest.refererInfo.reachedTop,
},
sua,
user: utils.deepAccess(r, 'ortb2.user', null),
gdpr: utils.deepAccess(bidderRequest, 'gdprConsent.gdprApplies', false),
usp: (bidderRequest.uspConsent || '1---') !== '1---',
eids: utils.deepAccess(r, 'userIdAsEids', []),
Expand Down
1 change: 1 addition & 0 deletions test/spec/modules/adstirBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ describe('AdstirAdapter', function () {
expect(d.ref.tloc).to.equal(bidderRequest.refererInfo.topmostLocation);
expect(d.ref.referrer).to.equal(bidderRequest.refererInfo.ref);
expect(d.sua).to.equal(null);
expect(d.user).to.equal(null);
expect(d.gdpr).to.equal(false);
expect(d.usp).to.equal(false);
expect(d.schain).to.equal(null);
Expand Down

0 comments on commit 787006a

Please sign in to comment.