-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Konduit Accelerate module with 'send all bids' support (#5247)
* Adding Konduit module * Removed superfluous arguments passed to obtainVastUrl function * Removed superfluous arguments passed to obtainVastUrl function. * Build trigger (empty commit) * Module documentation updated according to the comments * Logic in obtainVastUrl function updated according to the review comment. * Removed hook, enabled eslint * Merged recent prebid changes * New method is introduced to process a bid and return dynamic CPM data * New Konduit Analytics adapter responsible for client auction stats collection * Updated konduit analytics adapter .md file * Fixed linter issue with more than 1 blank line used * Use '$prebid.version$' instead of the $$PREBID_GLOBAL$$.version * Updated unit tests * Enable "Send all bids" support * Updated konduitWrapper.md file * Updated links in konduitWrapper.md * Updated spec file (unit tests) * Added Konduit Prebid module version Co-authored-by: Max Shevchenko <[email protected]> Co-authored-by: Alexander Kislitsyn <[email protected]>
- Loading branch information
1 parent
461fea9
commit acdece8
Showing
4 changed files
with
248 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,26 +34,40 @@ pbjs.setConfig({ | |
}); | ||
``` | ||
|
||
Please contact [email protected] for assistance. | ||
Konduit module respects the Prebid `enableSendAllBids` flag and supports both ‘Send All Bids’ and ‘Use only a winner bid’ scenarios. | ||
|
||
Please contact [email protected] for assistance. | ||
|
||
## GAM related configuration | ||
|
||
It is important to configure your GAM line items. | ||
Please contact [email protected] for assistance. | ||
|
||
In most cases it would require only Creative VAST URL update with the following URL: | ||
|
||
Konduit platform supports ‘Send all bids’ scenario and depending on whether this feature is used or not GAM configuration could be slightly different. | ||
|
||
- Send all bids is off (a single winner bid is used) | ||
GAM line item creative URL should be updated as: | ||
``` | ||
https://p.konduit.me/api/vastProxy?konduit_hb=1&konduit_hb_awarded=1&konduit_cache_key=%%PATTERN:k_cache_key%%&konduit_id=%%PATTERN:k_id%% | ||
``` | ||
|
||
- Send all bids is on | ||
GAM line item creative URL should be updated as: | ||
``` | ||
https://p.konduit.me/api/vastProxy?konduit_hb=1&konduit_hb_awarded=1&konduit_cache_key=%%PATTERN:konduit_cache_key%%&konduit_id=%%PATTERN:konduit_id%% | ||
https://p.konduit.me/api/vastProxy?konduit_hb=1&konduit_hb_awarded=1&konduit_cache_key=%%PATTERN:k_cache_key_BIDDERCODE%%&konduit_id=%%PATTERN:k_id%% | ||
``` | ||
|
||
k_cache_key_BIDDERCODE is a bidder specific macro and ‘BIDDERCODE’ should be replaced with a bidder code. For instance, k_cache_key_appnexus. | ||
|
||
# Usage | ||
|
||
Konduit module contains a single function that accepts an `options` parameter. | ||
|
||
The `options` parameter can include: | ||
* `bid` - prebid object with VAST url that should be cached (if not passed first winning bid from `auctionManager.getWinningBids()` will be used) | ||
* `bids` - array of prebid objects with VAST url that should be cached (if not passed and `enableSendAllBids: true` bids from `auctionManager.getBidsReceived()` will be used) | ||
* `adUnitCode` - adUnitCode where a winner bid can be found | ||
* `timeout` - max time to wait for Konduit response with cache key and kCpm data | ||
* `callback` - callback function is called once Konduit cache data for the bid. Arguments of this function are - `error` and `bids` (error should be `null` if Konduit request is successful) | ||
|
@@ -65,7 +79,7 @@ The function adds two parameters into the passed bid - kCpm and konduitCacheKey. | |
pbjs.requestBids({ | ||
bidsBackHandler: function (bids) { | ||
pbjs.adServers.konduit.processBids({ | ||
callback: function (error, bids) { | ||
callback: function (error, processedBids) { | ||
var videoUrl = pbjs.adServers.dfp.buildVideoUrl({ | ||
... | ||
}); | ||
|
Oops, something went wrong.