Skip to content

New Adapter: MediaGo Technology LLC Bid Adapter#4842

Open
BaronJHYu wants to merge 4 commits into
prebid:masterfrom
BaronJHYu:master
Open

New Adapter: MediaGo Technology LLC Bid Adapter#4842
BaronJHYu wants to merge 4 commits into
prebid:masterfrom
BaronJHYu:master

Conversation

@BaronJHYu

Copy link
Copy Markdown

New Adapter: MediaGo Technology LLC Bid Adapter

Comment thread adapters/mgtechnology/mgtechnology.go Outdated
default:
for _, imp := range imps {
if imp.ID == bid.ImpID {
if imp.Banner != nil {

Copy link
Copy Markdown

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. The current implementation follows an anti-pattern, assumes that if there is a multi-format request, the media type defaults to openrtb_ext.BidTypeBanner, nil. Prebid server expects the media type to be explicitly set in the adapter response. Therefore, we strongly recommend implementing a pattern where the adapter server sets the MType field in the response to accurately determine the media type for the impression.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We do not support the inclusion of both native and banner ads simultaneously
And we give priority to supporting banner

Comment thread adapters/mgtechnology/mgtechnology.go Outdated
if imp.Banner != nil {
return openrtb_ext.BidTypeBanner, nil
}
if imp.Native != nil {

Copy link
Copy Markdown

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. The current implementation follows an anti-pattern, assumes that if there is a multi-format request, the media type defaults to openrtb_ext.BidTypeNative, nil. Prebid server expects the media type to be explicitly set in the adapter response. Therefore, we strongly recommend implementing a pattern where the adapter server sets the MType field in the response to accurately determine the media type for the impression.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We do not support the inclusion of both native and banner ads simultaneously
And we give priority to supporting banner

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

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, b7f3f20

mediagoTechnology

Refer here for heat map coverage report

github.com/prebid/prebid-server/v4/adapters/mediagoTechnology/mediagoTechnology.go:29:	Builder			100.0%
github.com/prebid/prebid-server/v4/adapters/mediagoTechnology/mediagoTechnology.go:40:	MakeRequests		100.0%
github.com/prebid/prebid-server/v4/adapters/mediagoTechnology/mediagoTechnology.go:53:	makeRequest		86.7%
github.com/prebid/prebid-server/v4/adapters/mediagoTechnology/mediagoTechnology.go:85:	getMediaGoTechnologyExt	95.2%
github.com/prebid/prebid-server/v4/adapters/mediagoTechnology/mediagoTechnology.go:119:	getRegionInfo		100.0%
github.com/prebid/prebid-server/v4/adapters/mediagoTechnology/mediagoTechnology.go:132:	getEndPoint		100.0%
github.com/prebid/prebid-server/v4/adapters/mediagoTechnology/mediagoTechnology.go:140:	preProcess		100.0%
github.com/prebid/prebid-server/v4/adapters/mediagoTechnology/mediagoTechnology.go:154:	MakeBids		100.0%
github.com/prebid/prebid-server/v4/adapters/mediagoTechnology/mediagoTechnology.go:187:	getBidType		100.0%
total:											(statements)		96.6%

@BaronJHYu

Copy link
Copy Markdown
Author

I modified the way of adding the adapter to use an alias. Thank you very much for helping me with the cr

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