New imonomy Bid Adapter#1345
Conversation
Adding support of imonomy prebid
test parameters for validating bids
{
bidder: 'imonomy',
params: {
publisher_id: '14567721164'
}
}
contact email of the adapter’s maintainer
tech@imonomy.com
amit@imonmy.com
[X ] official adapter submission
|
Per the project standards, this needs unit tests. |
fix warning
+Fix File references
|
@dbemiller Thank you for your comment. I added the unit tests. |
dbemiller
left a comment
There was a problem hiding this comment.
I get no bids back with your test params.
One bug is that you're not registering your bid adapter. Check out some of the other adapter files for example:
adaptermanager.registerBidAdapter(new HiroMediaAdapter, 'hiromedia');
There may be others after that... but that's at least one.
| @@ -0,0 +1,111 @@ | |||
| /* jshint -W030 */ | |||
There was a problem hiding this comment.
What's up with this? We don't use jshint...
modules/imonomyBidAdapter.js
Outdated
|
|
||
| function _callBids(params) { | ||
| var request = []; | ||
| var siteRef = ""; |
There was a problem hiding this comment.
A recently merged PR fixed a bug which was preventing adapters from being linted.
This line (along with many other things in this file) will fail the linting rules... so you'll have to pull the master branch again and fix the errors before we can merge it.
| request.push(formRequestUrl(bid.params)); | ||
| } | ||
|
|
||
| $$PREBID_GLOBAL$$[callbackName] = handleCallback(bids); |
There was a problem hiding this comment.
Just so you know: JSONP isn't going to be allowed in Prebid 1.0 (most likely coming in Q4 of this year). It's fine if you want to build your adapter this way now, but just be aware that you'll probably have to refactor to stay in the project long-term.
modules/imonomyBidAdapter.js
Outdated
| return null; | ||
| } | ||
|
|
||
| function encode64(input) { |
There was a problem hiding this comment.
Are you just re-implementing atob here? Or am I missing something?
+ fixed all lint isses on adapter + replace encode64 with btoa + add some more unit tests
|
@dbemiller Thank you for the feedback. |
|
I'm seeing a bid now, but no ad in the page. The |
|
@dbemiller hi seems that the bid response was under 10 cent. I configured it and now it works. |
|
This is merged into master. Please submit a PR to the docs repo to add a file for your adapter to the bidders directory so your adapter's params will appear on the bidders page. Thank you for contributing |
* New imonomy Bid Adapter
Adding support of imonomy prebid
test parameters for validating bids
{
bidder: 'imonomy',
params: {
publisher_id: '14567721164'
}
}
contact email of the adapter’s maintainer
tech@imonomy.com
amit@imonmy.com
[X ] official adapter submission
* identetion fixes
fix warning
* add imonomyBidAdapter unit testing
* Fix File Location
+Fix File references
* indentaion on unit test
* more identation fixes
* no-trailing-spaces
* remove jshint
+ fixed all lint isses on adapter
+ replace encode64 with btoa
+ add some more unit tests
* fix - A space is required after ',' comma-spacing
Adding support of imonomy prebid
test parameters for validating bids
contact email of the adapter’s maintainer
tech@imonomy.com
amit@imonmy.com
[X ] official adapter submission
Type of change
Description of change
tech@imonomy.com
amit@imonmy.com
Other information