-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Serverbid alias #1560
Serverbid alias #1560
Conversation
params.bids.length && | ||
CONFIG[params.bidderCode]) { | ||
const config = CONFIG[params.bidderCode]; | ||
config.request = window[params.bidderCode.toUpperCase() + '_CONFIG']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jgrimes What is the purpose of adding this line. This will be set to undefined, i guess your library will set window[params.bidderCode.toUpperCase() + '_CONFIG'];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaiminpanchal27 It is to allow people using our adapter (or aliases) to add arbitrary additional configuration/information on the requests being made to us.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
modules/serverbidBidAdapter.js
Outdated
adaptermanager.registerBidAdapter(new ServerBidAdapter(), 'serverbid'); | ||
adaptermanager.aliasBidAdapter('serverbid', 'connectad'); | ||
adaptermanager.aliasBidAdapter('serverbid', 'oft-media'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oftmedia
is already a bid adapter alias of AppNexus. Should that be removed? It's confusing.
@jgrimes |
8db768c
to
1ece02d
Compare
- Add 3 new ad sizes. - Create connectad alias. - Refactor to support whitelabel URLs by alias. - Add support for window.<ADAPTER>_CONFIG object for request level params.
1ece02d
to
ed01ff4
Compare
@mkendall07 we've removed the |
…built * 'master' of https://github.com/prebid/Prebid.js: (46 commits) Serverbid alias (prebid#1560) Add user sync to process for approving adapter PRs (prebid#1457) fix travis build (prebid#1595) Rubicon project improvement/user sync (prebid#1549) Adding Orbitsoft adapter (prebid#1378) Fix renderer test for new validation rule (prebid#1592) Allow SET_TARGETING to be used in AnalyticsAdapter (prebid#1577) Add support for video stream context (prebid#1483) Invalidate bid if matching bid request not found (prebid#1575) allow adapters to set default adserverTargeting for specific bid (prebid#1568) Custom granularity precision should honor 0 if it is passed in closes prebid#1479 (prebid#1591) BaseAdapter for the Prebid 0.x -> 1.x transition (prebid#1494) Add a version to the Criteo adapter (prebid#1573) Allow bundling from node.js or with new gulp task bundle-to-stdout (prebid#1570) Add url.parse option to not decode the whole URL (prebid#1480) Tremor Video Bid Adapter (prebid#1552) Yieldmo bid adapter (prebid#1415) Switch `gulp docs` to build its output using documentation.js (prebid#1545) Increment pre version Prebid 0.28.0 Release ...
* Connectad alias, request-level configuration, new ad sizes - Add 3 new ad sizes. - Create connectad alias. - Refactor to support whitelabel URLs by alias. - Add support for window.<ADAPTER>_CONFIG object for request level params. * Add oft-media alias for serverbid * serverbidBidAdapter:Fixed formatting issues * Serverbid: Updated smartsync urls, removed oft-media alias
* tag '0.29.0' of https://github.com/prebid/Prebid.js: (29 commits) Prebid 0.29.0 Release Fix for not syncing bidders. (prebid#1598) fix amp example pages (prebid#1597) closes prebid#1298 (prebid#1583) Fixed the broken tests. (prebid#1602) Rubicon Bidder Factory (prebid#1587) Trustx adapter (prebid#1488) Add nurl to markup (prebid#1601) Pass bidRequest to createBid (prebid#1600) Add Kumma adapter (prebid#1512) Serverbid alias (prebid#1560) Add user sync to process for approving adapter PRs (prebid#1457) fix travis build (prebid#1595) Rubicon project improvement/user sync (prebid#1549) Adding Orbitsoft adapter (prebid#1378) Fix renderer test for new validation rule (prebid#1592) Allow SET_TARGETING to be used in AnalyticsAdapter (prebid#1577) Add support for video stream context (prebid#1483) Invalidate bid if matching bid request not found (prebid#1575) allow adapters to set default adserverTargeting for specific bid (prebid#1568) ...
* Connectad alias, request-level configuration, new ad sizes - Add 3 new ad sizes. - Create connectad alias. - Refactor to support whitelabel URLs by alias. - Add support for window.<ADAPTER>_CONFIG object for request level params. * Add oft-media alias for serverbid * serverbidBidAdapter:Fixed formatting issues * Serverbid: Updated smartsync urls, removed oft-media alias
Type of change
Description of change
Added extra configuration for Serverbid adapter and two adapter alises,
connectad
andoft-media
.