Skip to content
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

Smaato Bid Adapter : add DOOH support #11801

Merged
merged 1 commit into from
Jun 15, 2024

Conversation

Enigo
Copy link
Contributor

@Enigo Enigo commented Jun 14, 2024

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

Adding DOOH support for Smaato adapter

Other information

request.site.content = content;
}
setPublisherId(request.site);
} else if (request.dooh) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This feels very fragile; I would reverse the conditional and always send a dooh request if a dooh object exists, instead of putting it in the else.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But there should be only one of app, site or dooh present in a request as per ortb specification

Copy link
Collaborator

Choose a reason for hiding this comment

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

Right, I am saying, right now you will always choose site if both site and dooh exist. Do you prefer to always choose DOOH in that scenario and jettison the site object?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We generally prefer site over dooh
I thought (might be confusing with prebid-server tho) that there's an internal check that prevents this kind of misconfiguration before it reaches the adapter code?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, I don't think there's any such check, but there might be one I'm unaware of

@ChrisHuie ChrisHuie changed the title Smaato: Add DOOH support Smaato Bid Adapter : add DOOH support Jun 14, 2024
@patmmccann patmmccann self-assigned this Jun 15, 2024
@patmmccann patmmccann merged commit 560ad53 into prebid:master Jun 15, 2024
5 checks passed
DecayConstant pushed a commit to mediavine/Prebid.js that referenced this pull request Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants