Skip to content

Commit

Permalink
convert bidders: codefuel
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi committed May 20, 2022
1 parent f5c6357 commit 29cd262
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/codefuelBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const spec = {
* @return ServerRequest Info describing the request to the server.
*/
buildRequests: function(validBidRequests, bidderRequest) {
const page = bidderRequest.refererInfo.referer;
const domain = getDomainFromURL(page)
const page = bidderRequest.refererInfo.page;
const domain = bidderRequest.refererInfo.domain;
const ua = navigator.userAgent;
const devicetype = getDeviceType()
const publisher = setOnAny(validBidRequests, 'params.publisher');
Expand Down
3 changes: 2 additions & 1 deletion test/spec/modules/codefuelBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ describe('Codefuel Adapter', function () {
timeout: 500,
auctionId: '12043683-3254-4f74-8934-f941b085579e',
refererInfo: {
referer: 'https://example.com/',
page: 'https://example.com/',
domain: 'example.com'
}
}

Expand Down

0 comments on commit 29cd262

Please sign in to comment.