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

Revert "Remove Adapter: Define Media" #3242

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Conversation

dennisjay
Copy link
Contributor

Dear PBS-Team,
at first sorry for the late reaction from our side. There were a lot of holidays and we just didn't see your messages on github.

In our repo I've reverted the commit, changed the email and made the pull request. Hope that was correct and that you can add us again soon.

Thanks.

err := json.Unmarshal(bid.Ext, &bidExt)
if err == nil && bidExt.Prebid != nil {
if (bidExt.Prebid.Type == openrtb_ext.BidTypeBanner) || (bidExt.Prebid.Type == openrtb_ext.BidTypeNative) {
return openrtb_ext.ParseBidType(string(bidExt.Prebid.Type))

Choose a reason for hiding this comment

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

Consider this as a suggestion. Prebid server expects the media type to be explicitly set in the adapter response. Therefore, recommends implementing a pattern where the adapter server sets the MType field in the response to accurately determine the media type for the impression.

@github-actions
Copy link

Code coverage summary

Note:

  • Prebid team doesn't anticipate tests covering code paths that might result in marshal and unmarshal errors
  • Coverage summary encompasses all commits leading up to the latest one, 7bde7e6

definemedia

Refer here for heat map coverage report

github.com/prebid/prebid-server/adapters/definemedia/definemedia.go:20:	Builder			100.0%
github.com/prebid/prebid-server/adapters/definemedia/definemedia.go:28:	MakeRequests		71.4%
github.com/prebid/prebid-server/adapters/definemedia/definemedia.go:46:	MakeBids		100.0%
github.com/prebid/prebid-server/adapters/definemedia/definemedia.go:92:	getMediaTypeForBid	87.5%
total:									(statements)		92.3%

@bsardo bsardo changed the title Request to add DEFINEMEDIA again Revert "Remove Adapter: Define Media" Oct 19, 2023
@SyntaxNode
Copy link
Contributor

Sent an email to the updates address for verification.

Copy link
Collaborator

@hhhjort hhhjort left a comment

Choose a reason for hiding this comment

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

LGTM

@SyntaxNode
Copy link
Contributor

Email confirmation received. We're all good here.

@SyntaxNode SyntaxNode merged commit 50ad642 into prebid:master Oct 19, 2023
5 checks passed
svamiftah pushed a commit to sovrn/prebid-server that referenced this pull request Nov 21, 2023
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.

4 participants