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

Connatix: Add viewability field #4168

Merged
merged 1 commit into from
Feb 11, 2025
Merged

Connatix: Add viewability field #4168

merged 1 commit into from
Feb 11, 2025

Conversation

monicaroxanabota
Copy link
Contributor

@monicaroxanabota monicaroxanabota commented Jan 20, 2025

Add ViewabilityPercentage for connatix adaptor

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, 4602a90

connatix

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:23:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:30:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:65:	MakeBids		95.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:105:	validateAndBuildImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:114:	splitRequests		93.1%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:170:	buildRequestImp		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:214:	buildDisplayManagerVer	88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:232:	getBidType		100.0%
total:									(statements)		96.1%

@monicaroxanabota monicaroxanabota changed the title Add viewability fields for connatix adaptor Connatix adapter: Add viewability fields Jan 20, 2025
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, 82d2961

connatix

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:23:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:30:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:65:	MakeBids		95.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:105:	validateAndBuildImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:114:	splitRequests		93.1%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:170:	buildRequestImp		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:213:	buildDisplayManagerVer	88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:231:	getBidType		100.0%
total:									(statements)		96.1%

@monicaroxanabota monicaroxanabota changed the title Connatix adapter: Add viewability fields Connatix adapter: Add viewability field Jan 20, 2025
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, abaaced

connatix

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:23:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:30:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:65:	MakeBids		95.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:105:	validateAndBuildImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:114:	splitRequests		93.1%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:170:	buildRequestImp		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:213:	buildDisplayManagerVer	88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:231:	getBidType		100.0%
total:									(statements)		96.1%

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, 216311a

connatix

Refer here for heat map coverage report

github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:23:	Builder			100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:30:	MakeRequests		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:65:	MakeBids		95.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:105:	validateAndBuildImpExt	100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:114:	splitRequests		93.1%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:170:	buildRequestImp		100.0%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:213:	buildDisplayManagerVer	88.9%
github.com/prebid/prebid-server/v3/adapters/connatix/connatix.go:231:	getBidType		100.0%
total:									(statements)		96.1%

@bsardo bsardo added the adapter label Jan 22, 2025
@bsardo bsardo changed the title Connatix adapter: Add viewability field Connatix: Add viewability field Jan 24, 2025
},
"viewabilityPercentage": {
"type": "number",
"description": "Declared viewability percentage (values from 0 to 1, where 1 = 100%)"
Copy link
Contributor

Choose a reason for hiding this comment

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

If viewabilityPercentage's value should range from 0 to 1, should we specify a minimum and a maximum?

12       "viewabilityPercentage": {
13         "type": "number",
14         "description": "Declared viewability percentage (values from 0 to 1, where 1 = 100%)"
   +       "minimum": 0,
   +       "maximum": 1
15       }
16     },
static/bidder-params/connatix.json

If not, is a validation inside adapters/connatix/connatix.go desired?

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 don’t want to enforce this because is handled on our side.

@@ -199,7 +199,8 @@ func buildRequestImp(imp *openrtb2.Imp, ext impExtIncoming, displayManagerVer st

impExt := impExt{
Connatix: impExtConnatix{
PlacementId: ext.Bidder.PlacementId,
PlacementId: ext.Bidder.PlacementId,
ViewabilityPercentage: ext.Bidder.ViewabilityPercentage,
Copy link
Contributor

Choose a reason for hiding this comment

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

If ViewabilityPercentage's value should range from 0 to 1, should we place a validation somewhere? If not in static/bidder-params/connatix.json, here just before assigning?

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 don’t want to enforce this because is handled on our side and should not block the request.

Copy link
Contributor

@guscarreon guscarreon left a comment

Choose a reason for hiding this comment

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

LGTM

@bsardo bsardo merged commit 8b7fe4f into prebid:master Feb 11, 2025
5 checks passed
scr-oath pushed a commit to scr-oath/prebid-server that referenced this pull request Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants