Skip to content

Commit

Permalink
Merge pull request #20 from reddyesha/ymp804
Browse files Browse the repository at this point in the history
Remove JSON.stringify call and return plain object for getBidResponses and getAdserverTargetingParamsForAdUnit
  • Loading branch information
mkendall07 committed Aug 12, 2015
2 parents 944918f + e88408d commit cb48e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/prebid.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ pbjs.getAdserverTargetingParamsForAdUnit = function(adunitCode) {
pbjs.getBidResponses(adunitCode);

if (adunitCode) {
return JSON.stringify(pb_targetingMap[adunitCode]);
return pb_targetingMap[adunitCode];
}
return JSON.stringify(pb_targetingMap);
return pb_targetingMap;


};
Expand Down Expand Up @@ -369,7 +369,7 @@ pbjs.getBidResponses = function(adunitCode) {
}
}

return JSON.stringify(returnObj, null, '\t');
return returnObj;

};
/*
Expand Down

0 comments on commit cb48e30

Please sign in to comment.