Skip to content

Commit

Permalink
master into ttl-buffer (prebid#8869)
Browse files Browse the repository at this point in the history
* Update Sonobi adapter with GVLID (prebid#8860)

* dgkeyword RTD provider: fix tests causing ID5 test failures (prebid#8862)

Co-authored-by: Mike Miller <[email protected]>
Co-authored-by: Demetrio Girardi <[email protected]>
  • Loading branch information
3 people authored Aug 18, 2022
1 parent 536c2fa commit b253980
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions modules/dgkeywordRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ export function getDgKeywordsAndSet(reqBidsConfigObj, callback, moduleConfig, us
const timeout = (moduleConfig && moduleConfig.params && moduleConfig.params.timeout && Number(moduleConfig.params.timeout) > 0) ? Number(moduleConfig.params.timeout) : PROFILE_TIMEOUT_MS;
const url = (moduleConfig && moduleConfig.params && moduleConfig.params.url) ? moduleConfig.params.url : URL + encodeURIComponent(window.location.href);
const adUnits = reqBidsConfigObj.adUnits || getGlobal().adUnits;
callback = (function(cb) {
let done = false;
return function () {
if (!done) {
done = true;
return cb.apply(this, arguments);
}
}
})(callback);
let isFinish = false;
logMessage('[dgkeyword sub module]', adUnits, timeout);
let setKeywordTargetBidders = getTargetBidderOfDgKeywords(adUnits);
Expand Down
1 change: 1 addition & 0 deletions modules/sonobiBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const OUTSTREAM_REDNERER_URL = 'https://mtrx.go.sonobi.com/sbi_outstream_rendere

export const spec = {
code: BIDDER_CODE,
gvlid: 104,
supportedMediaTypes: [BANNER, VIDEO],
/**
* Determines whether or not the given bid request is valid.
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/dgkeywordRtdProvider_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ describe('Digital Garage Keyword Module', function () {
moduleConfig,
null
);
const request = server.requests[0];
setTimeout(() => {
const request = server.requests[0];
if (request) {
request.respond(
200,
Expand Down

0 comments on commit b253980

Please sign in to comment.