Skip to content

Commit

Permalink
Fix Bug Prebid 3.0 fail in to ConsentString (prebid#4784)
Browse files Browse the repository at this point in the history
* Support userIDs + Prebid 3.0

* Fix bug in richAudienceBidAddapter_spec.js

* Fix bug pubCommonId

* Fix bug RichaudienceAdapter

* Fix UserID5

* Fix bug ID5 change Source for Value

* Fix bug richaudienceAdapter && Add userSync pixelEnabled

* Fix bug richaudienceAdapter

* FixBug Prebid 3.0

* Fix Bug prebid 3.0 ConsentString

* Fix bug consent string

* FixBug Prebid 3.0

* FixBug Prebid 3.0
  • Loading branch information
richaudience authored and hellsingblack committed Mar 5, 2020
1 parent 221db33 commit dd62de8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/richaudienceBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ export const spec = {
url: syncUrl
});
} else if (syncOptions.pixelEnabled && REFERER != null) {
typeof gdprConsent.consentString != 'undefined' ? syncUrl = `https://sync.richaudience.com/bf7c142f4339da0278e83698a02b0854/?euconsent=${gdprConsent.consentString}&referrer=${REFERER}` : syncUrl = `https://sync.richaudience.com/bf7c142f4339da0278e83698a02b0854/?referrer=${REFERER}`;
syncs.push({
type: 'image',
url: `https://sync.richaudience.com/bf7c142f4339da0278e83698a02b0854/?euconsent=${gdprConsent.consentString}&referrer=${REFERER}`
url: syncUrl
});
}
return syncs
Expand Down
10 changes: 10 additions & 0 deletions test/spec/modules/richaudienceBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,5 +667,15 @@ describe('Richaudience adapter tests', function () {
})
expect(syncs).to.have.lengthOf(1);
expect(syncs[0].type).to.equal('image');

syncs = spec.getUserSyncs({
pixelEnabled: true
}, [], {
consentString: null,
referer: 'http://domain.com',
gdprApplies: true
})
expect(syncs).to.have.lengthOf(1);
expect(syncs[0].type).to.equal('image');
});
});

0 comments on commit dd62de8

Please sign in to comment.