Skip to content
Open
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
79 changes: 79 additions & 0 deletions modules/nativeagentsBidAdapter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Overview

```
Module Name: Native Agents Bidder Adapter
Module Type: Native Agents Bidder Adapter
Maintainer: prebid@nativeagents.ai
```

# Description

Connects to Native Agents exchange for bids.
Native Agents bid adapter supports Banner, Video (instream and outstream) and Native.

# Test Parameters
```
var adUnits = [
// Will return static test banner
{
code: 'adunit1',
mediaTypes: {
banner: {
sizes: [ [300, 250], [320, 50] ],
}
},
bids: [
{
bidder: 'nativeagents',
params: {
placementId: 'testBanner',
}
}
]
},
{
code: 'addunit2',
mediaTypes: {
video: {
playerSize: [ [640, 480] ],
context: 'instream',
minduration: 5,
maxduration: 60,
}
},
bids: [
{
bidder: 'nativeagents',
params: {
placementId: 'testVideo',
}
}
]
},
{
code: 'addunit3',
mediaTypes: {
native: {
title: {
required: true
},
body: {
required: true
},
icon: {
required: true,
size: [64, 64]
}
}
},
bids: [
{
bidder: 'nativeagents',
params: {
placementId: 'testNative',
}
}
]
}
];
```
31 changes: 31 additions & 0 deletions modules/nativeagentsBidAdapter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { BidderSpec, registerBidder } from '../src/adapters/bidderFactory.js';
import { BANNER, NATIVE, VIDEO } from '../src/mediaTypes.js';
import {
isBidRequestValid,
buildRequests,
interpretResponse,
getUserSyncs,
type TeqBlazeBidParams
} from '../libraries/teqblazeUtils/bidderUtils.ts';

const BIDDER_CODE = 'nativeagents';
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 Use a unique six-character bidder prefix

This introduces BIDDER_CODE = 'nativeagents', which collides on the first six characters (native) with the existing nativery bidder code. The bid-adapter review checklist in PR_REVIEW.md explicitly requires first-6-character uniqueness, so this will fail required adapter conventions and block acceptance unless the bidder code is renamed to a unique prefix.

Useful? React with 👍 / 👎.

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.

Perhaps ntvagents?

const AD_URL = 'https://endpoint1.nativeagents.ai/pbjs';
const SYNC_URL = 'https://sync.nativeagents.ai';

declare module '../src/adUnits' {
interface BidderParams {
[BIDDER_CODE]: TeqBlazeBidParams;
}
}

export const spec: BidderSpec<typeof BIDDER_CODE> = {
code: BIDDER_CODE,
supportedMediaTypes: [BANNER, VIDEO, NATIVE],

isBidRequestValid: isBidRequestValid(),
Comment thread
patmmccann marked this conversation as resolved.
buildRequests: buildRequests(AD_URL),
interpretResponse,
getUserSyncs: getUserSyncs(SYNC_URL)
};

registerBidder(spec);
Loading
Loading