Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greenbids RTD provider: debug flag #12037

Merged
merged 7 commits into from
Jul 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
review
  • Loading branch information
maelmrgt committed Jul 25, 2024
commit b3da7e784a93229df2fb3e4d9548dfc6a6bee281
3 changes: 1 addition & 2 deletions modules/greenbidsRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ function createPromise(reqBidsConfigObj, greenbidsId) {

function processSuccessResponse(response, timeoutId, reqBidsConfigObj, greenbidsId) {
clearTimeout(timeoutId);
let responseAdUnits;
try {
responseAdUnits = JSON.parse(response);
const responseAdUnits = JSON.parse(response);
updateAdUnitsBasedOnResponse(reqBidsConfigObj.adUnits, responseAdUnits, greenbidsId);
} catch (e) {
logWarn('GreenbidsRtdProvider: Greenbids API response parsing error, skipping shaping');
Expand Down