diff --git a/modules/appnexusBidAdapter.js b/modules/appnexusBidAdapter.js index f6a5e1d3eb9..9c98ccc0651 100644 --- a/modules/appnexusBidAdapter.js +++ b/modules/appnexusBidAdapter.js @@ -412,7 +412,7 @@ function hasPurpose1Consent(bidderRequest) { let result = true; if (bidderRequest && bidderRequest.gdprConsent) { if (bidderRequest.gdprConsent.gdprApplies && bidderRequest.gdprConsent.apiVersion === 2) { - result = !!(utils.deepAccess(bidderRequest.gdprConsent, `vendorData.vendor.consents.${GVLID}`)); + result = !!(utils.deepAccess(bidderRequest.gdprConsent, 'vendorData.purpose.consents.1') === true); } } return result; diff --git a/test/spec/modules/appnexusBidAdapter_spec.js b/test/spec/modules/appnexusBidAdapter_spec.js index 6febb8ecc9a..2a6a25752d9 100644 --- a/test/spec/modules/appnexusBidAdapter_spec.js +++ b/test/spec/modules/appnexusBidAdapter_spec.js @@ -788,9 +788,9 @@ describe('AppNexusAdapter', function () { gdprApplies: true, apiVersion: 2, vendorData: { - vendor: { + purpose: { consents: { - 32: false + 1: false } } }