Skip to content

Commit

Permalink
Taboola Bid Adapter : providing visibility in case of bid error (#11195)
Browse files Browse the repository at this point in the history
* cookie-look-up-logic-fix-gpp-fix

* refactor using ORTB conversion library

---------

Co-authored-by: ahmadlob <109217988+ahmadlob@users.noreply.github.com>
Co-authored-by: Ahmad Lobany <ahmad.l@taboola.com>
Co-authored-by: aleskanderl <109285067+aleskanderl@users.noreply.github.com>
  • Loading branch information
4 people authored Mar 13, 2024
1 parent b68759d commit 1c57789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/taboolaBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export const spec = {
},

onBidderError: ({ error, bidderRequest }) => {
ajax(EVENT_ENDPOINT + '/bidError', null, JSON.stringify(error, bidderRequest), {method: 'POST'});
ajax(EVENT_ENDPOINT + '/bidError', null, JSON.stringify({error, bidderRequest}), {method: 'POST'});
},
};

Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/taboolaBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe('Taboola Adapter', function () {
spec.onBidderError({error, bidderRequest});
expect(server.requests[0].method).to.equal('POST');
expect(server.requests[0].url).to.equal(EVENT_ENDPOINT + '/bidError');
expect(JSON.parse(server.requests[0].requestBody)).to.deep.equal(error, bidderRequest);
expect(JSON.parse(server.requests[0].requestBody)).to.deep.equal({error, bidderRequest});
});
});

Expand Down

0 comments on commit 1c57789

Please sign in to comment.