Skip to content

Commit

Permalink
incrx Bid Adapter : add support for adtype and settings (prebid#9477)
Browse files Browse the repository at this point in the history
* Update incrxBidAdapter.js

We have added new keys in the endpoint response (Line 71, 72) due to which we need to update our Adapter with the latest file

* fix linting

* Update incrxBidAdapter_spec.js

We have added new keys in the response

* Update incrxBidAdapter.js

removed consolelog lines

---------

Co-authored-by: Chris Huie <[email protected]>
  • Loading branch information
2 people authored and jorgeluisrocha committed May 18, 2023
1 parent e25f583 commit 7dcdc54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/incrxBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export const spec = {
requestId: response.slotBidId,
cpm: response.cpm,
currency: response.currency || DEFAULT_CURRENCY,
adType: response.adType || '1',
settings: response.settings,
width: response.adWidth,
height: response.adHeight,
ttl: CREATIVE_TTL,
Expand Down
4 changes: 4 additions & 0 deletions test/spec/modules/incrxBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ describe('IncrementX', function () {
cpm: '0.7',
ad: '<html><h1>Ad from IncrementX</h1></html>',
slotBidId: 'bid-id-123456',
adType: '1',
settings: '1,2',
nurl: 'htt://nurl.com',
statusText: 'Success'
}
Expand All @@ -80,6 +82,8 @@ describe('IncrementX', function () {
requestId: 'bid-id-123456',
cpm: '0.7',
currency: 'USD',
adType: '1',
settings: '1,2',
netRevenue: false,
width: '300',
height: '250',
Expand Down

0 comments on commit 7dcdc54

Please sign in to comment.