From ca76b67379d97f9dc52b2b5faa2293bc310ca588 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 20 Dec 2021 11:06:54 +0100 Subject: [PATCH] Bliink Bid Adapter: Add support gdprApplies when consent string does not exist (#7860) * feat(adapter): Add bliink bid adapter * feat(tests): Add tests unit file * refactor: code optimisation and fix cookie sync * fix(bliinkAdapter): get meta value * update: Update documentation bliinkBidAdapter.md * update: Fix sizes in buildBid function * fix: step build * Revert "fix: step build" This reverts commit 9a746f5a175190ddd209f6f51bd71946a5575fe7. * fix: step build * fix: step build * fix: step build * fix: tests units * fix: js doc * fix: tests units * fix: Fix build Circle CI * fix: Fix build Circle CI * fix: Fix build Circle CI * fix: Fix build Circle CI * fix: Fix build Circle CI * fix: Fix build Circle CI * fix: Fix build Circle CI * fix: fix path when import registerBidder module * Update bliinkBidAdapter.js * fix: gdprApplies and consentString update * fix: test units gdprApplies and consentString Co-authored-by: Jonathan Co-authored-by: samuel.kerboeuf --- modules/bliinkBidAdapter.js | 3 ++- test/spec/modules/bliinkBidAdapter_spec.js | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/bliinkBidAdapter.js b/modules/bliinkBidAdapter.js index 366074efb13..45b6c46c2df 100644 --- a/modules/bliinkBidAdapter.js +++ b/modules/bliinkBidAdapter.js @@ -1,7 +1,6 @@ // eslint-disable-next-line prebid/validate-imports // eslint-disable-next-line prebid/validate-imports import {registerBidder} from '../src/adapters/bidderFactory.js' - export const BIDDER_CODE = 'bliink' export const BLIINK_ENDPOINT_ENGINE = 'https://engine.bliink.io/delivery' export const BLIINK_ENDPOINT_ENGINE_VAST = 'https://engine.bliink.io/vast' @@ -174,6 +173,8 @@ export const buildRequests = (_, bidderRequest) => { pageUrl: bidderRequest.refererInfo.referer, pageDescription: getMetaValue(META_DESCRIPTION), keywords: getKeywords().join(','), + gdpr: false, + gdpr_consent: '', pageTitle: document.title, } diff --git a/test/spec/modules/bliinkBidAdapter_spec.js b/test/spec/modules/bliinkBidAdapter_spec.js index 04a200d95a7..729605f7db8 100644 --- a/test/spec/modules/bliinkBidAdapter_spec.js +++ b/test/spec/modules/bliinkBidAdapter_spec.js @@ -477,6 +477,8 @@ const testsBuildRequests = [ refererInfo: getConfigBuildRequest('banner').refererInfo }, data: { + gdpr: false, + gdpr_consent: '', height: 250, width: 300, keywords: '',