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

Equativ: SmartAdserver alias with update to use mtype #4045

Merged
merged 9 commits into from
Dec 10, 2024

Conversation

rneuplanche
Copy link
Contributor

In order to support correctly multi impression type bid request, we need to change the way we compute the BidType in the Equativ adapter

Copy link

github-actions bot commented Nov 8, 2024

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

smartadserver

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:25:	Builder				100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:33:	MakeRequests			85.4%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:123:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:161:	BuildEndpointURL		83.3%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:175:	getBidTypeFromMarkupType	83.3%
total:										(statements)			88.6%

Copy link

github-actions bot commented Nov 8, 2024

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, 437b9e1

smartadserver

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:25:	Builder				100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:33:	MakeRequests			85.4%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:123:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:161:	BuildEndpointURL		83.3%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:175:	getBidTypeFromMarkupType	83.3%
total:										(statements)			88.6%

Copy link

github-actions bot commented Nov 8, 2024

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, 6b13b58

smartadserver

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:25:	Builder				100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:33:	MakeRequests			85.4%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:123:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:161:	BuildEndpointURL		83.3%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:175:	getBidTypeFromMarkupType	83.3%
total:										(statements)			88.6%

@rneuplanche rneuplanche marked this pull request as ready for review November 8, 2024 19:45
Copy link

github-actions bot commented Nov 9, 2024

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

smartadserver

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:25:	Builder				100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:33:	MakeRequests			85.4%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:123:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:161:	BuildEndpointURL		83.3%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:175:	getBidTypeFromMarkupType	83.3%
total:										(statements)			88.6%

Copy link

@mdaddario-STR mdaddario-STR left a comment

Choose a reason for hiding this comment

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

Looks good. Does this take care of prebid server v2 and v3?

@rneuplanche
Copy link
Contributor Author

Looks good. Does this take care of prebid server v2 and v3?
@mdaddario-STR

Not sure if the Prebid team is still publishing updates on PBS V2 🤔

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

smartadserver

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:25:	Builder				100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:33:	MakeRequests			85.4%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:123:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:161:	BuildEndpointURL		83.3%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:175:	getBidTypeFromMarkupType	83.3%
total:										(statements)			88.6%

@mdaddario-STR
Copy link

👍

@rneuplanche
Copy link
Contributor Author

Hello @przemkaczmarek or @bsardo could we have a review on this ? I don't know the process on your end ?
Thanks in advance 🙏

Comment on lines 23 to 46

func TestGetBidTypeFromMarkupType_WhenBanner_ShouldReturnBanner(t *testing.T) {
mediaType := getBidTypeFromMarkupType(openrtb2.MarkupBanner)

assert.Equal(t, openrtb_ext.BidTypeBanner, mediaType)
}

func TestGetBidTypeFromMarkupType_WhenVideo_ShouldReturnVideo(t *testing.T) {
mediaType := getBidTypeFromMarkupType(openrtb2.MarkupVideo)

assert.Equal(t, openrtb_ext.BidTypeVideo, mediaType)
}

func TestGetBidTypeFromMarkupType_WhenAudio_ShouldReturnAudio(t *testing.T) {
mediaType := getBidTypeFromMarkupType(openrtb2.MarkupAudio)

assert.Equal(t, openrtb_ext.BidTypeAudio, mediaType)
}

func TestGetBidTypeFromMarkupType_WhenNative_ShouldReturnNative(t *testing.T) {
mediaType := getBidTypeFromMarkupType(openrtb2.MarkupNative)

assert.Equal(t, openrtb_ext.BidTypeNative, mediaType)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did You add those test?
correctly is to test this through jsons

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 removed it. It's indeed already tested by jsons

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

smartadserver

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:25:	Builder				100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:33:	MakeRequests			85.4%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:123:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:161:	BuildEndpointURL		83.3%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:175:	getBidTypeFromMarkupType	66.7%
total:										(statements)			87.1%

@przemkaczmarek przemkaczmarek self-requested a review November 26, 2024 10:50
przemkaczmarek
przemkaczmarek previously approved these changes Nov 26, 2024
@rneuplanche
Copy link
Contributor Author

Hello @SyntaxNode or @bsardo is it possible to have a second review on this please 🙏

Copy link
Collaborator

@bsardo bsardo left a comment

Choose a reason for hiding this comment

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

Hi @rneuplanche, is this a rebranding? I see that you're adding Equativ as an alias of smartadserver. Are you planning to transition your customers from smartadserver to equativ including asking them to use the equativ bidder code? I see that the support email address for smartadserver has been an equativ domain email address for over a year so it appears there has been a relationship here for quite some time.

site:
mediaTypes:
- banner
- video
- native
- audio
multiformatSupport: "will-bid-on-any"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove as this is not a supported YAML field in PBS-Go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a way to mention that we support multi format in the doc ? And is there an official documentation on supported fields ? I couldn't found it

Copy link
Collaborator

Choose a reason for hiding this comment

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

You can declare multi format support in the docs. See how other bidders have done it: https://github.com/search?q=repo%3Aprebid%2Fprebid.github.io%20multiformat_supported&type=code

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this test be named multi-format-multi-imp-type.json? Your imps are both banner and video.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed 👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

Given that multi-banner-multi-imp-types.json actually contains imps that are of both banner and video, do you need this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, I changed it for a native/audio test as audio was not well covered

Copy link

github-actions bot commented Dec 5, 2024

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, 46055f4

smartadserver

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:25:	Builder				100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:33:	MakeRequests			85.4%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:123:	MakeBids			100.0%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:161:	BuildEndpointURL		83.3%
github.com/prebid/prebid-server/v3/adapters/smartadserver/smartadserver.go:175:	getBidTypeFromMarkupType	83.3%
total:										(statements)			88.6%

@rneuplanche
Copy link
Contributor Author

Hello @bsardo, it has been nearly two years since we rebranded from Smartadserver to Equativ. While our company remains unchanged, we are actively working to phase out references to our previous name. As part of this effort, we have introduced Equativ as an alias for Smartadserver, marking the first step in a gradual migration process aimed at aligning all of our branding and communications with our new identity.

@bsardo bsardo changed the title Equativ: Update bid type computation with Markup type Equativ: SmartAdserver alias with update to use mtype Dec 6, 2024
@rneuplanche
Copy link
Contributor Author

Thanks for your approvals @przemkaczmarek & @bsardo 🙏
I'm not allowed to merge anyway. Could you please merge it for me ?

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