Pubgears Header Bidding Adapter#953
Conversation
|
Is it possible to implement without using additional scripts? |
protonate
left a comment
There was a problem hiding this comment.
Please see if you can remove additional scripts downloaded by the adapter.
|
Try rebasing onto current master branch, or if you prefer it may be easier to start with a new branch cut from current master branch and reintroduce your changes there. |
|
@Walexander looks like this needs to be rebased off master. |
|
The rebase has been completed. Apologies for the delay. |
|
It would be difficult to implement this without loading our external library. The adapter is built around receiving events from the script element itself. The code that publishes these events is implemented in the external library. |
src/adapters/pubgears.js
Outdated
There was a problem hiding this comment.
please remove all these extra new lines.
src/adapters/pubgears.js
Outdated
There was a problem hiding this comment.
Please use the standard adLoader.loadScript instead
There was a problem hiding this comment.
We use the script element to obtain the bid response data from our API. The adLoader.loadScript does not provide the element either via its return value or callback.
There was a problem hiding this comment.
@Walexander can you give an example? That seems like a strange pattern to me.
There was a problem hiding this comment.
Our API uses DOM events instead of method calls. The adapter registers event listeners with the script element here
src/adapters/pubgears.js
Outdated
There was a problem hiding this comment.
You can use utils.replaceTokenInString for this functionality or a string template.
There was a problem hiding this comment.
Thanks for the suggestion. This has been done.
also add unit test to insure tokens in creative template are expanded correctly
|
@Walexander thanks for the updates. It looks like your adapter is adding 2 bid responses using the test params. See screenshot here: You should only add a Also - it doesn't appear that |
test/spec/adapters/pubgears_spec.js
Outdated
| expect(bidmanager.addBidResponse.calledOnce).to.be.ok | ||
| }) | ||
|
|
||
| it('should not completely fucking fail', () => { |
|
LGTM |
|
A note here that the use of |
…built * 'master' of https://github.com/prebid/Prebid.js: (21 commits) add lodash as dependency (prebid#1174) fix size mapping for s2s (prebid#1175) Improve footer styling (prebid#1171) Bugfix: internal bids requested overwritten (prebid#1173) pre-release version bump Prebid 0.23.0 Release Yieldbot adapter - multiple requestBids per pageview (prebid#1146) Widespace adapter validate size fix (prebid#1140) Audience Network: bid when at least one valid slot size (prebid#1148) Quantcast adaptor (prebid#1063) AOL Adapter - ONE Mobile endpoint implemented. (prebid#1115) Prebid Server to Server (prebid#1165) Pubgears Header Bidding Adapter (prebid#953) remove old adloader#trackPixel (prebid#1159) added audit beacon to detect misuse of this bidder. Detects auctions… (prebid#1134) Bidfluence CDN endpoint URL update (prebid#1163) AdSupply adapter (prebid#1162) Sonobi Adapter - Enable size overrides (prebid#1141) Added an editorconfig file to match jshint and jssrc files. (prebid#1147) force cpm to be a number (prebid#1161) ...
* IDNT-928: Email hash support in uid2 * UID2 email hash issue * UID-SHA256 handling of both HEX and BASE64 output encoding * UID2: Warning message added instead of throwing Error * Merged conflicts * UID2: Warning message changed

Type of change
Description of change
Adapter and specs for Pubgears header bidder.
Other information