MGID Bid Adapter: migrate to ortbConverter#14761
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fb32c7898a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
7a1132b to
4ba9ca1
Compare
7c6b5c6 to
0099b73
Compare
Coverage Report for CI Build 24983980055Warning Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes. Coverage increased (+33.3%) to 96.414%Details
Uncovered Changes
Coverage Regressions39 previously-covered lines in 2 files lost coverage.
Coverage Stats💛 - Coveralls |
0099b73 to
e454930
Compare
a074cc0 to
51c0a28
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 51c0a28e10
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
7c4a7ae to
9b6dedb
Compare
|
@codexreview |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9b6dedbc80
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
9b6dedb to
1c29b3c
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1c29b3c4d4
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| @@ -135,10 +192,9 @@ export const spec = { | |||
| } | |||
| } | |||
| const acc = Number(bid.params.accountId); | |||
| } | ||
| // backward compat: params.bcat/badv/wlang used to be supported directly; ortb2 takes priority | ||
| if (!isArray(request.bcat) || request.bcat.length === 0) { | ||
| const bcat = setOnAny(context.bidRequests, 'params.bcat'); |
| | ---- | ----- | ---- | ----------- | ------- | ||
| | `accountId` | required | String | The account ID from Mgid | "123" | ||
| | `placementId` | required | String | The placement ID from Mgid | "123456" | ||
| | `accountId` | required | String | The account ID from Mgid | `123` |
There was a problem hiding this comment.
your adapter refers to params not documented here
There was a problem hiding this comment.
Could you specify which one?
There was a problem hiding this comment.
Should I write each one that is used from params(even if just for backward compatibility)? @patmmccann
There was a problem hiding this comment.
at least define types for them, you can mark as deprecated in the type declaration
There was a problem hiding this comment.
you can see what yandex has here https://github.com/prebid/Prebid.js/blob/master/modules/yandexBidAdapterTypes.d.ts
| if (!isNumber(deepAccess(request.device, 'pxratio'))) { | ||
| let topWindow; | ||
| try { topWindow = window.top; } catch (e) { topWindow = window; } | ||
| deepSetValue(request, 'device.pxratio', getDevicePixelRatio(topWindow)); |
1c29b3c to
6b66349
Compare
6b66349 to
2659ade
Compare
Type of change
Bugfix
Feature
New bidder adapter
Updated bidder adapter
Code style update (formatting, local variables)
Refactoring (no functional changes, no api changes)
Build related changes
CI related changes
Does this change affect user-facing APIs or examples documented on http://prebid.org?
Other
Description of change
Update MGID Bid Adapter to use PrebidJS OpenRTB Converter.
Other information
prebid/prebid.github.io#6535