Skip to content

Appnerve Bid Adapter - #15254

Open
appnerve wants to merge 7 commits into
prebid:masterfrom
appnerve:master
Open

Appnerve Bid Adapter#15254
appnerve wants to merge 7 commits into
prebid:masterfrom
appnerve:master

Conversation

@appnerve

@appnerve appnerve commented Jun 26, 2026

Copy link
Copy Markdown

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

Description of change

Adds the Appnerve bid adapter for Prebid.js.

Maintainer contact:

prebid@appnerve.com

// Banner
{
bidder: 'appnerve',
params: {
sourceId: '74000976'
}
}

// Video
{
bidder: 'appnerve',
params: {
sourceId: '76669556'
}
}

// Native
{
bidder: 'appnerve',
params: {
sourceId: '58684344'
}
}

Supported media types: banner(300x250), video, native(128x128 icon, 1200x627), audio

Related documentation PR: prebid/prebid.github.io#6645

Tests run:
gulp build --modules=appnerveBidAdapter
gulp test --file "test/spec/modules/appnerveBidAdapter_spec.js"
gulp lint --file "modules/appnerveBidAdapter.ts"

Adds:
modules/appnerveBidAdapter.ts
modules/appnerveBidAdapter.md
test/spec/modules/appnerveBidAdapter_spec.js

Related docs PR: prebid/prebid.github.io#6645

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bbf461d95b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +45 to +49
const imp: any = {
id: bid.bidId,
tagid: sourceId(bid),
secure: 1,
ext: {tid: bid.transactionId, prebid: {storedrequest: {id: sourceId(bid)}}}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve ortb2Imp when building impressions

For ad units with ortb2Imp values such as GPID/adserver data, instl, or publisher/prebid ext.tid, this builds a fresh OpenRTB impression and writes ext.tid from the legacy bid.transactionId, so those impression fields are dropped or overridden before the request is sent. Prebid carries the authoritative impression TID on bid.ortb2Imp.ext.tid, including publisher-supplied TIDs, so Appnerve can receive the wrong TID and miss GPID/FPD in those auctions; merge bid.ortb2Imp into imp and layer adapter-specific ext fields on top.

Useful? React with 👍 / 👎.

delete video.playerSize;
imp.video = video;
}
if (bid.mediaTypes?.native) imp.native = {request: JSON.stringify(nativeRequest(bid.mediaTypes.native)), ver: '1.2'};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Use ORTB native requests for native impressions

When a publisher configures native with mediaTypes.native.ortb (or the nativeOrtbRequest derived by Prebid), this passes the wrapper object into nativeRequest(), which only reads legacy keys like title and image; ORTB-only native requests therefore serialize with an empty assets array and lose the required native asset definitions. Use bid.nativeOrtbRequest/bid.mediaTypes.native.ortb directly, or convert ORTB requests before building the impression.

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown

Tread carefully! This PR adds 279 linter errors (possibly disabled through directives):

  • modules/appnerveBidAdapter.ts (+76 errors)
  • test/spec/modules/appnerveBidAdapter_spec.js (+203 errors)

@github-actions

Copy link
Copy Markdown

This PR includes an adapter whose code does not match its file name. Bid adapter modules should be named <bidderCode>BidAdapter, userId <userIdCode>IdSystem, RTD <rtdCode>RtdProvider, and analytics <analyticsCode>AnalyticsAdapter.

@github-actions

Copy link
Copy Markdown

Tread carefully! This PR adds 279 linter errors (possibly disabled through directives):

  • modules/appnerveBidAdapter.ts (+76 errors)
  • test/spec/modules/appnerveBidAdapter_spec.js (+203 errors)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants