diff --git a/modules/appnexusBidAdapter.js b/modules/appnexusBidAdapter.js index f65a3409684..aaec207dc1e 100644 --- a/modules/appnexusBidAdapter.js +++ b/modules/appnexusBidAdapter.js @@ -11,7 +11,6 @@ const VIDEO_TARGETING = ['id', 'mimes', 'minduration', 'maxduration', 'startdelay', 'skippable', 'playback_method', 'frameworks']; const USER_PARAMS = ['age', 'external_uid', 'segments', 'gender', 'dnt', 'language']; const APP_DEVICE_PARAMS = ['geo', 'device_id']; // appid is collected separately -const DEBUG_PARAMS = ['enabled', 'dongle', 'member_id', 'debug_timeout']; const NATIVE_MAPPING = { body: 'description', cta: 'ctatext', @@ -78,32 +77,6 @@ export const spec = { }; } - let debugObj = {}; - let debugObjParams = {}; - const debugCookieName = 'apn_prebid_debug'; - const debugCookie = getCookie(debugCookieName) || null; - - if (debugCookie) { - try { - debugObj = JSON.parse(debugCookie); - } catch (e) { - utils.logError('AppNexus Debug Auction Cookie Error:\n\n' + e); - } - } else { - const debugBidRequest = find(bidRequests, hasDebug); - if (debugBidRequest && debugBidRequest.debug) { - debugObj = debugBidRequest.debug; - } - } - - if (debugObj && debugObj.enabled) { - Object.keys(debugObj) - .filter(param => includes(DEBUG_PARAMS, param)) - .forEach(param => { - debugObjParams[param] = debugObj[param]; - }); - } - const memberIdBid = find(bidRequests, hasMemberId); const member = memberIdBid ? parseInt(memberIdBid.params.member, 10) : 0; @@ -126,11 +99,6 @@ export const spec = { payload.app = appIdObj; } - if (debugObjParams.enabled) { - payload.debug = debugObjParams; - utils.logInfo('AppNexus Debug Auction Settings:\n\n' + JSON.stringify(debugObjParams, null, 4)); - } - if (bidderRequest && bidderRequest.gdprConsent) { // note - objects for impbus use underscore instead of camelCase payload.gdpr_consent = { @@ -186,22 +154,6 @@ export const spec = { } }); } - - if (serverResponse.debug && serverResponse.debug.debug_info) { - let debugHeader = 'AppNexus Debug Auction for Prebid\n\n'; - let debugText = debugHeader + serverResponse.debug.debug_info; - debugText = debugText - .replace(/(