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

SSpBc Bid Adapter: utils import fix #7532

Merged
merged 1 commit into from
Oct 4, 2021
Merged
Changes from all commits
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
10 changes: 5 additions & 5 deletions modules/sspBCBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const mapAsset = (paramName, paramValue) => {
* @returns {object} native object that conforms to ortb native ads spec
*/
const mapNative = slot => {
const native = utils.deepAccess(slot, 'mediaTypes.native');
const native = deepAccess(slot, 'mediaTypes.native');
let assets;
if (native) {
const nativeParams = Object.keys(native);
Expand All @@ -228,7 +228,7 @@ const mapNative = slot => {
}

var mapVideo = slot => {
var video = utils.deepAccess(slot, 'mediaTypes.video');
var video = deepAccess(slot, 'mediaTypes.video');
var videoParamsUsed = ['api', 'context', 'linearity', 'maxduration', 'mimes', 'protocols'];
var videoAssets;

Expand Down Expand Up @@ -347,13 +347,13 @@ const parseNative = nativeData => {
break;

default:
utils.logWarn('Unrecognized native asset', asset);
logWarn('Unrecognized native asset', asset);
}
});
result.clickUrl = nativeData.link.url;
result.impressionTrackers = nativeData.imptrackers;

if (utils.isArray(nativeData.jstracker)) {
if (isArray(nativeData.jstracker)) {
result.javascriptTrackers = nativeData.jstracker;
} else if (nativeData.jstracker) {
result.javascriptTrackers = [nativeData.jstracker];
Expand Down Expand Up @@ -572,7 +572,7 @@ const spec = {
bid.width = 1;
bid.height = 1;
} catch (err) {
utils.logWarn('Could not parse native data', serverBid.adm);
logWarn('Could not parse native data', serverBid.adm);
bid.cpm = 0;
}
} else {
Expand Down