Skip to content

RobustApps BId Adapter: initial release #13572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 14, 2025
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
10 changes: 6 additions & 4 deletions libraries/xeUtils/bidderUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ export function getBidFloor(bid, currency = 'USD') {
return null;
}

export function isBidRequestValid(bid) {
export function isBidRequestValid(bid, requiredParams = ['pid', 'env']) {
if (bid && typeof bid.params !== 'object') {
logError('Params is not defined or is incorrect in the bidder settings');
return false;
}

if (!getBidIdParameter('env', bid.params) || !getBidIdParameter('pid', bid.params)) {
logError('Env or pid is not present in bidder params');
return false;
for (const param of requiredParams) {
if (!getBidIdParameter(param, bid.params)) {
logError(`Required param "${param}" is missing in bidder params`);
return false;
}
}

if (deepAccess(bid, 'mediaTypes.video') && !isArray(deepAccess(bid, 'mediaTypes.video.playerSize'))) {
Expand Down
17 changes: 17 additions & 0 deletions modules/robustAppsBidAdapter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import {BANNER, VIDEO} from '../src/mediaTypes.js';
import {registerBidder} from '../src/adapters/bidderFactory.js';
import {buildRequests, getUserSyncs, interpretResponse, isBidRequestValid} from '../libraries/xeUtils/bidderUtils.js';

const BIDDER_CODE = 'robustApps';
const ENDPOINT = 'https://pbjs.rbstsystems.live';

export const spec = {
code: BIDDER_CODE,
supportedMediaTypes: [BANNER, VIDEO],
isBidRequestValid: bid => isBidRequestValid(bid, ['pid']),
buildRequests: (validBidRequests, bidderRequest) => buildRequests(validBidRequests, bidderRequest, ENDPOINT),
interpretResponse,
getUserSyncs
}

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

```
Module Name: RobustApps Bidder Adapter
Module Type: RobustApps Bidder Adapter
Maintainer: [email protected]
```

# Description

Module that connects to rbstsystems.live demand sources

# Test Parameters
```
var adUnits = [
{
code: 'test-banner',
mediaTypes: {
banner: {
sizes: [[300, 250]],
}
},
bids: [
{
bidder: 'robustApps',
params: {
env: 'robustApps',
pid: 'aa8217e20131c095fe9dba67981040b0',
ext: {}
}
}
]
},
{
code: 'test-video',
sizes: [ [ 640, 480 ] ],
mediaTypes: {
video: {
playerSize: [640, 480],
context: 'instream',
skipppable: true
}
},
bids: [{
bidder: 'robustApps',
params: {
env: 'robustApps',
pid: 'aa8217e20131c095fe9dba67981040b0',
ext: {}
}
}]
}
];
```
Loading