Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions modules/adnimationBidAdapter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {BANNER, VIDEO} from '../src/mediaTypes.js';
import {getStorageManager} from '../src/storageManager.js';
import {
isBidRequestValid,
onBidWon,
createUserSyncGetter,
createBuildRequestsFn,
createInterpretResponseFn
} from '../libraries/vidazooUtils/bidderUtils.js';

const DEFAULT_SUB_DOMAIN = 'exchange';
const BIDDER_CODE = 'adnimation';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid registering adnimation while old alias still exists

This adapter registers code: 'adnimation', but modules/limelightDigitalBidAdapter.js already registers adnimation as an alias (line 87). Because registerBidder() adds aliases by calling registerBidAdapter() for the alias code, and registerBidAdapter() overwrites _bidderRegistry[bidderCode] without collision checks (src/adapters/bidderFactory.ts, src/adapterManager.ts), builds that include both modules will have order-dependent behavior (one adapter silently replaces the other). In the same scenario, the alias map can still resolve adnimation to limelightDigital, so privacy/activity resolution can target the wrong bidder.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

@anna-y-perion anna-y-perion Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lksharma
Related to the comment above, can I remove the alias of the Adnimation form the limelightDigital or there is other procedure? We have a contract with the Adnimation. We have requested their approval.
Perion Mail - Adnimation Prebid Adapter - now Operated by Vidazoo _ Perion.pdf

Can you please assist here and describe how we can start to manage their adapter?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go ahead and drop the alias in this pr

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. The alias was removed

const BIDDER_VERSION = '1.0.0';
export const storage = getStorageManager({bidderCode: BIDDER_CODE});

export function createDomain(subDomain = DEFAULT_SUB_DOMAIN) {
return `https://${subDomain}.adnimation.com`;
}

function createUniqueRequestData(hashUrl, bid) {
const {auctionId, transactionId} = bid;
return {
auctionId,
transactionId
};
}

const buildRequests = createBuildRequestsFn(createDomain, createUniqueRequestData, storage, BIDDER_CODE, BIDDER_VERSION, false);
const interpretResponse = createInterpretResponseFn(BIDDER_CODE, false);
const getUserSyncs = createUserSyncGetter({
iframeSyncUrl: 'https://sync.adnimation.com/api/sync/iframe',
imageSyncUrl: 'https://sync.adnimation.com/api/sync/image'
});

export const spec = {
code: BIDDER_CODE,
version: BIDDER_VERSION,
supportedMediaTypes: [BANNER, VIDEO],
isBidRequestValid,
buildRequests,
interpretResponse,
getUserSyncs,
onBidWon,
};

registerBidder(spec);
36 changes: 36 additions & 0 deletions modules/adnimationBidAdapter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Overview

**Module Name:** Adnimation Bidder Adapter

**Module Type:** Bidder Adapter

**Maintainer:** prebid@adnimation.com

# Description

Module that connects to Adnimation's demand sources.

# Test Parameters

```js
var adUnits = [
{
code: 'test-ad',
sizes: [[300, 250]],
bids: [
{
bidder: 'adnimation',
params: {
cId: '562524b21b1c1f08117667f9',
pId: '59ac17c192832d0016683fe3',
bidFloor: 0.0001,
ext: {
param1: 'loremipsum',
param2: 'dolorsitamet'
}
}
}
]
}
];
```
1 change: 0 additions & 1 deletion modules/limelightDigitalBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ export const spec = {
{ code: 'stellorMediaRtb' },
{ code: 'smootai' },
{ code: 'anzuExchange' },
{ code: 'adnimation' },
{ code: 'rtbdemand' },
{ code: 'altstar' },
{ code: 'vaayaMedia' },
Expand Down
Loading
Loading