Skip to content

Commit

Permalink
New Bidder Adapter: Adlive Plus (prebid#11176)
Browse files Browse the repository at this point in the history
* New Bidder adpater : Adlive Plus

* remove adlive plus md file (alias)
  • Loading branch information
aymeric45 authored Mar 19, 2024
1 parent 48113b1 commit dfdf912
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions modules/luceadBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@ 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) {
return !!bidRequest?.params?.placementId;
}

export function log(msg, obj) {
logInfo('Lucead - ' + msg, obj);
logInfo(`${bidderName} - ${msg}`, obj);
}

function buildRequests(bidRequests, bidderRequest) {
Expand Down Expand Up @@ -149,7 +151,7 @@ function onTimeout(timeoutData) {
export const spec = {
code: bidderCode,
// gvlid: BIDDER_GVLID,
aliases: [],
aliases,
isBidRequestValid,
buildRequests,
interpretResponse,
Expand Down
4 changes: 2 additions & 2 deletions modules/luceadBidAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const adUnits = [
sizes: [[300, 250]],
bids: [
{
bidder: "lucead",
bidder: 'lucead',
params: {
placementId: '1',
placementId: '2',
}
}
]
Expand Down

0 comments on commit dfdf912

Please sign in to comment.