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

New Adapter: pwbid #2657

Merged
merged 11 commits into from
Apr 3, 2023
Merged

New Adapter: pwbid #2657

merged 11 commits into from
Apr 3, 2023

Conversation

Rothalack
Copy link
Contributor

@Rothalack Rothalack commented Mar 20, 2023

Comment on lines +88 to +96
if impression.Banner != nil {
return openrtb_ext.BidTypeBanner, nil
}
if impression.Native != nil {
return openrtb_ext.BidTypeNative, nil
}
if impression.Video != nil {
return openrtb_ext.BidTypeVideo, nil
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Warning - If request has multi format bid, this code will by default set the bid type to Banner. Is that the intention here? Preferred way would be bidder server using MType field available in seatBid.Bid to determine media type

	// Attribute:
	//   mtype
	// Type:
	//   integer
	// Description:
	//   Type of the creative markup so that it can properly be
	//   associated with the right sub-object of the BidRequest.Imp.
	//   Values:
	//   1 = Banner
	//   2 = Video
	//   3 = Audio
	//   4 = Native
	MType MarkupType `json:"mtype,omitempty"`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with you on this, however I have not been able to find a working example of this. Do you know of an adapter that is accepting multi format bids?

Copy link
Contributor

Choose a reason for hiding this comment

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

The IX adapter uses mtype. There is some overhead currently required which will go away in the near future.

func getMediaTypeForBid(bid openrtb2.Bid, impMediaTypeReq map[string]openrtb_ext.BidType) (openrtb_ext.BidType, error) {

Several other adapters use custom fields in their response, such as AAX.

func getMediaTypeForImp(bid openrtb2.Bid, imps []openrtb2.Imp) (openrtb_ext.BidType, error) {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the examples! @SyntaxNode

Do you have a reference to where this mtype overhead is going to be addressed?

Where we're at now is, let's get this out in the current state, it should be sufficient for our needs and we can update this later. Especially if there's an update in the pipe to make this better.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay. But as fyi, multi-format bid won't be correctly supported by current state

Copy link
Contributor

@onkarvhanumante onkarvhanumante left a comment

Choose a reason for hiding this comment

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

few suggestions

@Sonali-More-Xandr Sonali-More-Xandr merged commit 6810d84 into prebid:master Apr 3, 2023
blueseasx pushed a commit to blueseasx/prebid-server that referenced this pull request Jun 2, 2023
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.

4 participants