From dfdf9123778371a11281d5e04de7046b502adc91 Mon Sep 17 00:00:00 2001 From: Aymeric Le Corre Date: Tue, 19 Mar 2024 18:45:25 +0100 Subject: [PATCH] New Bidder Adapter: Adlive Plus (#11176) * New Bidder adpater : Adlive Plus * remove adlive plus md file (alias) --- modules/luceadBidAdapter.js | 8 +++++--- modules/luceadBidAdapter.md | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/luceadBidAdapter.js b/modules/luceadBidAdapter.js index 299bd47a8e4..ab7f96c4e60 100644 --- a/modules/luceadBidAdapter.js +++ b/modules/luceadBidAdapter.js @@ -5,15 +5,17 @@ import {getUniqueIdentifierStr, logInfo, deepSetValue} from '../src/utils.js'; import {fetch} from '../src/ajax.js'; const bidderCode = 'lucead'; +const bidderName = 'Lucead'; let baseUrl = 'https://lucead.com'; let staticUrl = 'https://s.lucead.com'; let companionUrl = 'https://cdn.jsdelivr.net/gh/lucead/prebid-js-external-js-lucead@master/dist/prod.min.js'; let endpointUrl = 'https://prebid.lucead.com/go'; const defaultCurrency = 'EUR'; const defaultTtl = 500; +const aliases = ['adliveplus']; function isDevEnv() { - return location.hostname.endsWith('.ngrok-free.app') || location.href.startsWith('https://ayads.io/test'); + return location.hash.includes('prebid-dev') || location.href.startsWith('https://ayads.io/test'); } function isBidRequestValid(bidRequest) { @@ -21,7 +23,7 @@ function isBidRequestValid(bidRequest) { } export function log(msg, obj) { - logInfo('Lucead - ' + msg, obj); + logInfo(`${bidderName} - ${msg}`, obj); } function buildRequests(bidRequests, bidderRequest) { @@ -149,7 +151,7 @@ function onTimeout(timeoutData) { export const spec = { code: bidderCode, // gvlid: BIDDER_GVLID, - aliases: [], + aliases, isBidRequestValid, buildRequests, interpretResponse, diff --git a/modules/luceadBidAdapter.md b/modules/luceadBidAdapter.md index d12d081f0b7..953c911cd2b 100644 --- a/modules/luceadBidAdapter.md +++ b/modules/luceadBidAdapter.md @@ -18,9 +18,9 @@ const adUnits = [ sizes: [[300, 250]], bids: [ { - bidder: "lucead", + bidder: 'lucead', params: { - placementId: '1', + placementId: '2', } } ]