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

PubMatic: Support hardcoded alias #3224

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

pm-nilesh-chate
Copy link
Contributor

No description provided.

@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, ff5b822

pubmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:81:	MakeRequests				93.4%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:185:	validateAdSlot				91.3%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:228:	assignBannerSize			100.0%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:236:	assignBannerWidthAndHeight		100.0%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:244:	parseImpressionObject			91.3%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:331:	extractPubmaticExtFromRequest		96.7%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:383:	getAlternateBidderCodesFromRequestExt	100.0%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:401:	addKeywordsToExt			85.7%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:415:	MakeBids				90.7%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:497:	getNativeAdm				90.9%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:519:	getMapFromJSON				100.0%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:531:	populateFirstPartyDataImpAttributes	100.0%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:544:	populateAdUnitKey			100.0%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:559:	populateDctrKey				85.0%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:609:	getStringArray				100.0%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:622:	getBidType				100.0%
github.com/prebid/prebid-server/adapters/pubmatic/pubmatic.go:642:	Builder					100.0%
total:									(statements)				93.1%

@@ -640,7 +641,8 @@ func getBidType(bidExt *pubmaticBidExt) openrtb_ext.BidType {
// Builder builds a new instance of the Pubmatic adapter for the given bidder with the given config.
func Builder(bidderName openrtb_ext.BidderName, config config.Adapter, server config.Server) (adapters.Bidder, error) {
bidder := &PubmaticAdapter{
URI: config.Endpoint,
URI: config.Endpoint,
bidderName: string(bidderName),
Copy link
Contributor

Choose a reason for hiding this comment

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

@pm-nilesh-chate , can you add some description about how bidderName is planned to be used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for distinguishing between bidder and adapter name within the Fledge auction object, where hardcore aliases are used for PubMatic bidder which is part of PBS-Core. These changes related to PBS-Core appear straightforward. If you believe adding a comment would be beneficial, I'll include it in the next upcoming PR, which is also related to this.

@onkarvhanumante
Copy link
Contributor

@pm-nilesh-chate prebid server had major release 2.0

requesting to update pm-nilesh-chate:master with latest prebid master

@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, c9273be

pubmatic

Refer here for heat map coverage report

github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:81:	MakeRequests				93.4%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:185:	validateAdSlot				91.3%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:228:	assignBannerSize			100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:236:	assignBannerWidthAndHeight		100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:244:	parseImpressionObject			91.3%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:331:	extractPubmaticExtFromRequest		96.7%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:383:	getAlternateBidderCodesFromRequestExt	100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:401:	addKeywordsToExt			85.7%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:415:	MakeBids				90.7%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:497:	getNativeAdm				90.9%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:519:	getMapFromJSON				100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:531:	populateFirstPartyDataImpAttributes	100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:544:	populateAdUnitKey			100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:559:	populateDctrKey				85.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:609:	getStringArray				100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:622:	getBidType				100.0%
github.com/prebid/prebid-server/v2/adapters/pubmatic/pubmatic.go:642:	Builder					100.0%
total:									(statements)				93.1%

@pm-nilesh-chate
Copy link
Contributor Author

@pm-nilesh-chate prebid server had major release 2.0

requesting to update pm-nilesh-chate:master with latest prebid master

done

@pm-nilesh-chate
Copy link
Contributor Author

@onkarvhanumante please review and merge this

@bsardo bsardo changed the title pubmatic: support hardcode alias PubMatic: Support hardcoded alias Nov 16, 2023
@bsardo bsardo merged commit 832fbf2 into prebid:master Nov 16, 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants