Skip to content

Commit

Permalink
Yieldlift Bid Adapter: update ttl (prebid#9232)
Browse files Browse the repository at this point in the history
* Updating TTL, changing endpoint

* Test fixed

Co-authored-by: Danijel Predarski <danijel.p@whitecitysoft.com>
  • Loading branch information
2 people authored and jorgeluisrocha committed May 18, 2023
1 parent bbcc401 commit 188f844
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/yieldliftBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {deepSetValue, logInfo, deepAccess} from '../src/utils.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {BANNER} from '../src/mediaTypes.js';

const ENDPOINT_URL = 'https://x.yieldlift.com/auction';
const ENDPOINT_URL = 'https://x.yieldlift.com/pbjs';

const DEFAULT_BID_TTL = 30;
const DEFAULT_BID_TTL = 300;
const DEFAULT_CURRENCY = 'USD';
const DEFAULT_NET_REVENUE = true;

Expand Down Expand Up @@ -98,7 +98,7 @@ export const spec = {
width: bid.w,
height: bid.h,
ad: bid.adm,
ttl: DEFAULT_BID_TTL,
ttl: typeof bid.exp === 'number' ? bid.exp : DEFAULT_BID_TTL,
creativeId: bid.crid,
netRevenue: DEFAULT_NET_REVENUE,
currency: DEFAULT_CURRENCY,
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/yieldliftBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ describe('YieldLift', function () {
expect(bids[index]).to.have.property('ad', RESPONSE.body.seatbid[0].bid[index].adm);
expect(bids[index]).to.have.property('creativeId', RESPONSE.body.seatbid[0].bid[index].crid);
expect(bids[index].meta).to.have.property('advertiserDomains', RESPONSE.body.seatbid[0].bid[index].advertiserDomains);
expect(bids[index]).to.have.property('ttl', 30);
expect(bids[index]).to.have.property('ttl', 300);
expect(bids[index]).to.have.property('netRevenue', true);
}
});
Expand Down

0 comments on commit 188f844

Please sign in to comment.