Skip to content

Asterio Bid Adapter: Add native support#14929

Open
mihanikw2g wants to merge 1 commit into
prebid:masterfrom
asteriosoft:asterio-native-support
Open

Asterio Bid Adapter: Add native support#14929
mihanikw2g wants to merge 1 commit into
prebid:masterfrom
asteriosoft:asterio-native-support

Conversation

@mihanikw2g
Copy link
Copy Markdown
Contributor

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 Native as a supported media type for the Asterio bid adapter.

The adapter continues to use adUnitToken as the only required bidder parameter. Native bid responses from Asterio are mapped into Prebid native fields so publishers can render native assets using standard Prebid native rendering flows.

Documentation PR: prebid/prebid.github.io#6578

@github-actions
Copy link
Copy Markdown

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

  • src/utils.js (+8 errors)

Copy link
Copy Markdown

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

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: 669f6c14c4

ℹ️ 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 99 to 103
bidId: bidRequest.bidId,
adUnitToken: bidRequest.params.adUnitToken,
pos: getPosition(bidRequest),
sizes: prepareSizes(bidRequest.sizes)
sizes: prepareSizes(getSizes(bidRequest))
}));
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 Include native asset request in outbound bid payload

Native support is declared, but the outbound bid payload only includes bidId, adUnitToken, pos, and sizes; it never forwards the ad unit’s native asset request (mediaTypes.native / ORTB native assets). In ORTB-native setups with custom asset IDs or required assets, the bidder cannot reliably match requested assets, which can cause returned native bids to fail core native validation and be dropped before auction completion.

Useful? React with 👍 / 👎.

Comment on lines +246 to +247
} else if (asset.data?.value && (asset.data.type === 2 || !native.body)) {
native.body = asset.data.value;
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 Map only description data assets into native body

The body assignment currently falls back to the first data asset regardless of type via (asset.data.type === 2 || !native.body). If a non-description data asset (for example sponsored-by/type 1) appears first and no type-2 asset is present, native.body is populated with the wrong value, causing incorrect native content rendering.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant