Skip to content
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

Update Conversant adapter to Prebid 1.0 #1711

Merged
merged 18 commits into from
Oct 26, 2017
Merged

Conversation

pycnvr
Copy link
Collaborator

@pycnvr pycnvr commented Oct 17, 2017

Type of change

  • Bugfix
  • Feature
  • New bidder adapter
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other

Description of change

Update Conversant adapter to Prebid 1.0

Other information


export const spec = {
code: BIDDER_CODE,
aliases: ['conversant'], // short code
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aliases should be different than BIDDER_CODE. Short code should be 3-4 characters i believe.

} catch (e) {
script.text = code;
document.getElementsByTagName('head')[0].appendChild(script);
if (!bid.params.site_id || !utils.isStr(bid.params.site_id)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First check isn't required

});
});
}
const conversantImps = utils._map(validBidRequests, function(bid) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you can use Array.map directly now.


const bid = {
requestId: conversantBid.impid,
bidderCode: BIDDER_CODE,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We made a change after the docs were released - can you please remove the bidderCode property here? Thanks

@mkendall07
Copy link
Member

@pycnvr
One other thing. I noticed when testing that the bid response back gave me a vastUrl that returned an empty vast document. Not sure if that's expected or not since it's a test bid but wanted to bring it up.

@pycnvr
Copy link
Collaborator Author

pycnvr commented Oct 25, 2017

@mkendall07 That sounds strange. I'll check it out. Thanks.

@pycnvr
Copy link
Collaborator Author

pycnvr commented Oct 25, 2017

@mkendall07 Changes uploaded.
Regarding the vasturl, video test pages work here in our location. If you don't mind, please send me the URL that you got back, and if possible, the request as well. Much appreciated.

* @param {*} serverResponse A successful response from the server.
* @return {Bid[]} An array of bids which were nested inside the server.
*/
interpretResponse: function(serverResponse, bidRequest) {
const bidResponses = [];
const requestMap = {};
const currency = serverResponse.cur || 'USD';
serverResponse = serverResponse.body;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

Copy link
Member

@mkendall07 mkendall07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mkendall07 mkendall07 merged commit 9a6ddc2 into prebid:master Oct 26, 2017
Millerrok pushed a commit to Vertamedia/Prebid.js that referenced this pull request Oct 31, 2017
* 'master' of https://github.com/prebid/Prebid.js: (22 commits)
  Update GetIntent adapter to 1.0 version (prebid#1721)
  Add `usePaymentRule` param to AN bidders (prebid#1778)
  New hooks API (replaces monkey-patching for currency) (prebid#1683)
  Change prebidServer to call client user syncs if they exist (prebid#1734)
  Fix Centro adapter to allow requests of the same units (prebid#1746)
  add vastUrl + media type for video bids Prebid Server (prebid#1739)
  Update adxcg adapter for prebid 1.0 (prebid#1741)
  Update yieldmoBid adapter request url (prebid#1771)
  Upgrade Quantcast adapter for Prebid 1.0 (prebid#1753)
  Fidelity Media Adapter update. Prebid v1.0 (prebid#1719)
  Kargo Adapter for Prebid 1.0 (prebid#1729)
  updated for prebid 1.0 api (prebid#1722)
  Add AdOcean adapter (prebid#1735)
  Update Conversant adapter to Prebid 1.0 (prebid#1711)
  Fix test-coverage bug (prebid#1765)
  Migrating TrustX adapter to 1.0 (prebid#1709)
  Update Improve Digital adapter for Prebid 1.0 (prebid#1728)
  Fixed the argument type on getUserSyncs. (prebid#1767)
  nanointeractive bid adapter (prebid#1627)
  Validating bid response params (prebid#1738)
  ...
mattpr pushed a commit to mattpr/Prebid.js that referenced this pull request Oct 31, 2017
* Conversant adapter initial support for prebid 1.0

* Add video support for conversant adapter

* Add tests and md

* Update conversant contact address

* Return data object in buildRequests without converting it to a string

* Conversant adapter initial support for prebid 1.0

* Add video support for conversant adapter

* Add tests and md

* Update conversant contact address

* Return data object in buildRequests without converting it to a string

* Better validation for site id

* Switch to use utils._each and utils._map

* Add tests for displaymanagerver

* Review changes for conversant
dluxemburg pushed a commit to Genius/Prebid.js that referenced this pull request Jul 17, 2018
* Conversant adapter initial support for prebid 1.0

* Add video support for conversant adapter

* Add tests and md

* Update conversant contact address

* Return data object in buildRequests without converting it to a string

* Conversant adapter initial support for prebid 1.0

* Add video support for conversant adapter

* Add tests and md

* Update conversant contact address

* Return data object in buildRequests without converting it to a string

* Better validation for site id

* Switch to use utils._each and utils._map

* Add tests for displaymanagerver

* Review changes for conversant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants